Function at 0x425ec0
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x5e4227
mov eax, dword fs:[0]
push eax
sub esp, 0x9a4
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0x9a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x704dd8]
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.00404b40
mov edx, dword [esp + 0x20]
push 0x5c
push edx
mov dword [esp + 0x9c8], ebx
call fcn.004e9c3b
add esp, 8
cmp eax, ebx
jne 0x425f47
or esi, 0xffffffff
jmp 0x425f4f
sub eax, dword [esp + 0x20]
sar eax, 1
mov esi, eax
call fcn.004ca9fa
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x425f69
push 0x80004005
call fcn.004040f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
inc esi
push esi
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x9c8], 1
call fcn.0041c7d0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x9c4], 2
call fcn.0041cda0
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 0x425fcb
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.0041d9c0
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.004245e0
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 4]
mov ecx, dword [esp + eax + 0x38]
mov byte [esp + 0x9c0], 4
test cl, 6
je 0x42607c
lea ecx, [esp + 0x88]
mov byte [esp + 0x9c0], 3
call fcn.00420810
lea edx, [esp + 0x88]
push edx
mov dword [esp + 0x8c], vtable.std::ios_base.0
call fcn.00508738
add esp, 4
cmp dword [esp + 0xd4], 0x10
jb 0x426070
mov eax, dword [esp + 0xc0]
push eax
call fcn.004ca5d9
add esp, 4
mov dword [esp + 0xd4], esi
jmp 0x426648
push 0xa
lea ecx, [esp + eax + 0x34]
mov dword [esp + 0x30], ebx
call fcn.0041f330
movzx ecx, al
push ecx
lea edx, [esp + 0xc0]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.00424750
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 8]
add ecx, eax
and dl, 6
movsx eax, dl
add esp, 0xc
neg eax
sbb eax, eax
not eax
test ecx, eax
je 0x426537
mov eax, 0xfff8be91
lea ecx, [edi + 0x7416f]
sub eax, edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], eax
cmp dword [esp + 0x2c], ebx
jne 0x4260eb
mov dword [esp + 0x2c], 1
jmp 0x4264e9
push 0xff
lea edx, [esp + 0xe9]
push ebx
push edx
mov byte [esp + 0xf0], bl
call fcn.004e9ba0
mov eax, dword [esp + 0xcc]
add esp, 0xc
cmp dword [esp + 0xd4], 0x10
jae 0x426120
lea eax, [esp + 0xc0]
push eax
lea eax, [esp + 0xe8]
push 0x601ef4
push eax
call fcn.004ea179
lea edi, [esp + 0xf0]
add esp, 0xc
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
cmp al, bl
jne 0x426140
sub edi, ecx
lea ecx, [esp + 0xbc]
call fcn.0041daa0
mov esi, 0xc
xor ebp, ebp
cmp edi, esi
jle 0x426214
mov ecx, dword [esp + 0x18]
jmp 0x426170
mov al, byte [esp + esi + 0xe4]
cmp al, 0x2c
je 0x426189
mov byte [ecx + esi - 0x59], al
inc esi
cmp esi, edi
jl 0x426170
jmp 0x426214
mov byte [ecx + esi - 0x59], bl
inc esi
cmp esi, edi
mov ebp, esi
jge 0x426214
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx]
mov cl, byte [esp + esi + 0xe4]
cmp cl, 0x2c
je 0x4261c7
mov edx, eax
sub edx, ebp
add edx, dword [esp + 0x1c]
inc esi
mov byte [edx + esi + 0x74103], cl
xor ebx, ebx
cmp esi, edi
jl 0x4261a3
jmp 0x426214
mov ecx, eax
sub ecx, ebp
add ecx, dword [esp + 0x1c]
inc esi
cmp esi, edi
mov byte [ecx + esi + 0x74103], bl
mov ebp, esi
jge 0x426214
lea ecx, [ecx]
mov cl, byte [esp + esi + 0xe4]
cmp cl, 0x2c
je 0x426204
mov edx, eax
sub edx, ebp
add edx, dword [esp + 0x1c]
inc esi
mov byte [edx + esi + 0x7415f], cl
xor ebx, ebx
cmp esi, edi
jl 0x4261e0
jmp 0x426214
sub eax, ebp
add eax, dword [esp + 0x1c]
inc esi
mov byte [eax + esi + 0x7415f], bl
mov ebp, esi
cmp esi, edi
mov eax, dword [esp + 0x18]
mov byte [eax], bl
jge 0x42625a
mov ecx, dword [esp + 0x28]
add eax, ecx
mov cl, byte [esp + esi + 0xe4]
cmp cl, 0x3c
je 0x426248
mov edx, eax
sub edx, ebp
add edx, dword [esp + 0x1c]
inc esi
mov byte [edx + esi + 0x7417d], cl
xor ebx, ebx
cmp esi, edi
jl 0x426224
jmp 0x42625a
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 0x426293
mov ecx, esi
sub ecx, ebp
lea ecx, [esp + ecx + 0xd8]
mov al, byte [esp + esi + 0xe4]
cmp al, 0x3c
je 0x426285
mov byte [ecx], al
inc esi
inc ecx
cmp esi, edi
jl 0x426270
jmp 0x426293
mov edx, esi
sub edx, ebp
inc esi
mov byte [esp + edx + 0xd8], bl
mov ebp, esi
lea eax, [esp + 0xd8]
push eax
call fcn.004ebc2a
mov ecx, dword [esp + 0x1c]
add esp, 4
fstp dword [ecx - 0x2f]
cmp esi, edi
jge 0x4262f2
mov edi, edi
cmp byte [esp + esi + 0xe4], 0x64
je 0x4262c1
inc esi
cmp esi, edi
jl 0x4262b0
jmp 0x4262f2
add esi, 4
cmp esi, edi
mov ebp, esi
jge 0x4262f2
lea ecx, [esp + 0x14]
mov edi, edi
mov al, byte [esp + esi + 0xe4]
cmp al, 0x3c
je 0x4262e5
mov byte [ecx], al
inc esi
inc ecx
cmp esi, edi
jl 0x4262d0
jmp 0x4262f2
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.004ea158
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 0x426342
mov edx, esi
sub edx, ebp
lea ecx, [esp + edx + 0x14]
lea ecx, [ecx]
mov al, byte [esp + esi + 0xe4]
cmp al, 0x3c
je 0x426335
mov byte [ecx], al
inc esi
inc ecx
cmp esi, edi
jl 0x426320
jmp 0x426342
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.004ea158
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 0x426392
mov eax, esi
sub eax, ebp
lea ecx, [esp + eax + 0x14]
lea ecx, [ecx]
mov al, byte [esp + esi + 0xe4]
cmp al, 0x3c
je 0x426385
mov byte [ecx], al
inc esi
inc ecx
cmp esi, edi
jl 0x426370
jmp 0x426392
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.004ea158
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 0x4263e2
mov edx, esi
sub edx, ebp
lea ecx, [esp + edx + 0x14]
lea ecx, [ecx]
mov al, byte [esp + esi + 0xe4]
cmp al, 0x3c
je 0x4263d5
mov byte [ecx], al
inc esi
inc ecx
cmp esi, edi
jl 0x4263c0
jmp 0x4263e2
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.004ea158
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 0x426432
mov eax, esi
sub eax, ebp
lea ecx, [esp + eax + 0x14]
lea ecx, [ecx]
mov al, byte [esp + esi + 0xe4]
cmp al, 0x3c
je 0x426425
mov byte [ecx], al
inc esi
inc ecx
cmp esi, edi
jl 0x426410
jmp 0x426432
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.004ea158
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 0x426482
mov edx, esi
sub edx, ebp
lea ecx, [esp + edx + 0x14]
lea ecx, [ecx]
mov al, byte [esp + esi + 0xe4]
cmp al, 0x3c
je 0x426475
mov byte [ecx], al
inc esi
inc ecx
cmp esi, edi
jl 0x426460
jmp 0x426482
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.004ea158
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 0x4264cb
mov eax, esi
sub eax, ebp
lea ecx, [esp + eax + 0x14]
lea ecx, [ecx]
mov al, byte [esp + esi + 0xe4]
cmp al, 0x3c
je 0x4264c5
mov byte [ecx], al
inc esi
inc ecx
cmp esi, edi
jl 0x4264b0
jmp 0x4264cb
sub esi, ebp
mov byte [esp + esi + 0x14], bl
lea ecx, [esp + 0x14]
push ecx
call fcn.004ea158
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.0041f330
movzx eax, al
push eax
lea ecx, [esp + 0xc0]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00424750
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 8]
add ecx, eax
and dl, 6
movsx eax, dl
add esp, 0xc
neg eax
sbb eax, eax
not eax
test ecx, eax
jne 0x4260d8
mov ebp, dword [esp + 0x24]
lea esi, [esp + 0x38]
cmp dword [esp + 0x84], ebx
je 0x426565
mov ecx, esi
call fcn.0041d3c0
test al, al
jne 0x426551
xor esi, esi
mov ecx, dword [esp + 0x84]
push ecx
call fcn.004ebb03
add esp, 4
test eax, eax
je 0x426567
xor esi, esi
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 [0x70b6a8]
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
cmp esi, ebx
jne 0x4265f4
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 0x4265ed
or eax, 4
push ebx
push eax
call fcn.00411980
lea ecx, [esp + 0x88]
mov byte [esp + 0x9c0], 3
call fcn.00420810
lea ecx, [esp + 0x88]
push ecx
mov dword [esp + 0x8c], vtable.std::ios_base.0
call fcn.00508738
add esp, 4
cmp dword [esp + 0xd4], 0x10
jb 0x42663d
mov edx, dword [esp + 0xc0]
push edx
call fcn.004ca5d9
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 0x426679
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 0x4266a0
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.004e8c89
add esp, 0x9b0
ret