Function at 0x2102eed2
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 0x2102f1ea
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov dword [ebp - 0x108], ecx
cmp dword [0x2107c024], 0
jne 0x2102f104
push 2
push 0x2102f24b
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
mov edx, dword [0x2107c024]
add edx, 1
imul edx, edx, 0xc
add edx, dword [0x2107c020]
mov dword [ebp - 0x10c], edx
push 0
push 2
mov eax, dword [ebp - 0x10c]
push eax
mov ecx, 0x2107c008
call fcn.21021019
mov ecx, dword [0x2107c00c]
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x11c]
mov dword [0x2107c000], edx
mov eax, dword [0x2107c024]
add eax, 1
imul eax, eax, 0xc
mov ecx, dword [0x2107c000]
add ecx, eax
mov dword [0x2107bff8], ecx
push 2
push 0x2102f2eb
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
push 0x2102f41d
push 0xc
mov edx, dword [0x2107bffc]
push edx
mov eax, dword [0x2107c000]
push eax
call fcn.2104a3c6
add esp, 0x10
mov ecx, dword [0x2107bffc]
imul ecx, ecx, 0xc
mov edx, dword [0x2107c000]
mov dword [edx + ecx], 0
mov eax, dword [0x2107bffc]
imul eax, eax, 0xc
mov ecx, dword [0x2107c000]
mov dword [ecx + eax + 4], 0
mov edx, dword [0x2107bffc]
imul edx, edx, 0xc
mov eax, dword [0x2107c000]
mov dword [eax + edx + 8], 0
mov ecx, dword [0x2107c000]
mov dword [ebp - 0x104], ecx
jmp 0x2102effb
mov edx, dword [ebp - 0x104]
add edx, 0xc
mov dword [ebp - 0x104], edx
mov eax, dword [ebp - 0x104]
cmp dword [eax], 0
je 0x2102f104
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 0x2102f05d
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.21049780
add esp, 8
test eax, eax
jne 0x2102f05d
mov ecx, dword [ebp - 0x110]
add ecx, 0xc
mov dword [ebp - 0x110], ecx
jmp 0x2102f020
mov edx, dword [ebp - 0x104]
add edx, 0xc
mov dword [ebp - 0x118], edx
jmp 0x2102f07d
mov eax, dword [ebp - 0x118]
add eax, 0xc
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
cmp ecx, dword [ebp - 0x110]
jae 0x2102f0b9
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.21049780
add esp, 8
test eax, eax
je 0x2102f0b7
mov dword [ebp - 0x114], 0
jmp 0x2102f0b9
jmp 0x2102f06e
cmp dword [ebp - 0x114], 0
je 0x2102f0f0
jmp 0x2102f0d3
mov eax, dword [ebp - 0x104]
add eax, 0xc
mov dword [ebp - 0x104], eax
mov ecx, dword [ebp - 0x104]
cmp ecx, dword [ebp - 0x110]
jae 0x2102f0f0
mov edx, dword [ebp - 0x104]
mov dword [edx + 8], 0
jmp 0x2102f0c4
mov eax, dword [ebp - 0x110]
sub eax, 0xc
mov dword [ebp - 0x104], eax
jmp 0x2102efec
mov ecx, dword [0x2107c000]
mov dword [ebp - 0x104], ecx
jmp 0x2102f121
mov edx, dword [ebp - 0x104]
add edx, 0xc
mov dword [ebp - 0x104], edx
mov eax, dword [ebp - 0x104]
cmp dword [eax], 0
je 0x2102f1ea
mov ecx, dword [ebp - 0x104]
mov edx, dword [ecx]
cmp edx, dword [ebp - 0x108]
jne 0x2102f1e5
mov eax, dword [ebp - 0x104]
mov ecx, dword [eax + 4]
push ecx
lea edx, [ebp - 0x100]
push edx
call fcn.21048fc0
add esp, 8
mov eax, dword [ebp - 0x104]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x120], ecx
cmp dword [ebp - 0x120], 0
je 0x2102f18e
mov edx, dword [ebp - 0x120]
movsx eax, byte [edx]
test eax, eax
je 0x2102f18e
mov dword [ebp - 0x124], 0
jmp 0x2102f198
mov dword [ebp - 0x124], 1
cmp dword [ebp - 0x124], 0
jne 0x2102f1cf
mov ecx, dword [ebp - 0x104]
mov edx, dword [ecx + 8]
push edx
push str.___s_
lea eax, [ebp - 0x100]
push eax
call fcn.21049450
add esp, 4
lea ecx, [ebp + eax - 0x100]
push ecx
call fcn.21048f5f
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.210032d1
jmp 0x2102f1ea
jmp 0x2102f112
push pe_nt_image_headers32
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 0x2102f23e
lea ecx, [ebp - 0x100]
push ecx
call fcn.21049450
add esp, 4
mov esi, eax
mov edx, dword [ebp + 0x10]
push edx
call fcn.21049450
add esp, 4
cmp esi, eax
jbe 0x2102f23e
lea eax, [ebp - 0x100]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.210032d1
mov eax, dword [ebp + 0x10]
movsx eax, byte [eax]
pop esi
mov esp, ebp
pop ebp
ret 0x10