Function at 0x4216c0
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x493008]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 0x10]
and dword [ebp - 0x414], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x420], eax
test edi, edi
je 0x421dc1
test dword [ebp + 0xc], 0xffffffe3
jne 0x421dc1
test ax, ax
jne 0x421716
test byte [ebp + 0xc], 0x10
jne 0x421dc1
call fcn.004210f3
mov dword [0x55ec64], eax
xor esi, esi
and eax, 0x20
or eax, 2
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
je 0x421dc1
test byte [0x55ec64], 0x20
jne 0x421dc3
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
push 0x104
push esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x421dba
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0x421786
lea eax, [ebp - 0x410]
xor edi, edi
mov dword [ebp - 0x414], eax
jmp 0x421792
xor ecx, ecx
lea edi, [ebp - 0x410]
mov word [eax - 2], cx
push 0
push ebx
call fcn.00421431
test eax, eax
mov eax, dword [ebp - 0x420]
je 0x421a73
test ax, ax
jne 0x421d2e
mov eax, dword [0x55ec64]
test al, 4
je 0x421bc5
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov ecx, 0x404
mov dword [ebp - 0x41c], eax
cmp ax, cx
jne 0x4217e5
call fcn.00420fe9
movzx eax, ax
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp + 0xc]
and ecx, 8
mov dword [ebp - 0x418], ecx
test ecx, ecx
je 0x4218a7
lea ecx, [ebp - 0x208]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0xb0]
push ecx
push eax
call fcn.0042126b
test eax, eax
je 0x421a65
push dword [ebp - 0x414]
lea eax, [ebp - 0xb0]
push eax
push edi
push ebx
call fcn.004211ff
mov esi, eax
test esi, esi
jne 0x421d8d
push dword [ebp - 0x414]
lea eax, [ebp - 0x15c]
push eax
push edi
push ebx
call fcn.004211ff
mov esi, eax
test esi, esi
jne 0x421d8d
cmp word [ebp - 0x208], ax
je 0x42187f
push dword [ebp - 0x414]
lea eax, [ebp - 0x208]
push eax
push edi
push ebx
call fcn.004211ff
mov esi, eax
test esi, esi
jne 0x421d8d
mov eax, 0xc04
cmp word [ebp - 0x41c], ax
jne 0x421ada
mov ecx, dword [ebp - 0x418]
mov eax, 0x404
mov dword [ebp - 0x41c], eax
jmp 0x4217f1
movzx eax, ax
push eax
push str.MUI_04hx
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.0042146e
add esp, 0x10
lea eax, [ebp - 0xb0]
push dword [ebp - 0x414]
push eax
push edi
push ebx
call fcn.004211ff
mov esi, eax
test esi, esi
jne 0x421d8d
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0x41c]
call fcn.0042126b
test eax, eax
je 0x42194c
push 0x8000000
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
movzx eax, ax
test ax, ax
je 0x42194c
push eax
push str.MUI_04hx
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.0042146e
add esp, 0x10
lea eax, [ebp - 0xb0]
push dword [ebp - 0x414]
push eax
push edi
push ebx
call fcn.004211ff
mov esi, eax
test esi, esi
jne 0x421d8d
mov eax, 0xc04
cmp word [ebp - 0x41c], ax
je 0x421891
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
mov dword [ebp - 0x418], ecx
cmp cx, word [ebp - 0x41c]
je 0x421a25
movzx eax, cx
push eax
push str.MUI_04hx
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.0042146e
add esp, 0x10
lea eax, [ebp - 0xb0]
push dword [ebp - 0x414]
push eax
push edi
push ebx
call fcn.004211ff
mov esi, eax
test esi, esi
jne 0x421d8d
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0x418]
call fcn.0042126b
test eax, eax
je 0x421a1f
push 0x8000000
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
movzx eax, ax
test ax, ax
je 0x421a1f
push eax
push str.MUI_04hx
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.0042146e
add esp, 0x10
lea eax, [ebp - 0xb0]
push dword [ebp - 0x414]
push eax
push edi
push ebx
call fcn.004211ff
mov esi, eax
test esi, esi
jne 0x421d8d
mov ecx, dword [ebp - 0x418]
mov eax, 0x409
cmp ax, word [ebp - 0x41c]
je 0x421a54
cmp ax, cx
je 0x421a54
push dword [ebp - 0x414]
push str.MUI0409
push edi
push ebx
call fcn.004211ff
mov esi, eax
test esi, esi
jne 0x421d8d
push dword [ebp - 0x414]
push 0
push edi
push ebx
call fcn.004211ff
mov esi, eax
test esi, esi
jne 0x421d8d
mov eax, dword [ebp - 0x420]
test byte [ebp + 0xc], 0x10
je 0x421a88
push eax
push ebx
call fcn.00421431
test eax, eax
je 0x421dba
test bl, 1
je 0x421db6
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.004210f3
test al, 0x38
je 0x421d98
push dword [ebp - 0x414]
lea eax, [ebp - 0x410]
push edi
push str._s_s
push 0x104
push eax
call fcn.0042146e
add esp, 0x14
lea eax, [ebp - 0x410]
push 0
push 1
push eax
call fcn.004213a9
jmp 0x421db4
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
mov dword [ebp - 0x418], ecx
cmp cx, word [ebp - 0x41c]
je 0x421b82
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0xb0]
push eax
push ecx
call fcn.0042126b
test eax, eax
je 0x421a6d
push dword [ebp - 0x414]
lea eax, [ebp - 0xb0]
push eax
push edi
push ebx
call fcn.004211ff
mov esi, eax
test esi, esi
jne 0x421d8d
push dword [ebp - 0x414]
lea eax, [ebp - 0x15c]
push eax
push edi
push ebx
call fcn.004211ff
mov esi, eax
test esi, esi
jne 0x421d8d
cmp word [ebp - 0x208], ax
je 0x421b7c
push dword [ebp - 0x414]
lea eax, [ebp - 0x208]
push eax
push edi
push ebx
call fcn.004211ff
mov esi, eax
test esi, esi
jne 0x421d8d
mov ecx, dword [ebp - 0x418]
mov eax, 0x409
cmp ax, word [ebp - 0x41c]
je 0x421a54
cmp ax, cx
je 0x421a54
push 0
lea ecx, [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0xb0]
push ecx
push eax
call fcn.0042126b
push dword [ebp - 0x414]
lea eax, [ebp - 0xb0]
push eax
jmp 0x421a43
test al, 3
je 0x421a6d
call fcn.00421046
test byte [ebp + 0xc], 8
movzx eax, ax
mov dword [ebp - 0x418], eax
je 0x421c7c
lea ecx, [ebp - 0x208]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0xb0]
push ecx
push eax
call fcn.0042126b
test eax, eax
je 0x421a6d
push dword [ebp - 0x414]
lea eax, [ebp - 0xb0]
push eax
push edi
push ebx
call fcn.004211ff
mov esi, eax
test esi, esi
jne 0x421d8d
push dword [ebp - 0x414]
lea eax, [ebp - 0x15c]
push eax
push edi
push ebx
call fcn.004211ff
mov esi, eax
test esi, esi
jne 0x421d8d
cmp word [ebp - 0x208], ax
je 0x421c6b
push dword [ebp - 0x414]
lea eax, [ebp - 0x208]
push eax
push edi
push ebx
call fcn.004211ff
mov esi, eax
test esi, esi
jne 0x421d8d
mov eax, 0x409
cmp ax, word [ebp - 0x418]
jmp 0x421b97
movzx eax, ax
push eax
push str.MUI_04hx
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.0042146e
add esp, 0x10
lea eax, [ebp - 0xb0]
push dword [ebp - 0x414]
push eax
push edi
push ebx
call fcn.004211ff
mov esi, eax
test esi, esi
jne 0x421d8d
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0x418]
call fcn.0042126b
test eax, eax
je 0x421d1d
push 0x8000000
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
movzx eax, ax
test ax, ax
je 0x421d1d
push eax
push str.MUI_04hx
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.0042146e
add esp, 0x10
lea eax, [ebp - 0xb0]
push dword [ebp - 0x414]
push eax
push edi
push ebx
call fcn.004211ff
mov esi, eax
test esi, esi
jne 0x421d8d
mov eax, 0x409
cmp ax, word [ebp - 0x418]
jmp 0x421a36
test byte [0x55ec64], 7
je 0x421a73
test byte [ebp + 0xc], 8
je 0x421d61
push 0
lea ecx, [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0xb0]
push ecx
push eax
call fcn.0042126b
test eax, eax
je 0x421a6d
jmp 0x421d7b
movzx eax, ax
push eax
push str.MUI_04hx
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.0042146e
add esp, 0x10
push dword [ebp - 0x414]
lea eax, [ebp - 0xb0]
push eax
jmp 0x421a5c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x421dc3
call fcn.004210f3
push 0
test al, 0x26
pop eax
setne al
push eax
push 0
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
mov eax, ebx
jmp 0x421dc3
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422d0c
leave
ret 0xc