Function at 0x210364eb
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push esi
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
cmp dword [ebp + 0xc], 0
je 0x21036803
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov dword [ebp - 0x108], ecx
cmp dword [0x2108b4ec], 0
jne 0x2103671d
push 2
push 0x21036864
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
mov edx, dword [0x2108b4ec]
add edx, 1
imul edx, edx, 0xc
add edx, dword [0x2108b4e8]
mov dword [ebp - 0x10c], edx
push 0
push 2
mov eax, dword [ebp - 0x10c]
push eax
mov ecx, 0x2108b4d0
call fcn.21026d71
mov ecx, dword [0x2108b4d4]
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x11c]
mov dword [0x2108b4c8], edx
mov eax, dword [0x2108b4ec]
add eax, 1
imul eax, eax, 0xc
mov ecx, dword [0x2108b4c8]
add ecx, eax
mov dword [0x2108b4c0], ecx
push 2
push 0x21036904
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
push 0x21036a36
push 0xc
mov edx, dword [0x2108b4c4]
push edx
mov eax, dword [0x2108b4c8]
push eax
call fcn.21054b26
add esp, 0x10
mov ecx, dword [0x2108b4c4]
imul ecx, ecx, 0xc
mov edx, dword [0x2108b4c8]
mov dword [edx + ecx], 0
mov eax, dword [0x2108b4c4]
imul eax, eax, 0xc
mov ecx, dword [0x2108b4c8]
mov dword [ecx + eax + 4], 0
mov edx, dword [0x2108b4c4]
imul edx, edx, 0xc
mov eax, dword [0x2108b4c8]
mov dword [eax + edx + 8], 0
mov ecx, dword [0x2108b4c8]
mov dword [ebp - 0x104], ecx
jmp 0x21036614
mov edx, dword [ebp - 0x104]
add edx, 0xc
mov dword [ebp - 0x104], edx
mov eax, dword [ebp - 0x104]
cmp dword [eax], 0
je 0x2103671d
mov ecx, dword [ebp - 0x104]
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x114], 1
mov edx, dword [ebp - 0x110]
cmp dword [edx + 4], 0
je 0x21036676
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0x104]
mov eax, dword [edx + 4]
push eax
call fcn.21053d90
add esp, 8
test eax, eax
jne 0x21036676
mov ecx, dword [ebp - 0x110]
add ecx, 0xc
mov dword [ebp - 0x110], ecx
jmp 0x21036639
mov edx, dword [ebp - 0x104]
add edx, 0xc
mov dword [ebp - 0x118], edx
jmp 0x21036696
mov eax, dword [ebp - 0x118]
add eax, 0xc
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
cmp ecx, dword [ebp - 0x110]
jae 0x210366d2
mov edx, dword [ebp - 0x104]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x118]
mov edx, dword [ecx + 8]
push edx
call fcn.21053d90
add esp, 8
test eax, eax
je 0x210366d0
mov dword [ebp - 0x114], 0
jmp 0x210366d2
jmp 0x21036687
cmp dword [ebp - 0x114], 0
je 0x21036709
jmp 0x210366ec
mov eax, dword [ebp - 0x104]
add eax, 0xc
mov dword [ebp - 0x104], eax
mov ecx, dword [ebp - 0x104]
cmp ecx, dword [ebp - 0x110]
jae 0x21036709
mov edx, dword [ebp - 0x104]
mov dword [edx + 8], 0
jmp 0x210366dd
mov eax, dword [ebp - 0x110]
sub eax, 0xc
mov dword [ebp - 0x104], eax
jmp 0x21036605
mov ecx, dword [0x2108b4c8]
mov dword [ebp - 0x104], ecx
jmp 0x2103673a
mov edx, dword [ebp - 0x104]
add edx, 0xc
mov dword [ebp - 0x104], edx
mov eax, dword [ebp - 0x104]
cmp dword [eax], 0
je 0x21036803
mov ecx, dword [ebp - 0x104]
mov edx, dword [ecx]
cmp edx, dword [ebp - 0x108]
jne 0x210367fe
mov eax, dword [ebp - 0x104]
mov ecx, dword [eax + 4]
push ecx
lea edx, [ebp - 0x100]
push edx
call fcn.210537b0
add esp, 8
mov eax, dword [ebp - 0x104]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x120], ecx
cmp dword [ebp - 0x120], 0
je 0x210367a7
mov edx, dword [ebp - 0x120]
movsx eax, byte [edx]
test eax, eax
je 0x210367a7
mov dword [ebp - 0x124], 0
jmp 0x210367b1
mov dword [ebp - 0x124], 1
cmp dword [ebp - 0x124], 0
jne 0x210367e8
mov ecx, dword [ebp - 0x104]
mov edx, dword [ecx + 8]
push edx
push str.___s_
lea eax, [ebp - 0x100]
push eax
call fcn.21053c40
add esp, 4
lea ecx, [ebp + eax - 0x100]
push ecx
call fcn.2105374f
add esp, 0xc
lea edx, [ebp - 0x100]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.21003071
jmp 0x21036803
jmp 0x2103672b
push 0x100
lea edx, [ebp - 0x100]
push edx
push 0x1001
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x21036857
lea ecx, [ebp - 0x100]
push ecx
call fcn.21053c40
add esp, 4
mov esi, eax
mov edx, dword [ebp + 0x10]
push edx
call fcn.21053c40
add esp, 4
cmp esi, eax
jbe 0x21036857
lea eax, [ebp - 0x100]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.21003071
mov eax, dword [ebp + 0x10]
movsx eax, byte [eax]
pop esi
mov esp, ebp
pop ebp
ret 0x10