Function at 0x4a7590
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61fa78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xdc
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
push 0
push 0
mov eax, dword [ebx + 0x23c]
push 0xf0
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0
call esi
mov ecx, dword [ebx + 0x22c]
push 0
push 0
push 0xf0
push ecx
mov edi, eax
call esi
test edi, edi
mov dword [ebp - 0x60], eax
je 0x4a7645
xor edi, edi
cmp edi, dword [ebx + 0x6c]
jge 0x4a7d57
mov eax, dword [ebx + 0x68]
lea edx, [edi + edi*2]
shl edx, 4
mov ecx, dword [eax + edx + 0x10]
test ecx, ecx
jne 0x4a7642
mov edx, dword [ebx + 0x198]
lea ecx, [ebp - 0x80]
push ecx
push 0xffffffffffffffff
push 0x100d
push edx
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x78], edi
call esi
test eax, eax
jl 0x4a7642
push 0
push eax
mov eax, dword [ebx + 0x198]
push 0x1008
push eax
call esi
inc edi
jmp 0x4a75f5
xor esi, esi
mov eax, dword [ebx + 0x6c]
mov dword [ebp - 0x50], esi
cmp esi, eax
jge 0x4a7d44
mov edx, dword [ebx + 0x68]
lea ecx, [esi + esi*2]
shl ecx, 4
lea eax, [ecx + edx]
mov ecx, dword [ecx + edx + 0x10]
test ecx, ecx
jne 0x4a7d3e
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x4a767f
mov ecx, dword [ebp - 0x60]
test ecx, ecx
jne 0x4a7d3e
mov ecx, dword [eax + 8]
cmp dword [ecx + 0x314], 4
je 0x4a7694
cmp dword [ecx + 0x31c], 0x40
jne 0x4a76a2
mov dl, byte [ecx + 0x322]
test dl, dl
jne 0x4a7d3e
mov ecx, dword [0x6cd768]
mov dword [ebp - 0x34], ecx
mov edi, dword [eax + 8]
lea edx, [ebp - 0x34]
push 0
push edx
lea ecx, [edi + 0x20]
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], edi
call fcn.00582290
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x4a76e5
mov eax, dword [edi + 0x54]
test eax, eax
jne 0x4a76d4
lea eax, [edi + 0x58]
push 0x5c
push eax
call fcn.005e710f
mov edi, eax
add esp, 8
test edi, edi
jne 0x4a76f7
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.00603a3c
inc esi
jmp 0x4a7647
push 0
push 0
push 0
push 0
add ebx, 0x17c
push 0x6d1c98
push esi
push 1
mov ecx, ebx
add edi, 2
call fcn.005fdbd7
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
jle 0x4a7d2f
mov ecx, dword [ebp - 0x24]
push edi
push eax
push 0
mov edx, dword [ecx + 0x198]
push edx
call fcn.0044f770
add esp, 0x10
mov eax, dword [ebp - 0x20]
mov ecx, ebx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
push 4
push esi
push eax
call fcn.005fdc59
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x34]
push esi
push edx
mov ebx, dword [ecx + 0x198]
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x54], esi
mov word [ebp - 0x58], si
call fcn.00402e00
mov esi, dword [ebp - 0x20]
mov ecx, 9
xor eax, eax
lea edi, [ebp - 0xa4]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0xa8], 1
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa0], 3
call fcn.00402400
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x94], eax
call fcn.00402400
push eax
call fcn.005e71bf
add esp, 4
inc eax
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0xa8]
push eax
push esi
push 0x1074
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x5c]
call fcn.00401070
mov ecx, dword [ebp - 0x1c]
xor esi, esi
mov ebx, dword [ecx + 0x60]
cmp ebx, esi
je 0x4a7896
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4a7896
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x44], esi
mov word [ebp - 0x48], si
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.00401070
cmp ebx, esi
je 0x4a7867
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4a7867
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push esi
push 0xffffffffffffffff
push ebx
push esi
push 0xfde9
call edi
cmp eax, esi
mov dword [ebp - 0x44], eax
je 0x4a7867
lea edx, [eax + eax + 2]
push edx
call fcn.005ffe3f
add esp, 4
cmp eax, esi
mov dword [ebp - 0x4c], eax
je 0x4a786e
mov ecx, dword [ebp - 0x44]
push ecx
push eax
push 0xffffffffffffffff
push ebx
push esi
push 0xfde9
call edi
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x4c]
cmp eax, esi
jne 0x4a7871
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push edx
push 5
mov ecx, dword [eax + 0x198]
push ecx
call fcn.0044f770
add esp, 0x10
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.00401070
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x38], esi
mov eax, dword [edx + 0x54]
mov word [ebp - 0x3c], si
push eax
call fcn.00402410
mov eax, dword [0x6d2358]
mov byte [ebp - 4], 3
cmp eax, esi
je 0x4a7a98
mov eax, dword [0x6d21c0]
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x4a78d3
mov dword [ebp - 0x18], 0x6d21c4
mov edi, dword [0x6d21d0]
test edi, edi
jne 0x4a78e2
mov edi, 0x6d21d4
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x2c], edi
test eax, eax
je 0x4a7a98
test edi, edi
je 0x4a7a98
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4a7a98
mov ecx, eax
push ecx
push edi
call fcn.005e77e4
add esp, 8
test eax, eax
je 0x4a7a98
mov edx, dword [ebp - 0x40]
push edi
push edx
call fcn.005e7a20
add esp, 8
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x4a7944
push edi
inc esi
call fcn.005e71bf
lea eax, [ebx + eax*2]
push edi
push eax
call fcn.005e7a20
add esp, 0xc
mov ebx, eax
jmp 0x4a7928
test esi, esi
je 0x4a7a98
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x74]
push eax
call fcn.0040e580
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 4
push ecx
call fcn.005e71bf
push edi
mov ebx, eax
call fcn.005e71bf
add esp, 8
cmp ebx, eax
jbe 0x4a79ca
lea ecx, [ebp - 0x40]
call fcn.00401070
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x4a7988
mov dword [ebp - 0x14], eax
jmp 0x4a798e
lea edx, [ebp - 0x70]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.005e71bf
push edi
mov ebx, eax
call fcn.005e71bf
mov ecx, dword [ebp - 0x14]
sub ebx, eax
push ecx
imul ebx, esi
call fcn.005e71bf
add ebx, eax
lea edx, [ebx + ebx + 2]
push edx
call fcn.005ffe3f
mov ebx, eax
add esp, 0x10
test ebx, ebx
mov dword [ebp - 0x40], ebx
jne 0x4a79cd
jmp 0x4a7a8c
mov ebx, dword [ebp - 0x40]
lea ecx, [ebp - 0x74]
call fcn.00402400
push edi
push eax
mov dword [ebp - 0x14], eax
call fcn.005e7a20
add esp, 8
test eax, eax
mov dword [ebp - 0x30], eax
je 0x4a7a4f
mov esi, dword [ebp - 0x14]
mov edi, ebx
sub eax, esi
sar eax, 1
shl eax, 1
mov ecx, eax
add ebx, eax
mov edx, ecx
mov eax, dword [ebp - 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.005e71bf
mov ecx, eax
mov eax, dword [ebp - 0x18]
shl ecx, 1
mov edx, ecx
mov esi, eax
mov edi, ebx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.005e71bf
mov esi, dword [ebp - 0x2c]
lea ebx, [ebx + eax*2]
push esi
call fcn.005e71bf
mov ecx, dword [ebp - 0x30]
push esi
lea eax, [ecx + eax*2]
push eax
mov dword [ebp - 0x14], eax
call fcn.005e7a20
add esp, 0x14
jmp 0x4a79e2
mov esi, dword [ebp - 0x14]
push esi
call fcn.005e71bf
mov ecx, eax
mov edi, ebx
shl ecx, 1
mov edx, ecx
mov eax, dword [ebp - 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.005e71bf
lea ebx, [ebx + eax*2]
mov word [ebx], 0
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.005e71bf
add esp, 0xc
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 3
call fcn.00401070
mov eax, dword [0x6d235c]
test eax, eax
je 0x4a7ac9
mov eax, dword [0x6d21a0]
test eax, eax
mov ecx, eax
jne 0x4a7ab1
mov ecx, 0x6d21a4
mov eax, dword [0x6d21b0]
test eax, eax
jne 0x4a7abf
mov eax, 0x6d21b4
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.0043e560
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x4a7ad3
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push edx
push 4
mov ecx, dword [eax + 0x198]
push ecx
call fcn.0044f770
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
mov edi, dword [ecx + 0x48c]
mov eax, dword [ecx + 0x488]
test edi, edi
jl 0x4a7d20
jg 0x4a7b0d
test eax, eax
jbe 0x4a7d20
mov dword [ebp - 0x30], 0x634d50
push 0
mov esi, eax
push 0x400
push edi
push esi
mov byte [ebp - 4], 5
call fcn.005e9130
mov dword [ebp - 0x2c], eax
mov ecx, esi
cdq
mov dword [ebp - 0x68], eax
sub ecx, eax
mov eax, edi
push 0
sbb eax, edx
push 0x400
push eax
push ecx
mov dword [ebp - 0x64], edx
call fcn.005e9080
mov ebx, eax
and ebx, 0x800003ff
jns 0x4a7b5a
dec ebx
or ebx, 0xfffffc00
inc ebx
mov eax, ebx
mov ecx, esi
shl eax, 0xa
cdq
sub ecx, eax
mov eax, edi
sbb eax, edx
mov edx, dword [ebp - 0x68]
sub ecx, edx
mov edx, dword [ebp - 0x64]
sbb eax, edx
push 0
push 0x100000
push eax
push ecx
call fcn.005e9080
and eax, 0x800003ff
jns 0x4a7b8e
dec eax
or eax, 0xfffffc00
inc eax
push 0
push 0x40000000
push edi
push esi
mov dword [ebp - 0x1c], eax
call fcn.005e9080
lea ecx, [ebp - 0x28]
push 3
push ecx
mov esi, eax
push 0xe
push 0x400
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4a7be1
mov edi, 0x6a5160
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x28]
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 - 0x14]
test esi, esi
jne 0x4a7cb2
mov eax, dword [ebp - 0x1c]
cmp eax, 0x3e7
jg 0x4a7cb2
test eax, eax
jne 0x4a7c6a
cmp ebx, 0x3e7
jg 0x4a7c6a
test ebx, ebx
je 0x4a7c47
mov eax, dword [ebp - 0x2c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x3ff
add eax, edx
mov edx, dword [0x6d2ff0]
mov ecx, eax
mov eax, 0x66666667
sar ecx, 0xa
push edx
imul ecx
sar edx, 2
mov eax, edx
lea ecx, [ebp - 0x28]
shr eax, 0x1f
add edx, eax
push edx
push ecx
push ebx
jmp 0x4a7ced
mov eax, dword [0x6d2fec]
mov ecx, dword [ebp - 0x2c]
push eax
push ecx
lea edx, [ebp - 0xe8]
push str._d___s
push edx
call fcn.005e7bd3
add esp, 0x10
jmp 0x4a7d01
lea ebx, [ebx + ebx*4]
lea eax, [ebx + ebx*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x3ff
add eax, edx
mov ecx, eax
mov eax, dword [0x6d2ff4]
push eax
mov eax, 0x66666667
sar ecx, 0xa
imul ecx
sar edx, 2
mov ecx, edx
mov eax, dword [ebp - 0x1c]
shr ecx, 0x1f
add edx, ecx
lea ecx, [ebp - 0xe8]
push edx
lea edx, [ebp - 0x28]
push edx
push eax
push str._d_s_02d___s
push ecx
jmp 0x4a7cf9
mov eax, dword [ebp - 0x1c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x3ff
add eax, edx
mov edx, dword [0x6d2ff8]
mov ecx, eax
mov eax, 0x66666667
sar ecx, 0xa
push edx
imul ecx
sar edx, 2
mov eax, edx
lea ecx, [ebp - 0x28]
shr eax, 0x1f
add edx, eax
push edx
push ecx
push esi
lea edx, [ebp - 0xe8]
push str._d_s_02d___s
push edx
call fcn.005e7bd3
add esp, 0x18
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0xe8]
push eax
mov eax, dword [edx + 0x198]
push ecx
push 2
push eax
call fcn.004a6540
add esp, 0x10
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00401070
mov esi, dword [ebp - 0x50]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.00603a3c
mov ebx, dword [ebp - 0x24]
inc esi
jmp 0x4a7647
push 0
push 0
push 0
push 0xfffffffffffffffe
push ebx
push 0x4a1620
call fcn.0060403a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret