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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x4d2f14]
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 [0x4d44e0], edi
jne 0x419c39
call fcn.0040f4c0
cmp eax, 3
jg 0x419c39
test esi, esi
jne 0x419c39
push 3
push 0x58
push str.wini18n.cc
lea ecx, [ebp - 0xd4]
mov ebx, edi
call fcn.0040fd60
add eax, 8
push str.Check_failed:_language.
push eax
call fcn.00402850
add esp, 8
test bl, 1
je 0x419c4c
lea ecx, [ebp - 0xd4]
and ebx, 0xfffffffe
call fcn.00410380
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov ecx, 0x1400
mov dword [ebp - 0x1c], eax
cmp cx, ax
je 0x419dbf
push 9
lea edx, [ebp - 0x18]
push edx
movzx edi, ax
push 0x59
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp dword [0x4d44e0], 1
mov esi, eax
jne 0x419ccd
call fcn.0040f4c0
cmp eax, 3
jg 0x419ccd
test esi, esi
jne 0x419ccd
or ebx, 2
call sub.KERNEL32.dll_GetLastError
push eax
push 3
push 0x62
push str.wini18n.cc
lea ecx, [ebp - 0xdc]
call fcn.00410680
push str.Failed_getting_language_id
add eax, 0x10
push str.Check_failed:_0___result_length.
push eax
call fcn.00402850
add esp, 8
push eax
call fcn.00402850
add esp, 8
test bl, 2
je 0x419ce0
lea ecx, [ebp - 0xdc]
and ebx, 0xfffffffd
call fcn.004106b0
cmp esi, 1
jle 0x419e17
mov ecx, dword [ebp - 0x24]
dec esi
push esi
lea eax, [ebp - 0x18]
push eax
call fcn.004022c0
mov esi, dword [ebp - 0x20]
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x419d0b
mov eax, dword [esi]
jmp 0x419d0d
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 0x419dac
push 9
lea ecx, [ebp - 0x18]
push ecx
push 0x5a
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp dword [0x4d44e0], 1
mov edi, eax
jne 0x419d8a
call fcn.0040f4c0
cmp eax, 3
jg 0x419d8a
test edi, edi
jne 0x419d8a
or ebx, 4
call sub.KERNEL32.dll_GetLastError
push eax
push 3
push 0x6a
push str.wini18n.cc
lea ecx, [ebp - 0xdc]
call fcn.00410680
push str.Failed_getting_region_id
add eax, 0x10
push str.Check_failed:_0___result_length.
push eax
call fcn.00402850
add esp, 8
push eax
call fcn.00402850
add esp, 8
test bl, 4
je 0x419d9a
lea ecx, [ebp - 0xdc]
call fcn.004106b0
cmp edi, 1
jle 0x419dac
dec edi
push edi
lea edx, [ebp - 0x18]
push edx
mov ecx, esi
call fcn.004022c0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046fb84
mov esp, ebp
pop ebp
ret
cmp dword [0x4d44e0], edi
jne 0x419e07
call fcn.0040f4c0
cmp eax, 3
jg 0x419e07
push 3
push 0x73
push str.wini18n.cc
lea ecx, [ebp - 0xd4]
or ebx, 8
call fcn.0040fd60
push str.Cannot_determine_language_for_a_supplemental_locale.
add eax, 8
push str.Check_failed:_false.
push eax
call fcn.00402850
add esp, 8
push eax
call fcn.00402850
add esp, 8
test bl, 8
je 0x419e17
lea ecx, [ebp - 0xd4]
call fcn.00410380
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0046fb84
mov esp, ebp
pop ebp
ret