Function at 0x4223b0
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x55cef7
mov eax, dword fs:[0]
push eax
sub esp, 0x998
mov eax, dword [0x651788]
xor eax, esp
mov dword [esp + 0x994], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x651788]
xor eax, esp
push eax
lea eax, [esp + 0x9ac]
mov dword fs:[0], eax
push 0x3e8
lea eax, [esp + 0x1dc]
push eax
xor ebx, ebx
push ebx
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x1d8]
push ecx
lea ecx, [esp + 0x28]
call fcn.00406220
mov edx, dword [esp + 0x24]
push 0x5c
push edx
mov dword [esp + 0x9bc], ebx
call fcn.004afca4
add esp, 8
cmp eax, ebx
jne 0x422435
or esi, 0xffffffff
jmp 0x42243d
sub eax, dword [esp + 0x24]
sar eax, 1
mov esi, eax
call fcn.00492965
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x422457
push 0x80004005
call fcn.00405870
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
add esi, 1
push esi
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x9bc], 1
call fcn.0041b1e0
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x9b8], 2
call fcn.0041b720
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x9b4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4224bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.City.txt
lea ecx, [esp + 0x2c]
call fcn.0041c1e0
mov edi, 0xf
mov dword [esp + 0xd4], edi
mov dword [esp + 0xd0], ebx
mov byte [esp + 0xc0], 0
mov esi, dword [esp + 0x28]
push 1
push 0x40
push 1
push esi
lea ecx, [esp + 0x40]
mov byte [esp + 0x9c4], 3
call fcn.004215b0
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 4]
mov ecx, dword [esp + eax + 0x38]
test cl, 6
mov byte [esp + 0x9b4], 4
je 0x422594
lea ecx, [esp + 0x88]
mov byte [esp + 0x9b4], 3
call fcn.0041de30
lea edx, [esp + 0x88]
push edx
mov dword [esp + 0x8c], vtable.std::ios_base.0
call fcn.004cdbcb
add esp, 4
cmp dword [esp + 0xd4], 0x10
jb 0x422561
mov eax, dword [esp + 0xc0]
push eax
call fcn.00492573
add esp, 4
lea eax, [esi - 0x10]
mov dword [esp + 0xd4], edi
mov dword [esp + 0xd0], ebx
mov byte [esp + 0xc0], 0
mov byte [esp + 0x9b4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x422a7e
push 0xa
lea ecx, [esp + eax + 0x34]
call fcn.0041dfa0
lea ecx, [esp + 0xbc]
lea edx, [esp + 0x30]
push eax
push ecx
push edx
call fcn.00420a00
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 8]
add ecx, eax
and dl, 6
add esp, 0xc
neg dl
sbb edx, edx
not edx
test ecx, edx
je 0x42293e
mov ecx, dword [esp + 0x18]
mov eax, 0xfffffce4
lea edi, [ecx + 0x31c]
sub eax, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
lea ebx, [ebx]
push 0xff
xor esi, esi
lea eax, [esp + 0xdd]
push esi
push eax
mov byte [esp + 0xe4], 0
call fcn.004afb50
mov eax, dword [esp + 0xcc]
add esp, 0xc
cmp dword [esp + 0xd4], 0x10
jae 0x422628
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0xdc]
push 0x575728
push ecx
call fcn.004afe0e
lea ebx, [esp + 0xe4]
add esp, 0xc
lea ecx, [ebx + 1]
mov al, byte [ebx]
add ebx, 1
test al, al
jne 0x422648
sub ebx, ecx
lea ecx, [esp + 0xbc]
call fcn.0041c2c0
xor eax, eax
cmp ebx, esi
jle 0x422685
jmp 0x422670
cmp byte [esp + eax + 0xd8], 0x2f
je 0x422775
add eax, 1
cmp eax, ebx
jl 0x422670
cmp ebx, esi
mov dword [esp + 0x14], esi
jle 0x42272d
mov al, byte [esp + esi + 0xd8]
cmp al, 0x2d
je 0x4226ab
mov byte [edi + esi], al
add esi, 1
cmp esi, ebx
jl 0x422691
jmp 0x42272d
mov byte [edi + esi], 0
add esi, 1
cmp esi, ebx
mov dword [esp + 0x14], esi
jge 0x42272d
mov edx, dword [esp + 0x20]
lea ebp, [edx + edi]
mov cl, byte [esp + esi + 0xd8]
cmp cl, 0x2d
je 0x4226f0
mov edx, dword [esp + 0x18]
mov eax, ebp
sub eax, dword [esp + 0x14]
add esi, 1
add eax, edx
cmp esi, ebx
mov byte [eax + esi + 0x339], cl
mov byte [eax + esi + 0x357], cl
jl 0x4226c1
jmp 0x42272d
sub ebp, dword [esp + 0x14]
add ebp, dword [esp + 0x18]
mov byte [ebp + esi + 0x33a], 0
add ebp, esi
add esi, 1
cmp esi, ebx
mov byte [ebp + 0x358], 0
mov dword [esp + 0x14], esi
jge 0x42272d
sub ebx, esi
lea eax, [esp + esi + 0xd8]
push ebx
push eax
lea eax, [edi + 0x5a]
push eax
call fcn.004b07c0
add esp, 0xc
add esi, ebx
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x14]
add ecx, edi
add ecx, dword [esp + 0x18]
xor eax, eax
mov byte [ecx + esi + 0x376], 0
mov dword [edi + 0x78], eax
mov dword [edi + 0x7c], eax
mov dword [edi + 0x80], eax
mov dword [edi + 0x84], eax
mov dword [edi + 0x88], eax
mov dword [edi + 0x8c], eax
mov dword [edi + 0x90], eax
mov word [edi + 0x94], ax
jmp 0x4228f0
xor esi, esi
mov dword [esp + 0x14], esi
xor ebp, ebp
lea ecx, [ecx]
mov al, byte [esp + ebp + 0xd8]
cmp al, 0x2d
je 0x42279a
mov byte [edi + ebp], al
add ebp, 1
cmp ebp, ebx
jl 0x422780
jmp 0x422840
mov byte [edi + ebp], 0
add ebp, 1
cmp ebp, ebx
mov esi, ebp
mov dword [esp + 0x14], esi
jge 0x422840
mov edx, dword [esp + 0x20]
lea eax, [edx + edi]
mov ecx, dword [esp + 0x18]
mov edx, eax
sub edx, esi
add edx, ecx
cmp byte [esp + ebp + 0xd8], 0x2d
je 0x4227e1
mov cl, byte [esp + ebp + 0xd8]
mov byte [edx + ebp + 0x358], cl
add ebp, 1
cmp ebp, ebx
jl 0x4227b6
jmp 0x422840
mov byte [edx + ebp + 0x358], 0
add ebp, 1
cmp ebp, ebx
mov esi, ebp
mov dword [esp + 0x14], esi
jge 0x422840
jmp 0x422804
mov ecx, dword [esp + 0x18]
cmp byte [esp + ebp + 0xd8], 0x2f
je 0x42282b
mov edx, eax
sub edx, esi
add edx, ecx
mov cl, byte [esp + ebp + 0xd8]
mov byte [edx + ebp + 0x376], cl
add ebp, 1
cmp ebp, ebx
jl 0x422800
jmp 0x422840
sub eax, esi
add eax, ecx
mov byte [eax + ebp + 0x376], 0
add ebp, 1
mov esi, ebp
mov dword [esp + 0x14], ebp
lea ecx, [edi + 0x5a]
lea eax, [edi - 0x3c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x422866
test dl, dl
je 0x422862
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x422866
add eax, 2
add ecx, 2
test dl, dl
jne 0x422846
xor eax, eax
jmp 0x42286b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4228af
lea edx, [edi - 0x78]
mov eax, edx
lea ecx, [eax + 1]
mov dword [esp + 0x2c], ecx
jmp 0x422880
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x422880
sub eax, dword [esp + 0x2c]
xor ecx, ecx
test eax, eax
jle 0x4228aa
mov edi, dword [esp + 0x1c]
add edi, 0x1e
mov ecx, eax
mov esi, edx
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov ecx, eax
mov byte [edi + ecx + 0x1e], 0
cmp ebp, ebx
jge 0x4228dc
mov edx, dword [esp + 0x20]
sub edx, esi
add edx, edi
add edx, dword [esp + 0x18]
sub ebx, ebp
lea ecx, [esp + ebp + 0xd8]
push ebx
lea eax, [edx + ebp + 0x394]
push ecx
push eax
call fcn.004b07c0
add esp, 0xc
add ebp, ebx
mov eax, dword [esp + 0x20]
sub eax, esi
add eax, edi
add eax, dword [esp + 0x18]
mov byte [eax + ebp + 0x394], 0
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 4]
add edi, 0x96
push 0xa
lea ecx, [esp + ecx + 0x34]
mov dword [esp + 0x20], edi
call fcn.0041dfa0
lea edx, [esp + 0xbc]
push eax
push edx
lea eax, [esp + 0x38]
push eax
call fcn.00420a00
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 8]
add ecx, eax
and dl, 6
add esp, 0xc
neg dl
sbb edx, edx
not edx
test ecx, edx
jne 0x4225f0
xor edi, edi
cmp dword [esp + 0x84], edi
lea esi, [esp + 0x38]
je 0x42296e
mov ecx, esi
call fcn.0041bc90
test al, al
jne 0x42295a
xor esi, esi
mov eax, dword [esp + 0x84]
push eax
call fcn.004b1e19
add esp, 4
test eax, eax
je 0x422970
xor esi, esi
cmp esi, edi
lea ecx, [esp + 0x40]
mov dword [esp + 0x48], ecx
lea edx, [esp + 0x44]
lea eax, [esp + 0x50]
lea ecx, [esp + 0x54]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov ecx, dword [0x654004]
lea edx, [esp + 0x60]
lea eax, [esp + 0x64]
mov byte [esp + 0x80], 0
mov byte [esp + 0x79], 0
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x74], edi
jne 0x4229ff
mov edx, dword [esp + 0x30]
mov ecx, dword [edx + 4]
mov eax, dword [esp + ecx + 0x38]
lea ecx, [esp + ecx + 0x30]
or eax, 2
cmp dword [ecx + 0x28], edi
jne 0x4229f8
or eax, 4
push edi
push eax
call fcn.00410e80
lea ecx, [esp + 0x88]
mov byte [esp + 0x9b4], 3
call fcn.0041de30
lea eax, [esp + 0x88]
push eax
mov dword [esp + 0x8c], vtable.std::ios_base.0
call fcn.004cdbcb
add esp, 4
cmp dword [esp + 0xd4], 0x10
jb 0x422a48
mov ecx, dword [esp + 0xc0]
push ecx
call fcn.00492573
add esp, 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0xd4], 0xf
mov dword [esp + 0xd0], edi
mov byte [esp + 0xc0], 0
mov byte [esp + 0x9b4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x422a8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x9b4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422ab1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x9ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x994]
xor ecx, esp
call fcn.004aeca3
add esp, 0x9a4
ret