Function at 0x516f94
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x60]
sub esp, 0x60
push 0xffffffffffffffff
push 0x5bff87
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x71c56c]
xor eax, ebp
mov dword [ebp + 0x5c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov edi, dword [ebp + 0x68]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0
mov al, byte [0x71fbcd]
mov dword [ebp - 4], 0
nop
cmp al, 0xfe
jg 0x516bc5
xor ebx, ebx
jmp 0x516bea
mov eax, dword fs:[0x2c]
mov ecx, dword [0x7205ec]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x71fc1c]
cmp eax, dword [ecx + 0x2c]
jg 0x5171f0
mov ebx, 0x71fc08
mov esi, dword [ebp + 0x6c]
cmp esi, 0x2e
ja case.0x516bf6.15
jmp dword [esi*4 + 0x517244]
push 0xe
push edi
mov ecx, ebx
call fcn.00516270
jmp 0x5171af
push 0xf
push edi
mov ecx, ebx
call fcn.00516270
jmp 0x5171af
push 0x51
push edi
mov ecx, ebx
call fcn.00516270
jmp 0x5171af
push 0x50
push edi
mov ecx, ebx
call fcn.00516270
jmp 0x5171af
push 0
push edi
mov ecx, ebx
call fcn.00515d30
jmp 0x5171af
push 1
push edi
mov ecx, ebx
call fcn.00515d30
jmp 0x5171af
push 0
push edi
mov ecx, ebx
call fcn.00517920
jmp 0x5171af
push 1
push edi
mov ecx, ebx
call fcn.00517920
jmp 0x5171af
push 0
push edi
mov ecx, ebx
call fcn.00515ed0
jmp 0x5171af
push 1
push edi
mov ecx, ebx
call fcn.00515ed0
jmp 0x5171af
push 0
push 0
lea ecx, [ebp + 0x70]
call fcn.004c5e20
push eax
push edi
mov ecx, ebx
call fcn.00516010
jmp 0x5171af
push 1
jmp 0x516c95
push 2
jmp 0x516c95
push 0
push 0
lea ecx, [ebp + 0x70]
call fcn.004c5e20
push eax
push edi
mov ecx, ebx
call fcn.005169b0
jmp 0x5171af
push 0
push 0
lea ecx, [ebp + 0x70]
call fcn.004c5e20
push eax
push edi
mov ecx, ebx
call fcn.005173e0
jmp 0x5171af
push 1
jmp 0x516cb7
push 1
jmp 0x516cd1
lea eax, [ebp + 0x54]
push eax
lea ecx, [ebp + 0x70]
call fcn.004c5c20
push 1
mov ecx, ebx
push dword [eax + 4]
push dword [eax]
push edi
call fcn.005182c0
jmp 0x5171af
lea eax, [ebp + 0x54]
push eax
lea ecx, [ebp + 0x70]
call fcn.004c5c20
push 0
mov ecx, ebx
push dword [eax + 4]
push dword [eax]
push edi
call fcn.005182c0
jmp 0x5171af
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0x70]
call fcn.004c6680
push 1
mov ecx, ebx
push dword [eax]
push edi
call fcn.00518530
jmp 0x5171af
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0x70]
call fcn.004c6680
push 0
mov ecx, ebx
push dword [eax]
push edi
call fcn.00518530
jmp 0x5171af
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0x70]
call fcn.004c5cb0
mov byte [ebp - 4], 1
push 1
push eax
push edi
mov ecx, ebx
call fcn.00518150
lea ecx, [ebp - 0x10]
call fcn.004e6cb0
jmp 0x5171af
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0x70]
call fcn.004c5cb0
mov byte [ebp - 4], 2
push 0
jmp 0x516d7d
push edi
mov ecx, ebx
call fcn.0051a1f0
jmp 0x5171af
lea eax, [ebp - 0x38]
push 0x400
push eax
call fcn.00516500
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
call fcn.004b3500
mov ecx, dword [eax + 8]
add esp, 8
mov eax, dword [eax + 4]
mov edx, esp
mov byte [ebp - 4], 4
mov dword [edx + 4], eax
lea eax, [ebp + 0x54]
push eax
mov dword [edx], ecx
call fcn.004b7c10
add esp, 0xc
mov ecx, dword [eax]
mov bx, word [eax + 4]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x2c]
call fcn.004019e0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.004019c0
test esi, esi
jne 0x516e22
movzx eax, word [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.004c3ae0
jmp 0x5171af
cmp esi, 0x24
jne 0x516e87
mov ax, word [ebp - 0x1a]
test ax, ax
je 0x516e35
mov ebx, dword [ebp - 0x14]
jmp 0x516e60
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov esi, dword [eax + 8]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call dword [0x5c53f0]
mov ecx, ebx
call esi
mov ebx, 2
mov byte [ebp - 4], 5
mov ecx, eax
mov dword [ebp - 0x14], ebx
call fcn.004b91c0
movzx eax, ax
mov ecx, edi
movzx eax, ax
push eax
call fcn.004c3ae0
or ebx, 1
test bl, 2
je 0x5171af
lea ecx, [ebp - 0x10]
call fcn.004b3890
jmp 0x5171af
test bx, bx
je 0x516e94
movzx eax, bx
mov ebx, dword [ebp - 0x14]
jmp 0x516ec2
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov esi, dword [eax + 8]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call dword [0x5c53f0]
mov ecx, ebx
call esi
mov ebx, 4
mov byte [ebp - 4], 6
mov ecx, eax
mov dword [ebp - 0x14], ebx
call fcn.004b9700
movzx eax, ax
movzx eax, ax
mov ecx, edi
push eax
call fcn.004c3ae0
or ebx, 1
test bl, 4
je 0x5171af
lea ecx, [ebp - 0x10]
call fcn.004b3890
jmp 0x5171af
push 2
lea eax, [ebp - 0x10]
push eax
push 0xd
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x516f0c
cmp word [ebp - 0x10], 0x31
jne 0x516f0c
cmp word [ebp - 0xe], 0
je 0x517019
push 0
mov ecx, edi
call fcn.004c3ae0
jmp 0x5171af
push 0x7b
push edi
mov ecx, ebx
call fcn.00516270
jmp 0x5171af
push 0xf
lea eax, [ebp + 0x30]
push eax
push 0x28
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je case.0x516bf6.15
push 0xffffffffffffffff
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x50]
push eax
call fcn.004ae6d0
add esp, 0xc
mov ecx, edi
push eax
call fcn.004c3a60
mov ecx, dword [ebp + 0x50]
test ecx, ecx
je 0x5171af
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x5171af
push 4
push 2
push dword [ebp + 0x50]
call fcn.004597e0
add esp, 0xc
jmp 0x5171af
push 0xf
lea eax, [ebp + 0x30]
push eax
push 0x29
jmp 0x516f31
push 4
lea eax, [ebp + 0x54]
push eax
push 0x100c
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x517019
push 0xffffffffffffffff
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004ae6d0
push 0xa
push 0
push dword [eax + 4]
mov byte [ebp - 4], 7
push dword [eax + 8]
call fcn.0048fcf0
xor ecx, ecx
add esp, 0x1c
cmp ecx, edx
je 0x516fe1
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
mov eax, dword [ebp - 0x1c]
inc eax
mov ecx, edi
push eax
call fcn.004c3b10
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x5171af
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x5171af
push 4
push 2
push dword [ebp - 0x2c]
call fcn.004597e0
add esp, 0xc
jmp 0x5171af
push 1
mov ecx, edi
call fcn.004c3ae0
jmp 0x5171af
push 0
lea ecx, [ebp + 0x70]
call fcn.004c66f0
push eax
push edi
mov ecx, ebx
call fcn.00515b50
jmp 0x5171af
mov ecx, dword [ebp + 0x80]
mov eax, ecx
and eax, 0xfffffffc
cmp eax, 0x71bf4c
je 0x51712d
test eax, eax
je 0x51708f
mov esi, dword [eax + 0xc]
test esi, esi
jne 0x51706b
push eax
call fcn.0047a540
add esp, 4
mov esi, eax
mov eax, dword [0x71bf58]
test eax, eax
jne 0x517081
push 0x71bf4c
call fcn.0047a540
add esp, 4
cmp esi, eax
je 0x51712d
mov ecx, dword [ebp + 0x80]
xorps xmm0, xmm0
mov dword [ebp + 0x30], 0
movq qword [ebp + 0x28], xmm0
mov dword [ebp + 0x38], 2
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 0
mov dword [ebp + 0x48], 0
mov byte [ebp - 4], 8
test cl, 1
je 0x5170cd
mov eax, dword [ebp + 0x70]
mov esi, dword [eax + 4]
add esi, eax
jmp 0x5170d0
lea esi, [ebp + 0x70]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0x70]
call fcn.004c4a40
lea ecx, [ebp + 0x28]
push ecx
push 0x71bf4c
push esi
push dword [eax]
call fcn.004747c0
add esp, 0x10
lea eax, [ebp + 0x28]
lea ecx, [ebp]
push eax
call fcn.00515760
mov ecx, dword [ebp + 0x40]
test ecx, ecx
je 0x517123
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x517123
push 4
push 2
push dword [ebp + 0x40]
call fcn.004597e0
add esp, 0xc
lea ecx, [ebp + 0x28]
call fcn.004c3ec0
jmp 0x51715d
mov eax, dword [ebp + 0x70]
lea ecx, [ebp]
mov esi, dword [eax + 4]
add esi, eax
push esi
call fcn.004c3880
mov ecx, dword [esi + 0x18]
mov dword [ebp + 0x18], ecx
mov eax, dword [esi + 0x1c]
mov dword [ebp + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [ebp + 0x20], eax
test ecx, ecx
je 0x51715d
mov eax, 1
lock xadd dword [ecx], eax
lea eax, [ebp]
mov byte [ebp - 4], 9
push eax
push edi
mov ecx, ebx
call fcn.00517ac0
lea ecx, [ebp]
call fcn.004b38c0
jmp 0x5171af
push edi
mov ecx, ebx
call fcn.005187d0
jmp 0x5171af
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 0
lea ecx, [ebx + 8]
mov dword [ebx], eax
mov dword [ebx + 4], 0
call fcn.0048ee80
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 2
lea ecx, [ebp + 0x70]
call fcn.004c3ec0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x5c]
xor ecx, ebp
call fcn.0058e709
lea esp, [ebp + 0x60]
pop ebp
ret 0x20
push 4
push edi
mov ecx, ebx
call fcn.00516270
jmp 0x5171af
push 8
push edi
mov ecx, ebx
call fcn.00516270
jmp 0x5171af
push 0x71fc1c
call fcn.0058f32a
add esp, 4
cmp dword [0x71fc1c], 0xffffffff
jne 0x516be5
xorps xmm0, xmm0
movups xmmword [0x71fc0c], xmm0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [0x71fc08], eax
push 0x5c4430
mov byte [0x71fbcd], 0xff
call fcn.0058ec81
push 0x71fc1c
call fcn.0058f2e0
add esp, 8
jmp 0x516be5