Function at 0x517ac0
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xd8]
sub esp, 0xd8
push 0xffffffffffffffff
push 0x5c003d
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x71c56c]
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.004c4a40
mov ecx, eax
mov eax, dword [ecx]
test eax, eax
je case.default.0x517b69
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x517b5a
push dword [ecx]
call fcn.0047a540
add esp, 4
add eax, 0xfffffffe
cmp eax, 4
ja case.default.0x517b69
or ebx, 0xffffffff
jmp dword [eax*4 + 0x518130]
call fcn.004b46f0
mov ecx, dword [ebp - 0x1c]
mov esi, eax
push 0
call fcn.004c5e20
cdq
push 1
push 0xffffffffffffffff
push 0xa
push 0xffffffffffffffff
push edx
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004b8280
jmp 0x517c28
call fcn.004b46f0
mov ecx, dword [ebp - 0x1c]
mov esi, eax
push 0
call fcn.004c66f0
push 1
push 0xffffffffffffffff
push 0xa
push 0xffffffffffffffff
push 0
jmp 0x517c1c
call fcn.004b46f0
mov ecx, dword [ebp - 0x1c]
mov esi, eax
push 0
call fcn.004c5d60
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.004b66b0
jmp 0x517c28
call fcn.004b46f0
mov ecx, dword [ebp - 0x1c]
mov esi, eax
push 0
call fcn.004c6270
jmp 0x517b82
call fcn.004b46f0
mov ecx, dword [ebp - 0x1c]
mov esi, eax
push 0
call fcn.004c6770
push 1
push 0xffffffffffffffff
push 0xa
push 0xffffffffffffffff
push edx
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004b9980
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 0x517c72
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x517c72
push 4
push 2
push dword [ebp - 0x28]
call fcn.004597e0
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 0x517f1e
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.00516270
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 5
push ecx
mov ecx, eax
call fcn.004c6490
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 0x517d7b
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x517d7b
push 4
push 2
push dword [ebp - 0x98]
call fcn.004597e0
add esp, 0xc
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 4
call fcn.004c3ec0
lea ecx, [ebp - 0x48]
call fcn.004906d0
mov dword [ebp - 0x80], eax
mov ecx, edi
push 0x17
lea eax, [ebp + 0x18]
push eax
call fcn.00516270
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 6
push ecx
mov ecx, eax
call fcn.004c6490
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 0x517e01
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x517e01
push 4
push 2
push dword [ebp - 0xa4]
call fcn.004597e0
add esp, 0xc
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 4
call fcn.004c3ec0
lea ecx, [ebp - 0x3c]
call fcn.004906d0
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.004906d0
mov dword [ebp - 0x70], eax
mov ecx, edi
push 0x18
lea eax, [ebp]
push eax
call fcn.00516270
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 7
push ecx
mov ecx, eax
call fcn.004c6490
lea ecx, [ebp]
mov byte [ebp - 4], 9
call fcn.004c3ec0
push 1
push ecx
mov eax, esp
mov ecx, 0x3b
mov word [eax], cx
lea ecx, [ebp - 0x6c]
call fcn.0048df80
push 0xa
push 0
push dword [eax + 4]
push dword [eax + 8]
call fcn.0048fbf0
mov esi, eax
mov ecx, edx
cdq
add esp, 0x10
cmp eax, esi
jne 0x517ebd
cmp edx, ecx
je 0x517ec8
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 0x517ee5
mov dword [ebp - 0x84], edx
jmp 0x517ef0
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 0x517f1e
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x517f1e
push 4
push 2
push dword [ebp - 0x6c]
call fcn.004597e0
add esp, 0xc
mov esi, dword [ebp + 0x4c]
lea ecx, [ebp - 0x18]
mov edi, dword [ebp + 0x50]
call fcn.004906d0
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 0x517f94
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x517f94
mov esi, dword [ebp + 0x50]
lea ecx, [ebp - 0x18]
call fcn.004906d0
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.00517300
mov esi, dword [ebp + 0x4c]
lea ecx, [ebp - 0x18]
mov edi, dword [ebp + 0x50]
call fcn.004906d0
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.004ae6d0
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 0x517ff3
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x517ff3
push 4
push 2
push dword [ebp - 0xb0]
call fcn.004597e0
add esp, 0xc
mov ecx, edi
call fcn.00517640
cmp eax, 2
jne 0x51805c
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.00517430
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 0x51805c
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x51805c
push 4
push 2
push dword [ebp - 0xbc]
call fcn.004597e0
add esp, 0xc
mov esi, dword [ebp - 0x60]
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.004c3a60
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x51808b
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x51808b
push 4
push 2
push dword [ebp - 0x3c]
call fcn.004597e0
add esp, 0xc
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x5180ac
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x5180ac
push 4
push 2
push dword [ebp - 0x48]
call fcn.004597e0
add esp, 0xc
mov eax, dword [ebp + 0x50]
lea ecx, [ebp + 0x54]
cmp eax, ecx
je 0x5180bf
push eax
call fcn.00593ad3
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x518106
lock xadd dword [eax], ebx
cmp ebx, 1
jmp 0x5180f5
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 0x518106
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x518106
push 4
push 2
push dword [ebp - 0x18]
call fcn.004597e0
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.0058e709
lea esp, [ebp + 0xd8]
pop ebp
ret 8