Function at 0x45e840
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5509a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
mov al, byte [ebp + 0x10]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
test al, al
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
je 0x45ea21
mov eax, dword [edi + 0x8c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 9
mov eax, dword [eax + 0x1c]
push 0x110a
push eax
call ebx
mov esi, eax
test esi, esi
je 0x45ea21
mov eax, dword [edi + 0x8c]
push esi
push 3
push 0x110a
mov ecx, dword [eax + 0x1c]
push ecx
call ebx
mov ecx, dword [edi + 0x8c]
mov edx, dword [ecx + 0x44]
cmp esi, edx
je 0x45e96c
cmp esi, dword [ecx + 0x3c]
je 0x45e96c
mov ebx, dword [ecx + 0x40]
cmp esi, ebx
je 0x45e96c
cmp eax, edx
je 0x45e96c
cmp eax, dword [ecx + 0x3c]
je 0x45e96c
cmp eax, ebx
je 0x45e96c
mov edx, dword [ecx + 0x48]
cmp esi, edx
jne 0x45e908
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x77c]
test eax, eax
jg 0x45ea24
jmp 0x45e923
cmp eax, edx
jne 0x45e939
push esi
call fcn.005320fc
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x77c]
cmp ecx, eax
je 0x45ea24
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ecx + 0x4c]
cmp esi, edx
jne 0x45e953
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x40c]
test eax, eax
jg 0x45ea24
jmp 0x45e923
cmp eax, edx
jne 0x45ea21
push esi
call fcn.005320fc
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x40c]
jmp 0x45e91b
mov edx, dword [0x5b5ecc]
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push esi
call fcn.00460560
mov ecx, dword [edi + 0x8c]
push esi
mov byte [ebp + 0x13], al
call fcn.004604a0
mov dl, byte [ebp + 0x13]
mov ebx, eax
test dl, dl
je 0x45e9be
mov ecx, dword [edi + 0x8c]
push esi
call fcn.005320fc
mov esi, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [esi + 0x33c]
cmp edx, eax
mov dl, byte [ebp + 0x13]
sete cl
mov eax, ecx
jmp 0x45e9c3
mov esi, dword [ebp + 8]
xor eax, eax
test ebx, ebx
je 0x45ea13
mov ecx, 3
cmp ebx, ecx
jne 0x45e9d6
test eax, eax
jne 0x45ea13
jmp 0x45ea02
cmp ebx, 1
jne 0x45e9ed
cmp dword [esi + 0x644], ecx
je 0x45ea02
test dl, dl
je 0x45ea13
test eax, eax
jne 0x45ea13
jmp 0x45ea02
cmp ebx, 2
jne 0x45ea02
cmp dword [esi + 0x644], ecx
jne 0x45ea02
test dl, dl
je 0x45ea13
test eax, eax
jne 0x45ea13
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00537b04
jmp 0x45e923
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00537b04
jmp 0x45ea24
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x408]
mov edx, dword [0x5b5ecc]
mov dword [ebp - 0x78], 5
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
mov byte [ebp - 4], 2
call fcn.004fcf60
mov eax, dword [ebp - 0x28]
mov edx, dword [edi + 0x1c]
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x64], eax
mov eax, dword [eax - 8]
push ecx
push 0
push 0x1007
push edx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 0
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
mov eax, dword [esi + 0x58]
test eax, eax
mov dword [ebp - 0x18], ebx
je 0x45ea95
push eax
push 8
push ebx
mov ecx, edi
call fcn.00531d81
mov edi, dword [esi + 0x410]
mov eax, dword [esi + 0x414]
mov ecx, edi
or ecx, eax
je 0x45eea5
mov dword [ebp - 0x50], 0x55f220
mov esi, eax
push 0
push 0x400
push esi
push edi
mov byte [ebp - 4], 3
call fcn.0051e2c0
mov dword [ebp - 0x2c], eax
mov ecx, edi
cdq
mov dword [ebp - 0x24], eax
sub ecx, eax
mov eax, esi
push 0
sbb eax, edx
push 0x400
push eax
push ecx
mov dword [ebp - 0x20], edx
call fcn.0051e210
mov ebx, eax
and ebx, 0x800003ff
jns 0x45eaf8
dec ebx
or ebx, 0xfffffc00
inc ebx
mov eax, ebx
mov ecx, edi
shl eax, 0xa
cdq
sub ecx, eax
mov eax, esi
sbb eax, edx
mov edx, dword [ebp - 0x24]
sub ecx, edx
mov edx, dword [ebp - 0x20]
sbb eax, edx
push 0
push 0x100000
push eax
push ecx
call fcn.0051e210
and eax, 0x800003ff
jns 0x45eb2c
dec eax
or eax, 0xfffffc00
inc eax
push 0
push 0x40000000
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0051e210
lea ecx, [ebp + 0x10]
push 3
push ecx
mov esi, eax
push 0xe
push 0x400
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x45eb7f
mov edi, 0x59a5b0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x10]
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 - 0x20]
mov edi, dword [ebp - 0x1c]
test esi, esi
jne 0x45ec48
cmp edi, 0x3e7
jg 0x45ec48
test edi, edi
jne 0x45ec06
cmp ebx, 0x3e7
jg 0x45ec06
test ebx, ebx
je 0x45ebe6
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 [0x5bafd8]
mov ecx, eax
mov eax, 0x66666667
sar ecx, 0xa
push edx
imul ecx
sar edx, 2
mov eax, edx
lea ecx, [ebp + 0x10]
shr eax, 0x1f
add edx, eax
push edx
push ecx
push ebx
jmp 0x45ec80
mov eax, dword [0x5bafd4]
mov ecx, dword [ebp - 0x2c]
push eax
push ecx
lea edx, [ebp - 0x4c]
push str._d___s
push edx
call fcn.0051d0e8
add esp, 0x10
jmp 0x45ec91
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 [0x5bafdc]
push eax
mov eax, 0x66666667
sar ecx, 0xa
imul ecx
sar edx, 2
mov ecx, edx
lea eax, [ebp - 0x4c]
shr ecx, 0x1f
add edx, ecx
push edx
lea edx, [ebp + 0x10]
push edx
push edi
push str._d_s_02d___s
push eax
jmp 0x45ec89
lea eax, [edi + edi*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x3ff
add eax, edx
mov edx, dword [0x5bafe0]
mov ecx, eax
mov eax, 0x66666667
sar ecx, 0xa
push edx
imul ecx
sar edx, 2
mov eax, edx
lea ecx, [ebp + 0x10]
shr eax, 0x1f
add edx, eax
push edx
push ecx
push esi
lea edx, [ebp - 0x4c]
push str._d_s_02d___s
push edx
call fcn.0051d0e8
add esp, 0x18
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x4c]
push eax
push 3
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00531d81
mov edi, dword [ebp + 8]
cmp dword [edi + 0x644], 3
je 0x45ee9b
lea edx, [ebp + 0x10]
push 3
push edx
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x45ecf0
mov edi, 0x59a5b0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x10]
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 + 8]
mov eax, dword [edi + 0x41c]
mov ecx, dword [edi + 0x418]
test eax, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
jl 0x45ed64
jg 0x45ed0c
test ecx, ecx
jbe 0x45ed64
fild qword [ebp - 0x24]
fmul dword [0x5602b0]
fild qword [edi + 0x410]
fdivp st(1)
fld st(0)
call fcn.0051ca44
mov esi, eax
mov dword [ebp - 0x20], esi
fild dword [ebp - 0x20]
fsubr st(1)
fmul dword [0x5602b0]
call fcn.0051ca44
lea ecx, [ebp + 0x10]
push eax
push ecx
push esi
lea edx, [ebp - 0x4c]
push str._d_s_02d__
push edx
fstp st(0)
call fcn.0051d0e8
mov ecx, dword [ebp - 0x18]
add esp, 0x14
lea eax, [ebp - 0x4c]
push eax
push 4
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00531d81
mov eax, dword [edi + 0x420]
cmp eax, 0xa
jle 0x45ee9b
mov esi, dword [edi + 0x410]
mov ecx, dword [edi + 0x414]
mov edx, dword [edi + 0x418]
mov edi, dword [edi + 0x41c]
cmp ecx, edi
jl 0x45ee9b
jg 0x45ed9d
cmp esi, edx
jb 0x45ee9b
mov ebx, esi
or ebx, ecx
je 0x45ee9b
mov dword [ebp - 0x20], 0x55f220
sub esi, edx
mov byte [ebp - 4], 4
cdq
sbb ecx, edi
push edx
push eax
push ecx
push esi
call fcn.0051e210
mov esi, edx
mov edi, eax
test esi, esi
jg 0x45edde
jl 0x45edce
test edi, edi
jae 0x45edde
mov edx, dword [0x5bb0f8]
lea eax, [ebp - 0x4c]
push edx
push eax
jmp 0x45ee81
push 0
push 0x3c
push esi
push edi
call fcn.0051e2c0
mov ebx, eax
mov ecx, edi
cdq
sub ecx, eax
mov eax, esi
sbb eax, edx
push 0
push 0x3c
push eax
push ecx
call fcn.0051e210
push 0
push 0x3c
push edx
push eax
call fcn.0051e2c0
push 0
push 0xe10
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0051e210
test edx, edx
jg 0x45ee78
jl 0x45ee28
cmp eax, 0x2710
ja 0x45ee78
test eax, eax
je 0x45ee46
mov ecx, dword [ebp - 0x1c]
mov edx, dword [0x5bb150]
push ecx
push eax
lea eax, [ebp - 0x4c]
push edx
push eax
call fcn.0051d0e8
add esp, 0x10
jmp 0x45ee89
mov eax, dword [ebp - 0x1c]
push ebx
test eax, eax
je 0x45ee64
mov ecx, dword [0x5bb14c]
push eax
lea edx, [ebp - 0x4c]
push ecx
push edx
call fcn.0051d0e8
add esp, 0x10
jmp 0x45ee89
mov eax, dword [0x5bb148]
lea ecx, [ebp - 0x4c]
push eax
push ecx
call fcn.0051d0e8
add esp, 0xc
jmp 0x45ee89
lea edx, [ebp - 0x4c]
push 0x597d04
push edx
call fcn.0051d0e8
add esp, 8
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x4c]
push eax
push 5
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00531d81
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 2
mov eax, dword [esi + 0x41c]
test eax, eax
jg 0x45eeed
jl 0x45eebb
mov eax, dword [esi + 0x418]
test eax, eax
ja 0x45eeed
mov eax, dword [esi + 0x768]
cmp eax, 0x7565
jne 0x45eed1
mov edx, dword [0x5bae4c]
push edx
jmp 0x45eee2
cmp eax, 0x7540
je 0x45eeed
test eax, eax
je 0x45eeed
mov eax, dword [0x5bae44]
push eax
mov ecx, dword [ebp - 0x14]
push 4
push ebx
call fcn.00531d81
lea edx, [esi + 0x5c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x45ef0a
mov ecx, dword [ebp - 0x14]
push edx
push 7
push ebx
call fcn.00531d81
lea edx, [esi + 0x8c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x45ef2a
mov ecx, dword [ebp - 0x14]
push edx
push 1
push ebx
call fcn.00531d81
mov eax, dword [esi + 0x54]
test eax, eax
je 0x45ef78
push eax
lea ecx, [ebp + 0x10]
call fcn.00537b72
mov eax, dword [0x5ba8c0]
mov byte [ebp - 4], 5
test eax, eax
je 0x45ef5d
mov ecx, dword [0x5ba790]
mov edx, dword [0x5ba794]
push ecx
push edx
lea ecx, [ebp + 0x10]
call fcn.0053031b
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
push eax
push 9
push ebx
call fcn.00531d81
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.00537b04
mov eax, dword [esi + 0x38]
test eax, eax
je 0x45ef8b
mov ecx, dword [ebp - 0x14]
push eax
push 0xa
push ebx
call fcn.00531d81
cmp dword [esi + 0x644], 3
jne 0x45efa6
mov ecx, dword [0x5bb17c]
push ecx
mov ecx, dword [ebp - 0x14]
push 4
push ebx
call fcn.00531d81
mov al, byte [ebp + 0xc]
test al, al
je 0x45efd6
test ebx, ebx
jl 0x45efd6
push 8
call fcn.005380a1
mov edx, dword [ebp - 0x14]
add esp, 4
mov dword [eax], esi
mov dword [eax + 4], edx
push 0
push 0
push 0
push 0xfffffffffffffffe
push eax
push 0x45dd80
call fcn.00538218
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00537b04
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc