Function at 0x51a410
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x65a6a0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, dword [esp + 0x48]
mov edi, ecx
mov dword [esp + 0x1c], vtable.StringConvertor.0
xor ebx, ebx
mov dword [esp + 0x40], ebx
lea ecx, [esp + 0x18]
call fcn.004024f0
mov byte [esp + 0x40], 1
xor eax, eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov word [esp + 0x24], ax
mov byte [esp + 0x40], 2
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.005b9000
mov eax, dword [esp + 0x20]
cmp eax, ebx
jne 0x51a490
lea eax, [esp + 0x24]
mov ebp, dword [esp + 0x4c]
mov edx, dword [edi + 0x118]
push eax
push ebp
push ebx
push edx
call fcn.00453bd0
mov eax, dword [esi + 0x500]
mov ecx, dword [esi + 0x504]
mov edx, eax
add esp, 0x10
or edx, ecx
je 0x51a678
lea edx, [esp + 0x18]
push edx
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.0043f860
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 0x118]
push eax
push ebp
push 1
push ecx
call fcn.0040d0d0
add esp, 0x10
cmp dword [esi + 0x954], 3
jne 0x51a502
mov edx, dword [0x75ef3c]
mov eax, dword [edi + 0x118]
push edx
push ebp
push 2
push eax
jmp 0x51a5f4
mov ecx, dword [esi + 0x508]
or ecx, dword [esi + 0x50c]
je 0x51a59f
push 8
lea edx, [esp + 0x30]
push edx
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x51a536
mov eax, 0x2c
mov word [esp + 0x2c], ax
fild qword [esi + 0x508]
fld qword [0x6828a0]
fmul st(1), st(0)
fild qword [esi + 0x500]
fdivp st(2)
fxch st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld st(0)
call fcn.00622df0
mov ebx, eax
mov dword [esp + 0x14], ebx
fisub dword [esp + 0x14]
fmulp st(1)
call fcn.00622df0
push eax
lea ecx, [esp + 0x30]
push ecx
push ebx
lea edx, [esp + 0x24]
push 0x686350
push edx
call fcn.00402f60
mov eax, dword [esp + 0x2c]
mov ecx, dword [edi + 0x118]
push eax
push ebp
push 2
push ecx
call fcn.0040d0d0
add esp, 0x24
xor ebx, ebx
jmp 0x51a5fc
mov eax, dword [esi + 0xacc]
cmp eax, 0x7565
jne 0x51a5bf
mov edx, dword [0x75f26c]
mov eax, dword [edi + 0x118]
push edx
push ebp
push 2
push eax
jmp 0x51a5f4
cmp eax, 0x7573
jne 0x51a5d9
mov ecx, dword [0x75f740]
mov edx, dword [edi + 0x118]
push ecx
push ebp
push 2
push edx
jmp 0x51a5f4
cmp eax, 0x7540
je 0x51a5fc
cmp eax, ebx
je 0x51a5fc
mov eax, dword [0x75f274]
mov ecx, dword [edi + 0x118]
push eax
push ebp
push 2
push ecx
call fcn.0040d0d0
add esp, 0x10
cmp dword [esi + 0x520], ebx
je 0x51a678
cmp dword [esi + 0x954], 3
je 0x51a678
lea ecx, [esp + 0x14]
call fcn.004024f0
mov byte [esp + 0x40], 3
mov eax, dword [esi + 0x520]
mov ecx, dword [esi + 0x500]
sub ecx, dword [esi + 0x508]
mov ebx, dword [esi + 0x504]
sbb ebx, dword [esi + 0x50c]
lea edx, [esp + 0x14]
push edx
cdq
push edx
push eax
push ebx
push ecx
call fcn.00624b70
push edx
push eax
lea ecx, [esp + 0x28]
call fcn.0043fa40
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0x118]
push edx
push ebp
push 3
push eax
call fcn.0040d0d0
add esp, 0x10
mov byte [esp + 0x40], 2
lea ecx, [esp + 0x14]
call fcn.00402560
mov byte [esp + 0x40], 1
lea ecx, [esp + 0x20]
call fcn.00401210
mov byte [esp + 0x40], 0
lea ecx, [esp + 0x18]
call fcn.00402560
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x1c], vtable.StringConvertor.0
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00620b8d
add esp, 0x30
ret 8