Function at 0x51e150
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xd8]
sub esp, 0xd8
push 0xffffffffffffffff
push 0x5c66bd
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x72b01c]
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.004cb0f0
mov ecx, eax
mov eax, dword [ecx]
test eax, eax
je case.default.0x51e1f9
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x51e1ea
push dword [ecx]
call fcn.00480bf0
add esp, 4
add eax, 0xfffffffe
cmp eax, 4
ja case.default.0x51e1f9
or ebx, 0xffffffff
jmp dword [eax*4 + 0x51e7c0]
call fcn.004bada0
mov ecx, dword [ebp - 0x1c]
mov esi, eax
push 0
call fcn.004cc4d0
cdq
push 1
push 0xffffffffffffffff
push 0xa
push 0xffffffffffffffff
push edx
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004be930
jmp 0x51e2b8
call fcn.004bada0
mov ecx, dword [ebp - 0x1c]
mov esi, eax
push 0
call fcn.004ccda0
push 1
push 0xffffffffffffffff
push 0xa
push 0xffffffffffffffff
push 0
jmp 0x51e2ac
call fcn.004bada0
mov ecx, dword [ebp - 0x1c]
mov esi, eax
push 0
call fcn.004cc410
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.004bcd60
jmp 0x51e2b8
call fcn.004bada0
mov ecx, dword [ebp - 0x1c]
mov esi, eax
push 0
call fcn.004cc920
jmp 0x51e212
call fcn.004bada0
mov ecx, dword [ebp - 0x1c]
mov esi, eax
push 0
call fcn.004cce20
push 1
push 0xffffffffffffffff
push 0xa
push 0xffffffffffffffff
push edx
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004c0030
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 0x51e302
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x51e302
push 4
push 2
push dword [ebp - 0x28]
call fcn.0045fe90
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 0x51e5ae
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.0051c900
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 5
push ecx
mov ecx, eax
call fcn.004ccb40
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 0x51e40b
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x51e40b
push 4
push 2
push dword [ebp - 0x98]
call fcn.0045fe90
add esp, 0xc
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 4
call fcn.004ca570
lea ecx, [ebp - 0x48]
call fcn.00496d70
mov dword [ebp - 0x80], eax
mov ecx, edi
push 0x17
lea eax, [ebp + 0x18]
push eax
call fcn.0051c900
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 6
push ecx
mov ecx, eax
call fcn.004ccb40
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 0x51e491
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x51e491
push 4
push 2
push dword [ebp - 0xa4]
call fcn.0045fe90
add esp, 0xc
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 4
call fcn.004ca570
lea ecx, [ebp - 0x3c]
call fcn.00496d70
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.00496d70
mov dword [ebp - 0x70], eax
mov ecx, edi
push 0x18
lea eax, [ebp]
push eax
call fcn.0051c900
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 7
push ecx
mov ecx, eax
call fcn.004ccb40
lea ecx, [ebp]
mov byte [ebp - 4], 9
call fcn.004ca570
push 1
push ecx
mov eax, esp
mov ecx, 0x3b
mov word [eax], cx
lea ecx, [ebp - 0x6c]
call fcn.00494630
push 0xa
push 0
push dword [eax + 4]
push dword [eax + 8]
call fcn.004962a0
mov esi, eax
mov ecx, edx
cdq
add esp, 0x10
cmp eax, esi
jne 0x51e54d
cmp edx, ecx
je 0x51e558
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 0x51e575
mov dword [ebp - 0x84], edx
jmp 0x51e580
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 0x51e5ae
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x51e5ae
push 4
push 2
push dword [ebp - 0x6c]
call fcn.0045fe90
add esp, 0xc
mov esi, dword [ebp + 0x4c]
lea ecx, [ebp - 0x18]
mov edi, dword [ebp + 0x50]
call fcn.00496d70
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 0x51e624
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x51e624
mov esi, dword [ebp + 0x50]
lea ecx, [ebp - 0x18]
call fcn.00496d70
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.0051d990
mov esi, dword [ebp + 0x4c]
lea ecx, [ebp - 0x18]
mov edi, dword [ebp + 0x50]
call fcn.00496d70
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.004b4d80
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 0x51e683
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x51e683
push 4
push 2
push dword [ebp - 0xb0]
call fcn.0045fe90
add esp, 0xc
mov ecx, edi
call fcn.0051dcd0
cmp eax, 2
jne 0x51e6ec
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.0051dac0
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 0x51e6ec
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x51e6ec
push 4
push 2
push dword [ebp - 0xbc]
call fcn.0045fe90
add esp, 0xc
mov esi, dword [ebp - 0x60]
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.004ca110
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x51e71b
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x51e71b
push 4
push 2
push dword [ebp - 0x3c]
call fcn.0045fe90
add esp, 0xc
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x51e73c
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x51e73c
push 4
push 2
push dword [ebp - 0x48]
call fcn.0045fe90
add esp, 0xc
mov eax, dword [ebp + 0x50]
lea ecx, [ebp + 0x54]
cmp eax, ecx
je 0x51e74f
push eax
call fcn.0059a133
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x51e796
lock xadd dword [eax], ebx
cmp ebx, 1
jmp 0x51e785
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 0x51e796
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x51e796
push 4
push 2
push dword [ebp - 0x18]
call fcn.0045fe90
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.00594d69
lea esp, [ebp + 0xd8]
pop ebp
ret 8