Function at 0x421b70
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x55ce87
mov eax, dword fs:[0]
push eax
sub esp, 0x9a4
mov eax, dword [0x651788]
xor eax, esp
mov dword [esp + 0x9a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x651788]
xor eax, esp
push eax
lea eax, [esp + 0x9b8]
mov dword fs:[0], eax
push 0x3e8
lea eax, [esp + 0x1e8]
push eax
mov edi, ecx
xor ebx, ebx
push ebx
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x1e4]
push ecx
lea ecx, [esp + 0x24]
call fcn.00406220
mov edx, dword [esp + 0x20]
push 0x5c
push edx
mov dword [esp + 0x9c8], ebx
call fcn.004afca4
add esp, 8
cmp eax, ebx
jne 0x421bf7
or esi, 0xffffffff
jmp 0x421bff
sub eax, dword [esp + 0x20]
sar eax, 1
mov esi, eax
call fcn.00492965
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x421c19
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 + 0x24], eax
add esi, 1
push esi
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x9c8], 1
call fcn.0041b1e0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x9c4], 2
call fcn.0041b720
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x9c0], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x421c7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.citydata.xml
lea ecx, [esp + 0x28]
call fcn.0041c1e0
mov esi, 0xf
mov dword [esp + 0xd4], esi
mov dword [esp + 0xd0], ebx
mov byte [esp + 0xc0], bl
mov ebp, dword [esp + 0x24]
push 1
push 0x40
push 1
push ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0x9d0], 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 + 0x9c0], 4
je 0x421d2e
lea ecx, [esp + 0x88]
mov byte [esp + 0x9c0], 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 0x421d22
mov eax, dword [esp + 0xc0]
push eax
call fcn.00492573
add esp, 4
mov dword [esp + 0xd4], esi
jmp 0x422328
push 0xa
lea ecx, [esp + eax + 0x34]
mov dword [esp + 0x30], ebx
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 0x422217
lea eax, [edi + 0x7416f]
mov dword [esp + 0x18], eax
mov eax, 0xfff8be91
sub eax, edi
mov dword [esp + 0x28], eax
cmp dword [esp + 0x2c], ebx
jne 0x421d97
mov dword [esp + 0x2c], 1
jmp 0x4221d1
push 0xff
lea ecx, [esp + 0xe9]
push ebx
push ecx
mov byte [esp + 0xf0], bl
call fcn.004afb50
mov eax, dword [esp + 0xcc]
add esp, 0xc
cmp dword [esp + 0xd4], 0x10
jae 0x421dcc
lea eax, [esp + 0xc0]
push eax
lea edx, [esp + 0xe8]
push 0x575728
push edx
call fcn.004afe0e
lea edi, [esp + 0xf0]
add esp, 0xc
lea ecx, [edi + 1]
lea esp, [esp]
mov al, byte [edi]
add edi, 1
cmp al, bl
jne 0x421df0
sub edi, ecx
lea ecx, [esp + 0xbc]
call fcn.0041c2c0
mov esi, 0xc
xor ebp, ebp
cmp edi, esi
jle 0x421ed8
mov ecx, dword [esp + 0x18]
lea ebx, [ebx]
mov al, byte [esp + esi + 0xe4]
cmp al, 0x2c
je 0x421e3b
mov byte [ecx + esi - 0x59], al
add esi, 1
cmp esi, edi
jl 0x421e20
jmp 0x421ed8
mov byte [ecx + esi - 0x59], bl
add esi, 1
cmp esi, edi
mov ebp, esi
jge 0x421ed8
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
add eax, ecx
jmp 0x421e60
mov cl, byte [esp + esi + 0xe4]
cmp cl, 0x2c
je 0x421e86
mov edx, eax
sub edx, ebp
add edx, dword [esp + 0x1c]
add esi, 1
mov byte [edx + esi + 0x74103], cl
xor ebx, ebx
cmp esi, edi
jl 0x421e60
jmp 0x421ed8
mov ecx, eax
sub ecx, ebp
add ecx, dword [esp + 0x1c]
add esi, 1
cmp esi, edi
mov byte [ecx + esi + 0x74103], bl
mov ebp, esi
jge 0x421ed8
mov edi, edi
mov cl, byte [esp + esi + 0xe4]
cmp cl, 0x2c
je 0x421ec6
mov edx, eax
sub edx, ebp
add edx, dword [esp + 0x1c]
add esi, 1
mov byte [edx + esi + 0x7415f], cl
xor ebx, ebx
cmp esi, edi
jl 0x421ea0
jmp 0x421ed8
sub eax, ebp
add eax, dword [esp + 0x1c]
add esi, 1
mov byte [eax + esi + 0x7415f], bl
mov ebp, esi
cmp esi, edi
mov eax, dword [esp + 0x18]
mov byte [eax], bl
jge 0x421f28
mov ecx, dword [esp + 0x28]
add eax, ecx
jmp 0x421ef0
mov cl, byte [esp + esi + 0xe4]
cmp cl, 0x3c
je 0x421f16
mov edx, eax
sub edx, ebp
add edx, dword [esp + 0x1c]
add esi, 1
mov byte [edx + esi + 0x7417d], cl
xor ebx, ebx
cmp esi, edi
jl 0x421ef0
jmp 0x421f28
sub eax, ebp
add eax, dword [esp + 0x1c]
add esi, 0xf
mov byte [eax + esi + 0x7416f], bl
mov ebp, esi
cmp esi, edi
mov eax, dword [esp + 0x18]
mov byte [eax + 0x1e], bl
jge 0x421f69
mov ecx, esi
sub ecx, ebp
lea ecx, [esp + ecx + 0xd8]
mov edi, edi
mov al, byte [esp + esi + 0xe4]
cmp al, 0x3c
je 0x421f59
mov byte [ecx], al
add esi, 1
add ecx, 1
cmp esi, edi
jl 0x421f40
jmp 0x421f69
mov edx, esi
sub edx, ebp
add esi, 1
mov byte [esp + edx + 0xd8], bl
mov ebp, esi
lea eax, [esp + 0xd8]
push eax
call fcn.004b1f68
mov ecx, dword [esp + 0x1c]
add esp, 4
fstp dword [ecx - 0x2f]
cmp esi, edi
jge 0x421fca
cmp byte [esp + esi + 0xe4], 0x64
je 0x421f97
add esi, 1
cmp esi, edi
jl 0x421f84
jmp 0x421fca
add esi, 4
cmp esi, edi
mov ebp, esi
jge 0x421fca
lea ecx, [esp + 0x14]
mov al, byte [esp + esi + 0xe4]
cmp al, 0x3c
je 0x421fbd
mov byte [ecx], al
add esi, 1
add ecx, 1
cmp esi, edi
jl 0x421fa4
jmp 0x421fca
mov edx, esi
sub edx, ebp
add esi, 0xe
mov byte [esp + edx + 0x14], bl
mov ebp, esi
lea eax, [esp + 0x14]
push eax
call fcn.004afc8e
mov ecx, dword [esp + 0x1c]
mov dword [ecx - 0x2b], eax
xor eax, eax
add esp, 4
cmp esi, edi
mov word [esp + 0x14], ax
mov byte [esp + 0x16], al
jge 0x42201b
mov edx, esi
sub edx, ebp
lea ecx, [esp + edx + 0x14]
mov al, byte [esp + esi + 0xe4]
cmp al, 0x3c
je 0x42200e
mov byte [ecx], al
add esi, 1
add ecx, 1
cmp esi, edi
jl 0x421ff5
jmp 0x42201b
mov eax, esi
sub eax, ebp
add esi, 0xe
mov byte [esp + eax + 0x14], bl
mov ebp, esi
lea ecx, [esp + 0x14]
push ecx
call fcn.004afc8e
mov edx, dword [esp + 0x1c]
mov dword [edx - 0x27], eax
xor eax, eax
add esp, 4
cmp esi, edi
mov word [esp + 0x14], ax
mov byte [esp + 0x16], al
jge 0x422076
mov eax, esi
sub eax, ebp
lea ecx, [esp + eax + 0x14]
jmp 0x422050
mov al, byte [esp + esi + 0xe4]
cmp al, 0x3c
je 0x422069
mov byte [ecx], al
add esi, 1
add ecx, 1
cmp esi, edi
jl 0x422050
jmp 0x422076
mov ecx, esi
sub ecx, ebp
add esi, 0xd
mov byte [esp + ecx + 0x14], bl
mov ebp, esi
lea edx, [esp + 0x14]
push edx
call fcn.004afc8e
mov ecx, dword [esp + 0x1c]
mov dword [ecx - 0x23], eax
xor eax, eax
add esp, 4
cmp esi, edi
mov word [esp + 0x14], ax
mov byte [esp + 0x16], al
jge 0x4220c7
mov edx, esi
sub edx, ebp
lea ecx, [esp + edx + 0x14]
mov al, byte [esp + esi + 0xe4]
cmp al, 0x3c
je 0x4220ba
mov byte [ecx], al
add esi, 1
add ecx, 1
cmp esi, edi
jl 0x4220a1
jmp 0x4220c7
mov eax, esi
sub eax, ebp
add esi, 0x11
mov byte [esp + eax + 0x14], bl
mov ebp, esi
lea ecx, [esp + 0x14]
push ecx
call fcn.004afc8e
mov edx, dword [esp + 0x1c]
mov dword [edx - 0x1f], eax
xor eax, eax
add esp, 4
cmp esi, edi
mov word [esp + 0x14], ax
mov byte [esp + 0x16], al
jge 0x422118
mov eax, esi
sub eax, ebp
lea ecx, [esp + eax + 0x14]
mov al, byte [esp + esi + 0xe4]
cmp al, 0x3c
je 0x42210b
mov byte [ecx], al
add esi, 1
add ecx, 1
cmp esi, edi
jl 0x4220f2
jmp 0x422118
mov ecx, esi
sub ecx, ebp
add esi, 0x10
mov byte [esp + ecx + 0x14], bl
mov ebp, esi
lea edx, [esp + 0x14]
push edx
call fcn.004afc8e
mov ecx, dword [esp + 0x1c]
mov dword [ecx - 0x17], eax
xor eax, eax
add esp, 4
cmp esi, edi
mov word [esp + 0x14], ax
mov byte [esp + 0x16], al
jge 0x422169
mov edx, esi
sub edx, ebp
lea ecx, [esp + edx + 0x14]
mov al, byte [esp + esi + 0xe4]
cmp al, 0x3c
je 0x42215c
mov byte [ecx], al
add esi, 1
add ecx, 1
cmp esi, edi
jl 0x422143
jmp 0x422169
mov eax, esi
sub eax, ebp
add esi, 0xf
mov byte [esp + eax + 0x14], bl
mov ebp, esi
lea ecx, [esp + 0x14]
push ecx
call fcn.004afc8e
mov edx, dword [esp + 0x1c]
mov dword [edx - 0x1b], eax
xor eax, eax
add esp, 4
cmp esi, edi
mov word [esp + 0x14], ax
mov byte [esp + 0x16], al
jge 0x4221b3
mov eax, esi
sub eax, ebp
lea ecx, [esp + eax + 0x14]
mov al, byte [esp + esi + 0xe4]
cmp al, 0x3c
je 0x4221ad
mov byte [ecx], al
add esi, 1
add ecx, 1
cmp esi, edi
jl 0x422194
jmp 0x4221b3
sub esi, ebp
mov byte [esp + esi + 0x14], bl
lea ecx, [esp + 0x14]
push ecx
call fcn.004afc8e
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [ecx - 0x13], eax
add ecx, 0x98
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x30]
mov ecx, dword [edx + 4]
push 0xa
lea ecx, [esp + ecx + 0x34]
call fcn.0041dfa0
lea ecx, [esp + 0x30]
push eax
lea eax, [esp + 0xc0]
push eax
push ecx
call fcn.00420a00
mov edx, dword [eax]
mov ecx, dword [edx + 4]
add ecx, eax
mov eax, dword [ecx + 8]
and al, 6
add esp, 0xc
neg al
sbb eax, eax
not eax
test ecx, eax
jne 0x421d84
mov ebp, dword [esp + 0x24]
cmp dword [esp + 0x84], ebx
lea esi, [esp + 0x38]
je 0x422245
mov ecx, esi
call fcn.0041bc90
test al, al
jne 0x422231
xor esi, esi
mov ecx, dword [esp + 0x84]
push ecx
call fcn.004b1e19
add esp, 4
test eax, eax
je 0x422247
xor esi, esi
cmp esi, ebx
lea edx, [esp + 0x40]
mov dword [esp + 0x48], edx
lea eax, [esp + 0x44]
lea ecx, [esp + 0x50]
lea edx, [esp + 0x54]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
mov edx, dword [0x654004]
lea eax, [esp + 0x60]
lea ecx, [esp + 0x64]
mov byte [esp + 0x80], bl
mov byte [esp + 0x79], bl
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x74], ebx
jne 0x4222d4
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x38]
lea ecx, [esp + ecx + 0x30]
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x4222cd
or eax, 4
push ebx
push eax
call fcn.00410e80
lea ecx, [esp + 0x88]
mov byte [esp + 0x9c0], 3
call fcn.0041de30
lea ecx, [esp + 0x88]
push ecx
mov dword [esp + 0x8c], vtable.std::ios_base.0
call fcn.004cdbcb
add esp, 4
cmp dword [esp + 0xd4], 0x10
jb 0x42231d
mov edx, dword [esp + 0xc0]
push edx
call fcn.00492573
add esp, 4
mov dword [esp + 0xd4], 0xf
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x9c0], bl
mov byte [esp + 0xc0], bl
mov dword [esp + 0xd0], ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422359
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x9c0], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422380
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x9b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x9a0]
xor ecx, esp
call fcn.004aeca3
add esp, 0x9b0
ret