Function at 0x561c70
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x4c
mov eax, dword [ecx + 8]
mov eax, dword [eax + 4]
test eax, eax
je 0x561df0
lea eax, [ebx + 8]
lea ecx, [ebp - 0x30]
mov dword [esp], eax
call fcn.005cfa30
lea ecx, [ebp - 0x30]
sub esp, 4
call fcn.005cfd40
mov eax, dword [ebx + 8]
mov edx, dword [eax + 4]
cmp edx, 1
je 0x561e80
cmp edx, 2
jne 0x561ddb
mov ecx, dword [eax + 0xc]
mov esi, 0x30
lea edi, [ebp - 0x34]
movzx edx, word [eax + ecx]
movzx eax, word [eax + ecx + 2]
shl edx, 0xa
add eax, edx
lea ebx, [eax - 0x35fdc00]
sub eax, 0x35fdbf6
mov dword [ebp - 0x3c], eax
jmp 0x561d23
cmp edx, 0xffffffff
je 0x561cf5
lock sub dword [eax], 1
mov eax, dword [ebp - 0x38]
je 0x561d8f
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
test edx, edx
je 0x561db4
cmp edx, 0xffffffff
je 0x561d14
lock sub dword [eax], 1
mov eax, dword [ebp - 0x34]
je 0x561db4
add ebx, 1
add esi, 1
cmp dword [ebp - 0x3c], ebx
je 0x561ddb
mov eax, ebx
mov ecx, edi
mov dword [esp + 4], 2
shr eax, 0xa
sub ax, 0x2840
mov word [ebp - 0x30], ax
mov eax, ebx
and ax, 0x3ff
sub ax, 0x2400
mov word [ebp - 0x2e], ax
lea eax, [ebp - 0x30]
mov dword [esp], eax
call fcn.005b0c90
lea ecx, [ebp - 0x38]
sub esp, 8
mov word [esp], si
call fcn.005b0c30
lea eax, [ebp - 0x38]
mov ecx, dword [ebp + 8]
sub esp, 4
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.005afe30
mov eax, dword [ebp - 0x38]
sub esp, 0xc
mov edx, dword [eax]
test edx, edx
jne 0x561ce3
mov dword [esp], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 2
call fcn.004a4c50
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
test edx, edx
jne 0x561d02
mov dword [esp + 8], 4
mov dword [esp + 4], 2
add ebx, 1
mov dword [esp], eax
add esi, 1
call fcn.004a4c50
cmp dword [ebp - 0x3c], ebx
jne 0x561d23
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
lea eax, [ebp - 0x30]
mov dword [esp + 0xc], 0xb
mov dword [esp + 4], 0x13
mov dword [esp + 8], eax
mov eax, dword [ecx]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
sub esp, 0x10
test eax, eax
je 0x561c89
lea eax, [ebp - 0x30]
lea edi, [ebp - 0x34]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.005b01a0
mov eax, dword [ebx + 8]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x34], eax
mov dword [ebx + 8], edx
mov edx, dword [eax]
test edx, edx
je 0x561e60
cmp edx, 0xffffffff
je 0x561c89
lock sub dword [eax], 1
jne 0x561c89
lea esi, [esi]
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x561c89
mov edx, dword [eax + 0xc]
movzx eax, word [eax + edx]
sub ax, 0x30
mov ebx, eax
je 0x561ddb
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [edx]
cmp eax, 1
ja 0x561ea9
mov ecx, dword [edx + 0xc]
mov eax, edx
cmp ecx, 0x10
je 0x561ecd
mov dword [esp + 4], 0
mov eax, dword [edx + 4]
mov ecx, dword [ebp + 8]
add eax, 1
mov dword [esp], eax
call fcn.005ab710
mov eax, dword [ebp + 8]
sub esp, 8
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
test edx, edx
jle 0x561ddb
add eax, ecx
lea esi, [eax + edx*2]
lea esi, [esi]
movzx edx, word [eax]
lea ecx, [edx - 0x30]
cmp cx, 9
ja 0x561ef1
add edx, ebx
mov word [eax], dx
add eax, 2
cmp esi, eax
jne 0x561ee0
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4