Function at 0x100039c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x34
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
test byte [0x1000c080], 8
jne 0x10003b78
mov eax, dword [edi + 4]
mov edx, dword [edi + 8]
mov ebx, dword [edi]
cmp eax, edx
jb 0x10003a10
lea eax, [edx + edx]
mov dword [edi + 8], eax
lea eax, [edx + edx*4]
shl eax, 5
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov dword [edi], eax
mov ebx, eax
test eax, eax
je 0x10003c14
mov eax, dword [edi + 4]
lea eax, [eax + eax*4]
mov dword [esp], esi
shl eax, 4
mov dword [esp + 4], 0
add ebx, eax
call dword [sym.imp.kernel32.dll_LocaleNameToLCID]
mov dword [ebx], eax
sub esp, 8
mov esi, eax
cmp eax, 0x1000
je 0x10003b63
xor eax, eax
mov word [ebx + 4], ax
lea eax, [ebx + 4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
mov dword [esp + 8], eax
mov eax, dword [sym.imp.kernel32.dll_GetLocaleInfoW]
mov dword [esp + 0xc], 6
mov dword [esp + 4], 0x59
mov dword [esp], esi
mov dword [ebp - 0x20], eax
call eax
sub esp, 0x10
mov ecx, eax
test eax, eax
je 0x10003b63
mov eax, esi
mov edx, esi
shr dx, 0xa
and eax, 0x3ff
mov word [ebp - 0x1c], dx
cmp eax, 9
ja 0x10003a9f
mov edx, 0x212
bt edx, eax
jae 0x10003a9f
cmp word [ebp - 0x1c], 1
je 0x10003aa6
cmp word [ebp - 0x1c], 1
jbe 0x10003aef
lea edx, [ecx - 1]
mov eax, 0x2d
mov word [ebp + edx*2 - 0x18], ax
mov eax, 6
sub eax, ecx
mov dword [ebp - 0x28], edx
mov dword [esp + 0xc], eax
lea eax, [ebp + ecx*2 - 0x18]
mov dword [ebp - 0x1c], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5a
mov dword [esp], esi
mov eax, dword [ebp - 0x20]
call eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
sub esp, 0x10
test eax, eax
je 0x10003bb8
add ecx, eax
mov dword [esp + 0x14], 6
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x100
mov dword [esp], 0x400
call dword [sym.imp.kernel32.dll_LCMapStringW]
mov ecx, dword [ebp - 0x1c]
sub esp, 0x18
cmp ecx, 6
jg 0x10003b63
xor eax, eax
lea esi, [ebx + 0x10]
mov word [ebx + 0x10], ax
mov dword [esp + 0xc], 0x20
mov dword [esp + 8], esi
mov dword [esp + 4], 2
mov eax, dword [ebx]
mov dword [esp], eax
mov eax, dword [ebp - 0x20]
call eax
sub esp, 0x10
test byte [0x1000c080], 8
jne 0x10003bc8
add dword [edi + 4], 1
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], 0x1000e017
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.enum_locales_proc
mov dword [esp + 4], 0x1000c080
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x100039dc
xor esi, esi
mov word [ebp + edx*2 - 0x18], si
jmp 0x10003aef
mov edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn
mov edx, 0xffffffff
mov ebx, eax
mov eax, dword [ebp - 0x24]
call sym._wine_dbgstr_wn
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.ISO639:__s_SLANGUAGE:__s_n
mov dword [esp + 8], str.enum_locales_proc
mov dword [esp + 4], 0x1000c080
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10003b5f
xor eax, eax
jmp 0x10003b68