Function at 0x451e30
Capabilities:
Get geographical location

Disassembly:
mov ecx, dword [0x13d411c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x452157
sub esp, 0x3c
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
cmp edx, 0x80000000
je 0x451e7a
mov eax, edx
sar edx, 0x1f
shr edx, 0x1e
add eax, edx
sar eax, 2
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 0
mov byte [esp + 0x4c], 0
add esp, 0x3c
ret
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x28], edx
mov ebx, dword [ecx + 4]
mov dword [esp], edx
mov dword [esp + 4], ebx
call fcn.00454910
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
cmp eax, 0x14
je 0x451ecb
cmp eax, 0x17
jne 0x451eee
mov dword [esp], ecx
lea eax, [0x8a6079]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x17
call fcn.00403230
movzx eax, byte [esp + 0xc]
test al, al
je 0x451eee
jmp 0x451ef9
mov dword [esp], ecx
lea eax, [0x8a35a8]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x14
call fcn.00403230
movzx eax, byte [esp + 0xc]
test al, al
jne 0x451ef9
xor eax, eax
xor ecx, ecx
xor edx, edx
jmp 0x451fa9
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
add edx, 0xfffffffc
cmp ecx, edx
jb 0x451f4a
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [esp + 0x28]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.004547e0
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 8]
cmp dword [esp + 8], ecx
jne 0x45202f
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov byte [esp + 0x4c], 0
add esp, 0x3c
ret
mov eax, ecx
mov ecx, dword [ecx]
mov dword [esp + 0x38], ecx
add eax, 0x10
mov edx, dword [esp + 0x2c]
mov ebx, dword [edx]
movzx eax, byte [eax]
mov byte [esp + 0x13], al
mov ebp, dword [esp + 0x28]
mov dword [esp], ebp
mov dword [esp + 4], ebx
call fcn.004547e0
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
cmp dword [esp + 8], ecx
jne 0x451fb9
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
movzx ebx, byte [esp + 0x13]
test bl, bl
je 0x451f90
mov eax, edx
jmp 0x451f9f
mov eax, dword [eax + 8]
and eax, 0xfffffffc
shr eax, 2
cmp edx, eax
jg 0x451f9f
mov eax, edx
mov ecx, dword [ecx + 4]
mov edx, ecx
mov ecx, 1
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
mov byte [esp + 0x4c], cl
add esp, 0x3c
ret
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00454910
mov eax, dword [esp + 8]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], ecx
call fcn.0043a0d0
lea eax, [0x8a4441]
mov dword [esp], eax
mov dword [esp + 4], 0x15
call fcn.0043a930
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 4], eax
call fcn.0043a930
call fcn.0043a2d0
call fcn.0043a130
lea eax, [0x89fffb]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.0046daf0
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x28]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.00454910
mov eax, dword [esp + 8]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x2c]
mov edx, dword [edx]
mov ebx, dword [esp + 0x28]
mov dword [esp], ebx
mov dword [esp + 4], edx
call fcn.004547e0
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 0x18]
mov dword [esp + 0x20], edx
mov eax, dword [eax + 8]
sub eax, dword [esp + 8]
mov dword [esp + 0x1c], eax
call fcn.0043a0d0
lea eax, [0x8a4441]
mov dword [esp], eax
mov dword [esp + 4], 0x15
call fcn.0043a930
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
call fcn.0043a930
lea eax, [0x89f425]
mov dword [esp], eax
mov dword [esp + 4], 0xf
call fcn.0043a930
mov eax, dword [esp + 0x24]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0043a7c0
lea eax, [0x897aa8]
mov dword [esp], eax
mov dword [esp + 4], 4
call fcn.0043a930
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0043a7c0
lea eax, [0x89c0be]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.0043a930
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0043a7c0
call fcn.0043a2d0
call fcn.0043a130
lea eax, [0x89fffb]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.0046daf0
nop
call fcn.004730d0
jmp fcn.00451e30