Function at 0x402950
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push str..txt
lea eax, [esp + 0x18]
mov edi, 0x8cccd0
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, 0x8ebf58
mov dword [esp + 0x1c], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x2c], 0x6f783c
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
call fcn.004ced90
push eax
lea edx, [esp + 0x24]
push edx
mov eax, str.CityNames
call fcn.004129c0
add esp, 8
call fcn.00412a60
mov ebp, dword [eax]
mov esi, dword [ebp - 4]
cmp esi, ebx
jl 0x402a16
cmp ebp, ebx
je 0x402a16
cmp ebp, edi
je 0x402a16
cmp esi, ebx
je 0x402a09
lea edi, [esp + 0x10]
call fcn.004f4a30
mov edi, dword [esp + 0x10]
push esi
push ebp
push edi
call dword [sym.imp.MSVCR71.dll_memmove]
mov eax, dword [edi - 4]
add esp, 0xc
mov byte [edi + eax], bl
jmp 0x402a16
lea ecx, [esp + 0x10]
call fcn.00412f90
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff8
cmp eax, ebx
je 0x402a31
cmp eax, 0x8cccc8
je 0x402a31
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff8
cmp eax, ebx
mov dword [esp + 0x14], 0x8cccd0
je 0x402a54
cmp eax, 0x8cccc8
je 0x402a54
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff8
cmp eax, ebx
mov dword [esp + 0x18], 0x8cccd0
je 0x402a77
cmp eax, 0x8cccc8
je 0x402a77
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
push ebx
push ebx
push 1
push edi
lea ecx, [esp + 0x30]
call fcn.004f6200
test eax, eax
jne 0x402ac1
lea ecx, [esp + 0x20]
push ecx
call fcn.004f96a0
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x402aa0
mov eax, dword [eax + 0x14]
jmp 0x402aac
push 1
push ebx
lea ecx, [esp + 0x28]
call fcn.004f2900
mov dword [esp + 0x60], eax
cmp dword [esp + 0x40], 1
jne 0x402ac1
lea edx, [esp + 0x20]
push edx
call fcn.004f97e0
mov eax, dword [esp + 0x20]
push 1
push ebx
lea ecx, [esp + 0x28]
call dword [eax + 0x1c]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x20]
mov esi, eax
call dword [edx + 0x10]
cmp esi, eax
jae 0x402c58
mov dword [esp + 0x1c], 0x8ddd08
lea esp, [esp]
cmp dword [esp + 0x50], 1
jne 0x402bea
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
mov esi, 0x8cccd0
push ecx
mov dword [esp + 0x20], esi
call fcn.004f9b70
mov ebp, dword [esp + 0x18]
cmp ebp, ebx
je 0x402bd1
push ebp
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
cmp eax, ebx
jl 0x402bd1
mov ebx, ebp
lea ecx, [esp + 0x14]
call fcn.004f55c0
mov edx, dword [esp + 0x14]
push edx
push 0x712608
lea edx, [esp + 0x20]
mov dword [esp + 0x20], esi
call fcn.004f3ce0
mov ebx, dword [esp + 0x20]
mov esi, dword [ebx - 4]
add esp, 8
test esi, esi
jl 0x402b98
cmp ebx, edi
je 0x402b98
test esi, esi
je 0x402b8b
lea edi, [esp + 0x10]
call fcn.004f4a30
mov edi, dword [esp + 0x10]
push esi
push ebx
push edi
call dword [sym.imp.MSVCR71.dll_memmove]
mov eax, dword [edi - 4]
add esp, 0xc
mov byte [edi + eax], 0
jmp 0x402b98
lea ecx, [esp + 0x10]
call fcn.00412f90
mov edi, dword [esp + 0x10]
add ebx, 0xfffffff8
je 0x402bae
cmp ebx, 0x8cccc8
je 0x402bae
push ebx
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff8
je 0x402bc7
cmp eax, 0x8cccc8
je 0x402bc7
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x14], 0x8cccd0
xor ebx, ebx
lea eax, [ebp - 8]
cmp eax, ebx
je 0x402bfc
cmp eax, 0x8cccc8
je 0x402bfc
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
jmp 0x402bfc
lea ecx, [esp + 0x10]
push ecx
lea esi, [esp + 0x24]
call fcn.004f9a60
mov edi, dword [esp + 0x10]
lea ebx, [esp + 0x10]
call fcn.004f3300
mov edx, ebx
push edx
call fcn.004f31f0
mov eax, dword [edi - 4]
test eax, eax
je 0x402c32
mov al, byte [edi]
cmp al, 0x23
je 0x402c32
cmp al, 0x3b
je 0x402c32
mov esi, dword [esp + 0x1c]
push esi
mov eax, ebx
push eax
call fcn.004ceea0
add esi, 0xc
mov dword [esp + 0x1c], esi
mov edx, dword [esp + 0x20]
push 1
push 0
lea ecx, [esp + 0x28]
call dword [edx + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x20]
call dword [eax + 0x10]
xor ebx, ebx
cmp esi, eax
jb 0x402af0
mov eax, dword [esp + 0x54]
add eax, 0xfffffff8
cmp eax, ebx
je 0x402c73
cmp eax, 0x8cccc8
je 0x402c73
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x58]
add eax, 0xfffffff8
cmp eax, ebx
mov esi, 0x8cccd0
mov dword [esp + 0x54], esi
je 0x402c97
cmp eax, 0x8cccc8
je 0x402c97
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x58], esi
call fcn.004f64c0
lea ecx, [esp + 0x20]
call fcn.00412b40
lea eax, [edi - 8]
pop edi
pop esi
pop ebp
cmp eax, ebx
pop ebx
je 0x402cc8
cmp eax, 0x8cccc8
je 0x402cc8
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
add esp, 0x54
ret