Function at 0x51faa0
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xd8]
sub esp, 0xd8
push 0xffffffffffffffff
push 0x5c805d
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x72cec4]
xor eax, ebp
mov dword [ebp + 0xd4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x4c], edi
mov esi, dword [ebp + 0xe0]
mov eax, dword [ebp + 0xe4]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
push ecx
mov ecx, eax
call fcn.004cca10
mov ecx, eax
mov eax, dword [ecx]
test eax, eax
je case.default.0x51fb49
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x51fb3a
push dword [ecx]
call fcn.004824f0
add esp, 4
add eax, 0xfffffffe
cmp eax, 4
ja case.default.0x51fb49
or ebx, 0xffffffff
jmp dword [eax*4 + 0x520110]
call fcn.004bc6b0
mov ecx, dword [ebp - 0x1c]
mov esi, eax
push 0
call fcn.004cddf0
cdq
push 1
push 0xffffffffffffffff
push 0xa
push 0xffffffffffffffff
push edx
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004c0240
jmp 0x51fc08
call fcn.004bc6b0
mov ecx, dword [ebp - 0x1c]
mov esi, eax
push 0
call fcn.004ce6d0
push 1
push 0xffffffffffffffff
push 0xa
push 0xffffffffffffffff
push 0
jmp 0x51fbfc
call fcn.004bc6b0
mov ecx, dword [ebp - 0x1c]
mov esi, eax
push 0
call fcn.004cdd30
push 1
push 0xffffffffffffffff
push 1
push 0xffffffffffffffff
sub esp, 8
lea eax, [ebp - 0x28]
fstp qword [ebp - 0x30]
movsd xmm0, qword [ebp - 0x30]
mov ecx, esi
movsd qword [esp], xmm0
push eax
call fcn.004be670
jmp 0x51fc08
call fcn.004bc6b0
mov ecx, dword [ebp - 0x1c]
mov esi, eax
push 0
call fcn.004ce250
jmp 0x51fb62
call fcn.004bc6b0
mov ecx, dword [ebp - 0x1c]
mov esi, eax
push 0
call fcn.004ce750
push 1
push 0xffffffffffffffff
push 0xa
push 0xffffffffffffffff
push edx
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004c1940
mov ecx, dword [ebp - 0x18]
mov edx, eax
mov eax, dword [edx]
mov dword [ebp - 0x18], eax
mov dword [edx], ecx
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
mov dword [ebp - 0x10], eax
mov dword [edx + 8], ecx
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x51fc52
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x51fc52
push 4
push 2
push dword [ebp - 0x28]
call fcn.00461780
add esp, 0xc
lea eax, [ebp + 0x54]
mov dword [ebp + 0x48], 0x40
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x4c], 0x40
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 4], 4
mov dword [ebp - 0x2c], 0
cmp dword [esi + 0x20], 0
je 0x51fefe
push 2
lea eax, [ebp - 0x1c]
push eax
push 0x20000019
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor ecx, ecx
cmp eax, 2
push 2
cmove ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x58]
push eax
push 0x20000012
push dword [edi]
mov dword [ebp - 0x8c], ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor ecx, ecx
cmp eax, 2
push 0x16
cmove ecx, dword [ebp - 0x58]
lea eax, [ebp + 0x30]
mov dword [ebp - 0x88], ecx
mov ecx, edi
push eax
call fcn.0051e250
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 5
push ecx
mov ecx, eax
call fcn.004ce470
mov ecx, dword [ebp - 0x48]
mov edx, eax
mov eax, dword [edx]
mov dword [ebp - 0x48], eax
mov eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x44], eax
mov eax, dword [edx + 8]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x40], eax
mov dword [edx + 8], ecx
mov ecx, dword [ebp - 0x98]
test ecx, ecx
je 0x51fd5b
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x51fd5b
push 4
push 2
push dword [ebp - 0x98]
call fcn.00461780
add esp, 0xc
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 4
call fcn.004cbe90
lea ecx, [ebp - 0x48]
call fcn.00498670
mov dword [ebp - 0x80], eax
mov ecx, edi
push 0x17
lea eax, [ebp + 0x18]
push eax
call fcn.0051e250
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 6
push ecx
mov ecx, eax
call fcn.004ce470
mov ecx, dword [ebp - 0x3c]
mov edx, eax
mov eax, dword [edx]
mov dword [ebp - 0x3c], eax
mov eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x38], eax
mov eax, dword [edx + 8]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x34], eax
mov dword [edx + 8], ecx
mov ecx, dword [ebp - 0xa4]
test ecx, ecx
je 0x51fde1
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x51fde1
push 4
push 2
push dword [ebp - 0xa4]
call fcn.00461780
add esp, 0xc
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 4
call fcn.004cbe90
lea ecx, [ebp - 0x3c]
call fcn.00498670
push 2
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x5c]
push eax
push 0x2000001c
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor ecx, ecx
cmp eax, 2
push 2
cmove ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x50]
push eax
push 0x2000001b
push dword [edi]
mov dword [ebp - 0x78], ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor ecx, ecx
cmp eax, 2
cmove ecx, dword [ebp - 0x50]
mov dword [ebp - 0x74], ecx
lea ecx, [esi + 0x18]
call fcn.00498670
mov dword [ebp - 0x70], eax
mov ecx, edi
push 0x18
lea eax, [ebp]
push eax
call fcn.0051e250
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 7
push ecx
mov ecx, eax
call fcn.004ce470
lea ecx, [ebp]
mov byte [ebp - 4], 9
call fcn.004cbe90
push 1
push ecx
mov eax, esp
mov ecx, 0x3b
mov word [eax], cx
lea ecx, [ebp - 0x6c]
call fcn.00495f30
push 0xa
push 0
push dword [eax + 4]
push dword [eax + 8]
call fcn.00497ba0
mov esi, eax
mov ecx, edx
cdq
add esp, 0x10
cmp eax, esi
jne 0x51fe9d
cmp edx, ecx
je 0x51fea8
xorps xmm0, xmm0
movlpd qword [ebp - 0x54], xmm0
mov esi, dword [ebp - 0x54]
mov eax, 0xcccccccd
mul esi
mov eax, esi
shr edx, 3
lea ecx, [edx + edx*4]
add ecx, ecx
sub eax, ecx
jne 0x51fec5
mov dword [ebp - 0x84], edx
jmp 0x51fed0
lea eax, [esi + esi*4]
add eax, eax
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 4
test ecx, ecx
je 0x51fefe
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x51fefe
push 4
push 2
push dword [ebp - 0x6c]
call fcn.00461780
add esp, 0xc
mov esi, dword [ebp + 0x4c]
lea ecx, [ebp - 0x18]
mov edi, dword [ebp + 0x50]
call fcn.00498670
push esi
push edi
push dword [ebp - 0x2c]
mov edi, dword [ebp - 0x4c]
push eax
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
test eax, eax
jne 0x51ff74
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x51ff74
mov esi, dword [ebp + 0x50]
lea ecx, [ebp - 0x18]
call fcn.00498670
push 0
push esi
push dword [ebp - 0x2c]
push eax
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
push eax
lea ecx, [ebp + 0x48]
call fcn.0051f2e0
mov esi, dword [ebp + 0x4c]
lea ecx, [ebp - 0x18]
mov edi, dword [ebp + 0x50]
call fcn.00498670
push esi
push edi
push dword [ebp - 0x2c]
mov edi, dword [ebp - 0x4c]
push eax
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
push 0xffffffffffffffff
push dword [ebp + 0x50]
lea eax, [ebp - 0xb0]
push eax
call fcn.004b6680
mov ecx, dword [ebp - 0x18]
mov edx, eax
add esp, 0xc
mov eax, dword [edx]
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 8]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov dword [edx + 8], ecx
mov ecx, dword [ebp - 0xb0]
test ecx, ecx
je 0x51ffd3
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x51ffd3
push 4
push 2
push dword [ebp - 0xb0]
call fcn.00461780
add esp, 0xc
mov ecx, edi
call fcn.0051f620
cmp eax, 2
jne 0x52003c
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.0051f410
mov ecx, dword [ebp - 0x18]
mov edx, eax
mov eax, dword [edx]
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 8]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov dword [edx + 8], ecx
mov ecx, dword [ebp - 0xbc]
test ecx, ecx
je 0x52003c
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x52003c
push 4
push 2
push dword [ebp - 0xbc]
call fcn.00461780
add esp, 0xc
mov esi, dword [ebp - 0x60]
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.004cba30
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x52006b
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x52006b
push 4
push 2
push dword [ebp - 0x3c]
call fcn.00461780
add esp, 0xc
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x52008c
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x52008c
push 4
push 2
push dword [ebp - 0x48]
call fcn.00461780
add esp, 0xc
mov eax, dword [ebp + 0x50]
lea ecx, [ebp + 0x54]
cmp eax, ecx
je 0x52009f
push eax
call fcn.0059bad3
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5200e6
lock xadd dword [eax], ebx
cmp ebx, 1
jmp 0x5200d5
mov ecx, dword [ebp - 0x18]
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 2
test ecx, ecx
je 0x5200e6
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x5200e6
push 4
push 2
push dword [ebp - 0x18]
call fcn.00461780
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xd4]
xor ecx, ebp
call fcn.00596709
lea esp, [ebp + 0xd8]
pop ebp
ret 8