Function at 0x4807e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f97e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfc
push ebx
mov ebx, ecx
push esi
push edi
mov ecx, dword [ebx]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], 0
mov eax, dword [ecx + 0x8b8]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x480e8f
mov edx, eax
mov eax, dword [edx + 0x1c8]
mov edx, dword [edx + 0x1cc]
mov dword [ebp - 0x24], eax
or eax, edx
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 8]
jne 0x480851
test eax, eax
je 0x480851
mov edx, dword [eax]
mov dword [ebp - 0x24], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x20], edx
mov ecx, dword [ecx + 0x8b8]
mov esi, dword [ecx + 0x1d0]
mov edx, esi
mov dword [ebp - 0x1c], esi
mov edi, dword [ecx + 0x1d4]
or edx, edi
mov dword [ebp - 0x18], edi
jne 0x48088d
test eax, eax
je 0x480e8f
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 0x480e8f
lea ecx, [ebp - 0x3c]
push ecx
push edi
push esi
mov ecx, ebx
call fcn.00480ec0
lea edx, [ebp + 8]
push 3
push edx
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4808da
mov edi, 0x6a1b58
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 esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
or ecx, eax
je 0x480975
mov eax, dword [ebx]
add eax, 0x470
mov edx, dword [eax]
mov ecx, dword [eax + 4]
or edx, ecx
jne 0x480908
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
push 0x1473
call fcn.0047fe50
fild qword [ebp - 0x1c]
fild qword [ebp - 0x24]
fld st(1)
fmul dword [0x6196c8]
fdiv st(1)
fstp dword [ebp - 0x14]
fxch st(1)
fmul dword [0x61af70]
fdiv st(1)
call fcn.005c3408
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 [0x6cce48]
test eax, eax
je 0x480a05
mov eax, dword [ebx + 0xad8]
test eax, eax
je 0x480a05
mov ecx, dword [ebp - 0x20]
mov edx, dword [eax]
push ecx
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebx + 0xc]
push edi
push esi
push ecx
push eax
call dword [edx + 0x24]
jmp 0x480a05
mov ecx, dword [ebx]
fld qword [ecx + 0x368]
fcomp qword [0x6177c8]
fnstsw ax
test ah, 0x41
jne 0x480a05
mov eax, dword [ecx + 0x8b8]
fld qword [eax + 0x1a8]
fmul qword [0x6196d0]
fdiv qword [ecx + 0x368]
fstp dword [ebp - 0x14]
fld qword [eax + 0x1a8]
fmul qword [0x61af78]
fdiv qword [ecx + 0x368]
call fcn.005c3408
mov edx, dword [ebx + 0xe4]
push 0
push eax
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x6cce48]
test eax, eax
je 0x480a05
mov esi, dword [ebx + 0xad8]
test esi, esi
je 0x480a05
fld dword [ebp - 0x14]
fmul dword [0x61af74]
mov edi, dword [esi]
push 0
push 0x186a0
call fcn.005c3408
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 0x480a18
cmp eax, 5
jne 0x480b3f
fld qword [ecx + 0x368]
fcomp qword [0x6177c8]
fnstsw ax
test ah, 0x41
je 0x480b3f
mov eax, dword [ecx + 0x8b8]
test eax, eax
je 0x480b8d
mov ecx, eax
fld qword [ecx + 0x1a8]
call fcn.005c3408
mov esi, edx
mov edi, eax
test esi, esi
jl 0x480b2d
jg 0x480a60
test edi, edi
jb 0x480b2d
push 0
push 0x3c
push esi
push edi
call fcn.005c4ef0
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.005c4e40
push 0
push 0x3c
push edx
push eax
call fcn.005c4ef0
push 0
push 0xe10
push esi
push edi
mov dword [ebp - 0x2c], eax
call fcn.005c4e40
test edx, edx
jg 0x480af8
jl 0x480aab
cmp eax, 0x2710
ja 0x480af8
test eax, eax
je 0x480abc
mov ecx, dword [ebp - 0x2c]
mov edx, dword [0x6cdb10]
push ecx
push eax
jmp 0x480ace
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
test eax, eax
push ecx
je 0x480ae0
mov edx, dword [0x6cdb0c]
push eax
lea eax, [ebp - 0x88]
push edx
push eax
call fcn.005c3928
add esp, 0x10
jmp 0x480b0c
mov edx, dword [0x6cdb08]
lea eax, [ebp - 0x88]
push edx
push eax
call fcn.005c3928
add esp, 0xc
jmp 0x480b0c
lea ecx, [ebp - 0x88]
push 0x69deec
push ecx
call fcn.005c3928
add esp, 8
lea edx, [ebp - 0x88]
lea eax, [ebp - 0x3c]
push edx
push eax
lea ecx, [ebp - 0x108]
push str._s____s_
push ecx
call fcn.005c3928
add esp, 0x10
jmp 0x480ba5
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x108]
push edx
push 0x69dfbc
push eax
jmp 0x480b9d
fld dword [ebp - 0x14]
fcomp qword [0x6196c0]
fnstsw ax
test ah, 1
je 0x480b8d
fld dword [ebp - 0x14]
call fcn.005c3408
mov esi, eax
mov dword [ebp - 0x18], esi
fild dword [ebp - 0x18]
fsubr dword [ebp - 0x14]
fmul dword [0x6196c8]
call fcn.005c3408
lea ecx, [ebp + 8]
push eax
push ecx
lea edx, [ebp - 0x3c]
push esi
push edx
lea eax, [ebp - 0x108]
push str._s_____d_s_02d_____
push eax
call fcn.005c3928
add esp, 0x18
jmp 0x480ba5
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0x108]
push ecx
push 0x69dfbc
push edx
call fcn.005c3928
add esp, 0xc
lea eax, [ebp - 0x108]
lea ecx, [ebx + 0x420]
push eax
call fcn.00476d00
fld dword [ebp - 0x14]
call fcn.005c3408
mov ecx, eax
mov eax, dword [ebx + 0xb40]
cmp eax, ecx
je 0x480e8f
fld dword [ebp - 0x14]
fcomp qword [0x6196c0]
mov dword [ebx + 0xb40], ecx
fnstsw ax
test ah, 1
je 0x480d81
lea edx, [ebp - 0x3c]
push 0xa
push edx
push ecx
call fcn.005c6fef
mov ebx, eax
mov eax, dword [ebp - 0x28]
add esp, 0xc
lea esi, [eax + 0xb6c]
mov ecx, esi
call fcn.00401070
test ebx, ebx
je 0x480c56
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x480c56
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 0x480c56
lea ecx, [eax + eax + 2]
push ecx
call fcn.005db95d
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x480c56
mov edx, dword [esi + 8]
push edx
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call edi
mov dword [esi + 8], eax
mov eax, 0x6a51a4
test eax, eax
je 0x480ce4
push eax
call fcn.005c2f1a
add esp, 4
test eax, eax
je 0x480ce4
mov eax, dword [esi]
test eax, eax
je 0x480c83
push eax
call fcn.005c2f1a
add esp, 4
mov edi, eax
jmp 0x480c85
xor edi, edi
push 0x6a51a4
call fcn.005c2f1a
add eax, edi
lea ecx, [eax + eax + 2]
push ecx
call fcn.005db95d
mov edi, eax
add esp, 8
test edi, edi
je 0x480ce4
mov eax, dword [esi]
test eax, eax
je 0x480cc1
push eax
push edi
call fcn.005c30ba
push 0x6a51a4
push edi
call fcn.005c3090
add esp, 0x10
jmp 0x480ccf
push 0x6a51a4
push edi
call fcn.005c30ba
add esp, 8
mov ecx, esi
call fcn.00401070
push edi
mov dword [esi], edi
call fcn.005c2f1a
add esp, 4
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax + 0xb60]
test ebx, ebx
jne 0x480cff
lea ebx, [eax + 0xb64]
test ebx, ebx
je 0x480e36
push ebx
call fcn.005c2f1a
add esp, 4
test eax, eax
je 0x480e36
mov eax, dword [esi]
test eax, eax
je 0x480d23
push eax
call fcn.005c2f1a
add esp, 4
mov edi, eax
jmp 0x480d25
xor edi, edi
push ebx
call fcn.005c2f1a
add eax, edi
lea edx, [eax + eax + 2]
push edx
call fcn.005db95d
mov edi, eax
add esp, 8
test edi, edi
je 0x480e36
mov eax, dword [esi]
test eax, eax
je 0x480d5d
push eax
push edi
call fcn.005c30ba
push ebx
push edi
call fcn.005c3090
add esp, 0x10
jmp 0x480d67
push ebx
push edi
call fcn.005c30ba
add esp, 8
mov ecx, esi
call fcn.00401070
push edi
mov dword [esi], edi
call fcn.005c2f1a
add esp, 4
mov dword [esi + 8], eax
jmp 0x480e36
mov edi, dword [ebx + 0xb60]
test edi, edi
jne 0x480d91
lea edi, [ebx + 0xb64]
test edi, edi
lea esi, [ebx + 0xb6c]
je 0x480df0
cmp dword [esi], 0
je 0x480df0
push edi
call fcn.005c2f1a
add esp, 4
test eax, eax
je 0x480df0
mov eax, dword [esi]
cmp eax, edi
ja 0x480df0
push eax
call fcn.005c2f1a
mov ecx, dword [esi]
add esp, 4
lea edx, [ecx + eax*2]
cmp edx, edi
jb 0x480df0
push edi
lea ecx, [ebp - 0x48]
call fcn.0040d680
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00401f40
push eax
mov ecx, esi
call fcn.00401f50
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00401070
jmp 0x480e36
mov ecx, esi
call fcn.00401070
test edi, edi
je 0x480e36
push edi
call fcn.005c2f1a
add esp, 4
test eax, eax
je 0x480e36
push edi
call fcn.005c2f1a
lea eax, [eax + eax + 2]
push eax
call fcn.005db95d
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x480e36
push edi
call fcn.005c2f1a
mov ecx, dword [esi]
push edi
push ecx
mov dword [esi + 8], eax
call fcn.005c30ba
add esp, 0xc
mov edi, dword [ebp - 0x28]
mov eax, dword [edi + 0x10]
test eax, eax
mov eax, dword [esi]
je 0x480e56
test eax, eax
jne 0x480e49
lea eax, [esi + 4]
mov edx, dword [edi + 0xc]
push eax
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x480e7c
test eax, eax
jne 0x480e5d
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x18]
call fcn.005df616
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.005df556
mov ecx, dword [0x6ccf94]
test ecx, ecx
je 0x480e8f
mov edx, dword [edi + 0xc]
push edx
call fcn.00521730
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4