Function at 0x560780
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov esi, ecx
sub esp, 0xcc
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xac], 0x8c0d20
test edi, edi
jne 0x560884
mov dword [ebp - 0xa4], 0x40
mov edi, 0x40
lea ebx, [ebp - 0x98]
mov dword [ebp - 0xa8], 0x40
mov dword [ebp - 0xa0], ebx
mov eax, ebx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0xbc], eax
call eax
sub esp, 0x10
test eax, eax
mov edx, dword [ebp - 0xa0]
je 0x5608c0
cmp dword [ebp + 0xc], 0x50
jne 0x56080f
cmp word [edx], 0
je 0x5608f0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], edx
mov dword [esp], esi
call fcn.005b01a0
mov edi, dword [ebp - 0xa0]
cmp edi, ebx
je 0x560835
mov dword [esp], edi
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0xac]
mov edx, dword [eax]
test edx, edx
je 0x560860
cmp edx, 0xffffffff
je 0x560852
lock sub dword [eax], 1
mov eax, dword [ebp - 0xac]
je 0x560860
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov dword [esp], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 2
call fcn.004a4c50
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
cmp edi, 0x40
mov dword [ebp - 0xa4], edi
jle 0x5607b2
lea eax, [edi + edi]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [ebp - 0xa0], eax
je 0x560a93
mov dword [ebp - 0xa8], edi
lea ebx, [ebp - 0x98]
jmp 0x5607ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0xc], 0x50
jne 0x5608d0
test eax, eax
je 0x560911
cmp eax, 0x7a
je 0x560940
mov dword [esi], 0x880f80
mov edi, dword [ebp - 0xa0]
jmp 0x560829
mov ecx, dword [ebp - 0xac]
mov edi, edx
mov dword [esi], ecx
mov eax, dword [ecx]
add eax, 1
cmp eax, 1
jbe 0x560829
lock add dword [ecx], 1
jmp 0x560823
mov edx, dword [ebp - 0xac]
mov dword [esi], edx
mov eax, dword [edx]
add eax, 1
cmp eax, 1
jbe 0x560823
lock add dword [edx], 1
mov edi, dword [ebp - 0xa0]
jmp 0x560829
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [ebp - 0xbc]
call eax
sub esp, 0x10
test eax, eax
mov dword [ebp - 0xc0], eax
mov edi, dword [ebp - 0xa0]
je 0x560a4a
cmp dword [ebp - 0xa4], eax
mov ecx, eax
cmovle ecx, dword [ebp - 0xa4]
cmp eax, dword [ebp - 0xa8]
mov dword [ebp - 0xc4], ecx
jle 0x560a0c
cmp eax, 0x40
jg 0x560a55
mov dword [ebp - 0xa0], ebx
lea ebx, [ebp - 0x98]
mov dword [ebp - 0xa8], 0x40
mov eax, ecx
mov dword [ebp - 0xc8], ebx
mov edx, ebx
add eax, eax
mov dword [esp + 4], edi
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [ebp - 0xa4], 0
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0xc4]
cmp edi, ebx
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], ecx
je 0x560a8c
cmp eax, edi
je 0x560a0c
mov dword [esp], edi
call sub.msvcrt.dll_free
mov edi, dword [ebp - 0xa0]
mov eax, dword [ebp - 0xc0]
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [ebp - 0xbc]
call eax
mov edi, dword [ebp - 0xa0]
sub esp, 0x10
test eax, eax
mov edx, edi
jne 0x5607ff
mov dword [esi], 0x880f80
jmp 0x560829
add eax, eax
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [ebp - 0xc8], eax
je 0x560aa9
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xc0]
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xc4]
jmp 0x5609c4
mov edi, eax
jmp 0x560a0c
call fcn.0071fff4
mov edi, dword [ebp - 0xa4]
mov eax, dword [ebp - 0xa0]
jmp 0x5608ac
call fcn.0071fff4
mov eax, dword [ebp - 0xc8]
jmp 0x560a69