Function at 0x46baf0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bebf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf0
push ebx
mov ebx, ecx
push esi
push edi
mov ecx, dword [ebx]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0
mov eax, dword [ecx + 0x864]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x46c0c6
mov edx, eax
mov eax, dword [edx + 0x150]
mov edx, dword [edx + 0x154]
mov dword [ebp - 0x28], eax
or eax, edx
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 8]
jne 0x46bb61
test eax, eax
je 0x46bb61
mov edx, dword [eax]
mov dword [ebp - 0x28], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x24], edx
mov ecx, dword [ecx + 0x864]
mov esi, dword [ecx + 0x158]
mov edx, esi
mov dword [ebp - 0x1c], esi
mov edi, dword [ecx + 0x15c]
or edx, edi
mov dword [ebp - 0x18], edi
jne 0x46bb9d
test eax, eax
je 0x46c0c6
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov eax, esi
mov dword [ebp - 0x1c], esi
or eax, edi
mov dword [ebp - 0x18], edi
je 0x46c0c6
lea ecx, [ebp - 0x3c]
push ecx
push edi
push esi
mov ecx, ebx
call fcn.0046c100
lea edx, [ebp + 8]
push 3
push edx
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x46bbea
mov edi, 0x65f3d4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 8]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
or ecx, eax
je 0x46bc85
mov eax, dword [ebx]
add eax, 0x428
mov edx, dword [eax]
mov ecx, dword [eax + 4]
or edx, ecx
jne 0x46bc18
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
push 0x1473
call fcn.0046b1f0
fild qword [ebp - 0x1c]
fild qword [ebp - 0x28]
fld st(1)
fmul dword [0x5dc500]
fdiv st(1)
fstp dword [ebp - 0x14]
fxch st(1)
fmul dword [0x5ddd98]
fdiv st(1)
call fcn.00589918
mov ecx, dword [ebx + 0xe4]
push 0
push eax
push 0x402
push ecx
fstp st(0)
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x687b3c]
test eax, eax
je 0x46bd15
mov eax, dword [ebx + 0x9d8]
test eax, eax
je 0x46bd15
mov ecx, dword [ebp - 0x24]
mov edx, dword [eax]
push ecx
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebx + 0xc]
push edi
push esi
push ecx
push eax
call dword [edx + 0x24]
jmp 0x46bd15
mov ecx, dword [ebx]
fld qword [ecx + 0x320]
fcomp qword [0x5da768]
fnstsw ax
test ah, 0x41
jne 0x46bd15
mov eax, dword [ecx + 0x864]
fld qword [eax + 0x130]
fmul qword [0x5dc508]
fdiv qword [ecx + 0x320]
fstp dword [ebp - 0x14]
fld qword [eax + 0x130]
fmul qword [0x5ddda0]
fdiv qword [ecx + 0x320]
call fcn.00589918
mov edx, dword [ebx + 0xe4]
push 0
push eax
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x687b3c]
test eax, eax
je 0x46bd15
mov esi, dword [ebx + 0x9d8]
test esi, esi
je 0x46bd15
fld dword [ebp - 0x14]
fmul dword [0x5ddd9c]
mov edi, dword [esi]
push 0
push 0x186a0
call fcn.00589918
push edx
push eax
mov eax, dword [ebx + 0xc]
push eax
push esi
call dword [edi + 0x24]
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x44]
cmp eax, 4
je 0x46bd28
cmp eax, 5
jne 0x46be6b
fld qword [ecx + 0x320]
fcomp qword [0x5da768]
fnstsw ax
test ah, 0x41
je 0x46be6b
mov eax, dword [ecx + 0x864]
test eax, eax
je 0x46be4a
mov ecx, eax
fld qword [ecx + 0x130]
call fcn.00589918
mov esi, edx
mov edi, eax
test esi, esi
jl 0x46be38
jg 0x46bd70
test edi, edi
jb 0x46be38
push 0
push 0x3c
push esi
push edi
call fcn.0058b2f0
mov dword [ebp - 0x18], eax
mov ecx, edi
cdq
sub ecx, eax
mov eax, esi
sbb eax, edx
push 0
push 0x3c
push eax
push ecx
call fcn.0058b240
push 0
push 0x3c
push edx
push eax
call fcn.0058b2f0
push 0
push 0xe10
push esi
push edi
mov dword [ebp - 0x2c], eax
call fcn.0058b240
test edx, edx
jg 0x46be02
jl 0x46bdbb
cmp eax, 0x2710
ja 0x46be02
test eax, eax
je 0x46bdcc
mov ecx, dword [ebp - 0x2c]
mov edx, dword [0x688690]
push ecx
push eax
jmp 0x46bdde
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
test eax, eax
push ecx
je 0x46bded
mov edx, dword [0x68868c]
push eax
lea eax, [ebp - 0x7c]
push edx
push eax
call fcn.00589e0a
add esp, 0x10
jmp 0x46be13
mov edx, dword [0x688688]
lea eax, [ebp - 0x7c]
push edx
push eax
call fcn.00589e0a
add esp, 0xc
jmp 0x46be13
lea ecx, [ebp - 0x7c]
push 0x65be5c
push ecx
call fcn.00589e0a
add esp, 8
lea edx, [ebp - 0x7c]
lea eax, [ebp - 0x3c]
push edx
push eax
lea ecx, [ebp - 0xfc]
push str._s____s_
push ecx
call fcn.00589e0a
add esp, 0x10
lea eax, [ebp - 0xfc]
push eax
jmp 0x46beae
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0xfc]
push edx
push 0x65bf6c
push eax
jmp 0x46be5a
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0xfc]
push ecx
push 0x65bf6c
push edx
call fcn.00589e0a
add esp, 0xc
lea eax, [ebp - 0xfc]
push eax
jmp 0x46beae
fld dword [ebp - 0x14]
call fcn.00589918
mov esi, eax
mov dword [ebp - 0x2c], esi
fild dword [ebp - 0x2c]
fsubr dword [ebp - 0x14]
fmul dword [0x5dc500]
call fcn.00589918
lea ecx, [ebp + 8]
push eax
push ecx
lea edx, [ebp - 0x3c]
push esi
push edx
lea eax, [ebp - 0xfc]
push str._s_____d_s_02d_____
push eax
call fcn.00589e0a
add esp, 0x18
lea ecx, [ebp - 0xfc]
push ecx
lea ecx, [ebx + 0x320]
call fcn.00462960
fld dword [ebp - 0x14]
call fcn.00589918
cmp dword [ebx + 0xa40], eax
je 0x46c0c6
mov esi, dword [ebp - 0x20]
lea edx, [ebp - 0x3c]
push 0xa
push edx
push eax
mov dword [esi + 0xa40], eax
call fcn.0058f0cd
add esi, 0xa6c
add esp, 0xc
mov ecx, esi
mov ebx, eax
call fcn.00401070
test ebx, ebx
je 0x46bf40
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x46bf40
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push ebx
push eax
push eax
call edi
test eax, eax
mov dword [esi + 8], eax
je 0x46bf40
lea eax, [eax + eax + 2]
push eax
call fcn.005a1be9
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x46bf40
mov ecx, dword [esi + 8]
push ecx
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call edi
mov dword [esi + 8], eax
mov edx, 0x662744
test edx, edx
je 0x46bfce
push edx
call fcn.00589432
add esp, 4
test eax, eax
je 0x46bfce
mov eax, dword [esi]
test eax, eax
je 0x46bf6d
push eax
call fcn.00589432
add esp, 4
mov edi, eax
jmp 0x46bf6f
xor edi, edi
push 0x662744
call fcn.00589432
add eax, edi
lea eax, [eax + eax + 2]
push eax
call fcn.005a1be9
mov edi, eax
add esp, 8
test edi, edi
je 0x46bfce
mov eax, dword [esi]
test eax, eax
je 0x46bfab
push eax
push edi
call fcn.005895ca
push 0x662744
push edi
call fcn.005895a0
add esp, 0x10
jmp 0x46bfb9
push 0x662744
push edi
call fcn.005895ca
add esp, 8
mov ecx, esi
call fcn.00401070
push edi
mov dword [esi], edi
call fcn.00589432
add esp, 4
mov dword [esi + 8], eax
mov edi, dword [ebp - 0x20]
mov ebx, dword [edi + 0xa60]
test ebx, ebx
jne 0x46bfe5
lea ebx, [edi + 0xa64]
test ebx, ebx
je 0x46c05d
push ebx
call fcn.00589432
add esp, 4
test eax, eax
je 0x46c05d
mov eax, dword [esi]
test eax, eax
je 0x46c005
push eax
call fcn.00589432
add esp, 4
mov edi, eax
jmp 0x46c007
xor edi, edi
push ebx
call fcn.00589432
add eax, edi
lea ecx, [eax + eax + 2]
push ecx
call fcn.005a1be9
mov edi, eax
add esp, 8
test edi, edi
je 0x46c05a
mov eax, dword [esi]
test eax, eax
je 0x46c03b
push eax
push edi
call fcn.005895ca
push ebx
push edi
call fcn.005895a0
add esp, 0x10
jmp 0x46c045
push ebx
push edi
call fcn.005895ca
add esp, 8
mov ecx, esi
call fcn.00401070
push edi
mov dword [esi], edi
call fcn.00589432
add esp, 4
mov dword [esi + 8], eax
mov edi, dword [ebp - 0x20]
mov eax, dword [edi + 0x10]
test eax, eax
mov eax, dword [esi]
je 0x46c089
test eax, eax
je 0x46c079
mov edx, dword [edi + 0xc]
mov esi, eax
push esi
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x46c0b3
mov edx, dword [edi + 0xc]
add esi, 4
push esi
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x46c0b3
test eax, eax
je 0x46c091
mov esi, eax
jmp 0x46c094
add esi, 4
push esi
lea ecx, [ebp - 0x18]
call fcn.005a590d
mov eax, dword [ebp - 0x18]
mov ecx, dword [edi + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea ecx, [ebp - 0x18]
call fcn.005a584d
mov ecx, dword [0x687c6c]
test ecx, ecx
je 0x46c0c6
mov edx, dword [edi + 0xc]
push edx
call fcn.005008b0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4