Function at 0x446de0
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x4d04a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
mov edi, 1
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ebx
cmp dword [0x4d22a8], edi
jne 0x446e49
call fcn.00409390
cmp eax, 3
jg 0x446e49
test esi, esi
jne 0x446e49
push 3
push 0x58
push str.wini18n.cc
lea ecx, [ebp - 0xd4]
mov ebx, edi
call fcn.0040b170
add eax, 8
push str.Check_failed:_language.
push eax
call fcn.00402810
add esp, 8
test bl, 1
je 0x446e5c
lea ecx, [ebp - 0xd4]
and ebx, 0xfffffffe
call fcn.0040b9e0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov ecx, 0x1400
mov dword [ebp - 0x1c], eax
cmp cx, ax
je 0x446fcf
push 9
lea edx, [ebp - 0x18]
push edx
movzx edi, ax
push 0x59
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp dword [0x4d22a8], 1
mov esi, eax
jne 0x446edd
call fcn.00409390
cmp eax, 3
jg 0x446edd
test esi, esi
jne 0x446edd
or ebx, 2
call sub.KERNEL32.dll_GetLastError
push eax
push 3
push 0x62
push str.wini18n.cc
lea ecx, [ebp - 0xdc]
call fcn.0040bce0
push str.Failed_getting_language_id
add eax, 0x10
push str.Check_failed:_0___result_length.
push eax
call fcn.00402810
add esp, 8
push eax
call fcn.00402810
add esp, 8
test bl, 2
je 0x446ef0
lea ecx, [ebp - 0xdc]
and ebx, 0xfffffffd
call fcn.0040bd10
cmp esi, 1
jle 0x447027
mov ecx, dword [ebp - 0x24]
dec esi
push esi
lea eax, [ebp - 0x18]
push eax
call fcn.00402280
mov esi, dword [ebp - 0x20]
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x446f1b
mov eax, dword [esi]
jmp 0x446f1d
mov eax, esi
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
mov word [eax], cx
and edx, 0xfc00
xor eax, eax
cmp ax, dx
je 0x446fbc
push 9
lea ecx, [ebp - 0x18]
push ecx
push 0x5a
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp dword [0x4d22a8], 1
mov edi, eax
jne 0x446f9a
call fcn.00409390
cmp eax, 3
jg 0x446f9a
test edi, edi
jne 0x446f9a
or ebx, 4
call sub.KERNEL32.dll_GetLastError
push eax
push 3
push 0x6a
push str.wini18n.cc
lea ecx, [ebp - 0xdc]
call fcn.0040bce0
push str.Failed_getting_region_id
add eax, 0x10
push str.Check_failed:_0___result_length.
push eax
call fcn.00402810
add esp, 8
push eax
call fcn.00402810
add esp, 8
test bl, 4
je 0x446faa
lea ecx, [ebp - 0xdc]
call fcn.0040bd10
cmp edi, 1
jle 0x446fbc
dec edi
push edi
lea edx, [ebp - 0x18]
push edx
mov ecx, esi
call fcn.00402280
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004271c4
mov esp, ebp
pop ebp
ret
cmp dword [0x4d22a8], edi
jne 0x447017
call fcn.00409390
cmp eax, 3
jg 0x447017
push 3
push 0x73
push str.wini18n.cc
lea ecx, [ebp - 0xd4]
or ebx, 8
call fcn.0040b170
push str.Cannot_determine_language_for_a_supplemental_locale.
add eax, 8
push str.Check_failed:_false.
push eax
call fcn.00402810
add esp, 8
push eax
call fcn.00402810
add esp, 8
test bl, 8
je 0x447027
lea ecx, [ebp - 0xd4]
call fcn.0040b9e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.004271c4
mov esp, ebp
pop ebp
ret