Function at 0x521b80
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x64b6d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x3c], 0x659b68
xor ebp, ebp
mov dword [esp + 0xc8], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x38], ebp
mov word [esp + 0x34], bp
mov edi, dword [esp + 0xd0]
lea eax, [esp + 0x30]
push eax
mov ecx, edi
mov byte [esp + 0xcc], 1
call fcn.005d7b20
mov eax, dword [esp + 0x30]
cmp eax, ebp
jne 0x521bea
lea eax, [esp + 0x34]
mov ecx, dword [esp + 0xd4]
mov edx, dword [esi + 0xf0]
push eax
push ecx
push ebp
push edx
call fcn.00455400
mov esi, dword [edi + 0x4a8]
mov edi, dword [edi + 0x4ac]
mov eax, esi
add esp, 0x10
or eax, edi
je 0x52218f
push ebp
push 0x400
push edi
push esi
call fcn.0060bb90
mov dword [esp + 0x1c], eax
mov ecx, esi
cdq
mov ebx, eax
mov eax, edi
sub ecx, ebx
push ebp
sbb eax, edx
push 0x400
push eax
push ecx
mov dword [esp + 0x24], edx
call fcn.0060bae0
mov ebp, eax
and ebp, 0x800003ff
jns 0x521c58
dec ebp
or ebp, 0xfffffc00
inc ebp
mov eax, ebp
mov ecx, esi
shl eax, 0xa
cdq
sub ecx, eax
mov eax, edi
sbb eax, edx
sub ecx, ebx
mov ebx, dword [esp + 0x14]
push 0
sbb eax, ebx
push 0x100000
push eax
push ecx
call fcn.0060bae0
mov ebx, eax
and ebx, 0x800003ff
jns 0x521c8e
dec ebx
or ebx, 0xfffffc00
inc ebx
push 0
push 0x40000000
push edi
push esi
call fcn.0060bae0
lea ecx, [esp + 0x28]
push 3
push ecx
mov esi, eax
push 0xe
push 0x400
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x521ce2
mov edi, 0x6cd6b0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 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 [esp + 0x10]
test esi, esi
jne 0x521db0
cmp ebx, 0x3e7
jg 0x521db0
test ebx, ebx
jne 0x521d6a
cmp ebp, 0x3e7
jg 0x521d6a
test ebp, ebp
je 0x521d48
mov eax, dword [esp + 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 [0x6fd858]
mov ecx, eax
mov eax, 0x66666667
sar ecx, 0xa
push edx
imul ecx
sar edx, 2
mov eax, edx
lea ecx, [esp + 0x2c]
shr eax, 0x1f
add edx, eax
push edx
push ecx
push ebp
jmp 0x521de9
mov eax, dword [0x6fd854]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x48]
push str._d___s
push edx
call fcn.0060a593
add esp, 0x10
jmp 0x521dfb
lea ebp, [ebp + ebp*4]
lea eax, [ebp + ebp*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x3ff
add eax, edx
mov ecx, eax
mov eax, dword [0x6fd85c]
push eax
mov eax, 0x66666667
sar ecx, 0xa
imul ecx
sar edx, 2
mov ecx, edx
lea eax, [esp + 0x44]
shr ecx, 0x1f
add edx, ecx
push edx
lea edx, [esp + 0x30]
push edx
push ebx
push str._d_s_02d___s
push eax
jmp 0x521df3
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 edx, dword [0x6fd860]
mov ecx, eax
mov eax, 0x66666667
sar ecx, 0xa
push edx
imul ecx
sar edx, 2
mov eax, edx
lea ecx, [esp + 0x2c]
shr eax, 0x1f
add edx, eax
push edx
push ecx
push esi
lea edx, [esp + 0x50]
push str._d_s_02d___s
push edx
call fcn.0060a593
add esp, 0x18
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
mov edi, dword [esi + 0xf0]
call fcn.004027c0
mov eax, dword [0x6fca90]
lea ecx, [esp + 0x40]
push eax
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0xd0], 2
call fcn.004027e0
lea ecx, [esp + 0x10]
call fcn.00401f10
mov ebp, dword [esp + 0xd4]
push eax
push ebp
push 1
push edi
call fcn.0040bad0
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0xc8], 1
call fcn.00401070
mov ebx, dword [esp + 0xd0]
cmp dword [ebx + 0x8fc], 3
jne 0x521ec4
mov edx, dword [esi + 0xf0]
mov edi, dword [0x6fd9fc]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], edx
call fcn.004027c0
mov eax, dword [0x6fca90]
lea ecx, [esp + 0x1c]
push eax
push edi
mov byte [esp + 0xd0], 3
call fcn.004027e0
lea ecx, [esp + 0x1c]
call fcn.00401f10
mov ecx, dword [esp + 0x10]
push eax
push ebp
push 2
push ecx
call fcn.0040bad0
add esp, 0x10
mov byte [esp + 0xc8], 1
lea ecx, [esp + 0x1c]
jmp 0x5220e2
mov edx, dword [ebx + 0x4b0]
mov eax, dword [ebx + 0x4b4]
or edx, eax
je 0x521fb7
lea eax, [esp + 0x1c]
push 8
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x521f18
mov edi, 0x6cd6b0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
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 [esp + 0x2c]
fild qword [ebx + 0x4b0]
fmul dword [0x65b4d0]
fild qword [ebx + 0x4a8]
fdivp st(1)
fld st(0)
call fcn.0060a154
mov edi, eax
mov dword [esp + 0x10], edi
fild dword [esp + 0x10]
fsubr st(1)
fmul dword [0x65b4d0]
call fcn.0060a154
lea ecx, [esp + 0x1c]
push eax
push ecx
push edi
lea edx, [esp + 0x4c]
push str._d_s_02d__
push edx
fstp st(0)
call fcn.0060a593
mov edi, dword [esi + 0xf0]
add esp, 0x14
lea ecx, [esp + 0x10]
call fcn.004027c0
mov eax, dword [0x6fca90]
lea ecx, [esp + 0x40]
push eax
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0xd0], 4
call fcn.004027e0
lea ecx, [esp + 0x10]
call fcn.00401f10
push eax
push ebp
push 2
push edi
call fcn.0040bad0
add esp, 0x10
mov byte [esp + 0xc8], 1
lea ecx, [esp + 0x10]
jmp 0x5220e2
mov eax, dword [ebx + 0xa74]
cmp eax, 0x7565
jne 0x522020
mov edx, dword [esi + 0xf0]
mov edi, dword [0x6fd6cc]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], edx
call fcn.004027c0
mov eax, dword [0x6fca90]
lea ecx, [esp + 0x1c]
push eax
push edi
mov byte [esp + 0xd0], 5
call fcn.004027e0
lea ecx, [esp + 0x1c]
call fcn.00401f10
mov ecx, dword [esp + 0x10]
push eax
push ebp
push 2
push ecx
call fcn.0040bad0
add esp, 0x10
mov byte [esp + 0xc8], 1
lea ecx, [esp + 0x1c]
jmp 0x5220e2
cmp eax, 0x7573
jne 0x522080
mov edx, dword [esi + 0xf0]
mov edi, dword [0x6fd1fc]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], edx
call fcn.004027c0
mov eax, dword [0x6fca90]
lea ecx, [esp + 0x1c]
push eax
push edi
mov byte [esp + 0xd0], 6
call fcn.004027e0
lea ecx, [esp + 0x1c]
call fcn.00401f10
mov ecx, dword [esp + 0x10]
push eax
push ebp
push 2
push ecx
call fcn.0040bad0
add esp, 0x10
mov byte [esp + 0xc8], 1
lea ecx, [esp + 0x1c]
jmp 0x5220e2
cmp eax, 0x7540
je 0x5220e7
test eax, eax
je 0x5220e7
mov edx, dword [esi + 0xf0]
mov edi, dword [0x6fd6c4]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], edx
call fcn.004027c0
mov eax, dword [0x6fca90]
lea ecx, [esp + 0x1c]
push eax
push edi
mov byte [esp + 0xd0], 7
call fcn.004027e0
lea ecx, [esp + 0x1c]
call fcn.00401f10
mov ecx, dword [esp + 0x10]
push eax
push ebp
push 2
push ecx
call fcn.0040bad0
add esp, 0x10
mov byte [esp + 0xc8], 1
lea ecx, [esp + 0x1c]
call fcn.00401070
mov eax, dword [ebx + 0x4c8]
test eax, eax
je 0x52218f
cmp dword [ebx + 0x8fc], 3
je 0x52218f
mov ecx, dword [ebx + 0x4a8]
mov edi, dword [ebx + 0x4b0]
lea edx, [esp + 0x80]
sub ecx, edi
mov edi, dword [ebx + 0x4ac]
push edx
sbb edi, dword [ebx + 0x4b4]
cdq
push edx
push eax
push edi
push ecx
call fcn.0060bae0
push edx
push eax
lea ecx, [esp + 0x48]
call fcn.00469fd0
mov esi, dword [esi + 0xf0]
lea ecx, [esp + 0x10]
call fcn.004027c0
mov edx, dword [0x6fca90]
lea eax, [esp + 0x80]
push edx
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xd0], 8
call fcn.004027e0
lea ecx, [esp + 0x10]
call fcn.00401f10
push eax
push ebp
push 3
push esi
call fcn.0040bad0
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0xc8], 1
call fcn.00401070
lea ecx, [esp + 0x30]
mov byte [esp + 0xc8], 0
call fcn.00401070
mov ecx, dword [esp + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xbc
ret 8