Function at 0x41f0e0
Capabilities:
Identify system language via api

Disassembly:
push 0xffffffffffffffff
push 0x42fdf8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43c024]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
xor ebx, ebx
lea eax, [ebx + 1]
lea ecx, [esp + 0x20]
xor edi, edi
call fcn.0041b1d0
mov dword [esp + 0x34], ebx
cmp dword [esp + 0x3c], 6
jae 0x41f125
lea edi, [ebx + 1]
mov eax, dword [esp + 0x20]
push str.INSTALL
push eax
call fcn.00405140
test eax, eax
jne 0x41f143
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
jmp 0x41f2cd
mov ecx, dword [esp + 0x20]
push str.SYSTEM
push ecx
call fcn.00405140
test eax, eax
jne 0x41f26e
cmp edi, ebx
je 0x41f169
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
jmp 0x41f2cd
push str.Kernel32.dll
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x41f253
push str.GetSystemPreferredUILanguages
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x41f1b1
lea edx, [esp + 0x14]
push edx
push ebx
lea ecx, [esp + 0x20]
push ecx
push 4
call eax
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp edi, ebx
je 0x41f253
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or eax, ecx
push eax
call fcn.00421ecb
mov ebp, eax
add esp, 4
cmp ebp, ebx
jne 0x41f1f8
xor al, al
mov byte [esp + 0x3c], al
push 0x438008
lea eax, [esp + 0x40]
push eax
call fcn.0042d9e5
push str.Kernel32.dll
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x41f24a
push str.GetSystemPreferredUILanguages
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x41f22c
lea ecx, [esp + 0x14]
push ecx
push ebp
lea edx, [esp + 0x20]
push edx
push 4
call eax
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp edi, ebx
je 0x41f24a
lea eax, [esp + 0x1c]
push eax
push 0x434e90
push ebp
call fcn.00422916
add esp, 0xc
push ebp
call fcn.00421dee
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
jne 0x41f262
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
jmp 0x41f2e7
mov ecx, dword [esp + 0x20]
push str.USER
push ecx
call fcn.00405140
test eax, eax
jne 0x41f289
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
jmp 0x41f2cd
sub esp, 0xc
mov esi, esp
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x48], esp
cmp eax, ebx
je 0x41f2a9
push eax
call fcn.00404e70
mov edx, dword [esp + 0x2c]
mov ecx, dword [esi]
nop
movzx eax, word [edx]
mov word [ecx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x41f2b0
mov edx, dword [esp + 0x30]
mov dword [esi + 4], edx
call fcn.0041eaf0
movzx eax, ax
cmp edi, ebx
jne 0x41f2dd
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
jmp 0x41f2e7
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
mov dword [esp + 0x34], 0xffffffff
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00421dee
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4