Function at 0x10168e3
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x1019004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x418], ebx
cmp esi, ebx
jne 0x1016916
xor eax, eax
jmp 0x101706f
test dword [ebp + 0xc], 0xffffffe3
jne 0x101690f
push edi
mov edi, dword [ebp + 0x10]
cmp di, bx
jne 0x1016932
test byte [ebp + 0xc], 0x10
jne 0x1016f9c
call fcn.0101616d
mov dword [0x10194d4], eax
movzx eax, al
and eax, 0x20
or eax, 2
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x414], eax
test eax, eax
je 0x1016f9c
test byte [0x10194d4], 0x20
jne 0x101706e
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x410]
push eax
push 0x104
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x1016f90
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x10169ae
and dword [ebp - 0x41c], ebx
lea eax, [ebp - 0x410]
mov dword [ebp - 0x418], eax
jmp 0x10169c0
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x41c], ecx
xor ecx, ecx
mov word [eax - 2], cx
push 0
push dword [ebp - 0x414]
call fcn.0101602f
test eax, eax
je 0x1016f78
test di, di
jne 0x1016f50
mov al, byte [0x10194d4]
test al, 4
je 0x1016d5f
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov ecx, 0x404
mov dword [ebp - 0x420], eax
cmp ax, cx
jne 0x1016a12
call fcn.010162ac
movzx eax, ax
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0xc]
and eax, 8
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
je 0x1016ae8
lea eax, [ebp - 0x15c]
push eax
push dword [ebp - 0x420]
lea edi, [ebp - 0x208]
lea esi, [ebp - 0xb0]
call fcn.010166a5
test eax, eax
je 0x1016fdc
push dword [ebp - 0x41c]
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x414]
mov edx, esi
call fcn.0101681c
mov ebx, eax
test ebx, ebx
jne 0x1016fe0
push dword [ebp - 0x41c]
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x414]
lea edx, [ebp - 0x15c]
call fcn.0101681c
mov ebx, eax
test ebx, ebx
jne 0x1016fe0
cmp word [ebp - 0x208], ax
je 0x1016ac7
push dword [ebp - 0x41c]
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x414]
mov edx, edi
call fcn.0101681c
mov ebx, eax
test ebx, ebx
jne 0x1016fe0
mov eax, 0xc04
cmp word [ebp - 0x420], ax
jne 0x1016c93
mov dword [ebp - 0x420], 0x404
jmp 0x1016a1e
movzx eax, word [ebp - 0x420]
push eax
push 0x10170a0
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.01016743
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x414]
add esp, 0x10
push dword [ebp - 0x41c]
lea edx, [ebp - 0xb0]
call fcn.0101681c
mov ebx, eax
test ebx, ebx
jne 0x1016fe0
lea eax, [ebp - 0x15c]
push eax
push dword [ebp - 0x420]
xor edi, edi
lea esi, [ebp - 0xb0]
call fcn.010166a5
test eax, eax
je 0x1016b9a
push 2
lea eax, [ebp - 0x15c]
push eax
call fcn.0101711f
movzx eax, ax
test ax, ax
je 0x1016b9a
movzx eax, ax
push eax
push 0x10170a0
mov eax, esi
push 0x55
push eax
call fcn.01016743
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x414]
add esp, 0x10
push dword [ebp - 0x41c]
mov edx, esi
call fcn.0101681c
mov ebx, eax
test ebx, ebx
jne 0x1016fe0
mov eax, 0xc04
cmp word [ebp - 0x420], ax
je 0x1016ad9
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
mov dword [ebp - 0x424], esi
cmp si, word [ebp - 0x420]
je 0x1016c77
movzx eax, si
push eax
push 0x10170a0
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.01016743
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x414]
add esp, 0x10
push dword [ebp - 0x41c]
lea edx, [ebp - 0xb0]
call fcn.0101681c
mov ebx, eax
test ebx, ebx
jne 0x1016fe0
lea eax, [ebp - 0x15c]
push eax
push esi
xor edi, edi
lea esi, [ebp - 0xb0]
call fcn.010166a5
test eax, eax
je 0x1016c71
push 2
lea eax, [ebp - 0x15c]
push eax
call fcn.0101711f
movzx eax, ax
test ax, ax
je 0x1016c71
movzx eax, ax
push eax
push 0x10170a0
mov eax, esi
push 0x55
push eax
call fcn.01016743
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x414]
add esp, 0x10
push dword [ebp - 0x41c]
mov edx, esi
call fcn.0101681c
mov ebx, eax
test ebx, ebx
jne 0x1016fe0
mov esi, dword [ebp - 0x424]
mov eax, 0x409
mov ecx, eax
cmp cx, word [ebp - 0x420]
je 0x1016f28
cmp ax, si
jmp 0x1016f00
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov dword [ebp - 0x424], eax
cmp ax, word [ebp - 0x420]
je 0x1016d46
lea ecx, [ebp - 0x15c]
push ecx
push eax
lea edi, [ebp - 0x208]
lea esi, [ebp - 0xb0]
call fcn.010166a5
test eax, eax
je 0x1016f78
push dword [ebp - 0x41c]
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x414]
mov edx, esi
call fcn.0101681c
mov ebx, eax
test ebx, ebx
jne 0x1016fe0
push dword [ebp - 0x41c]
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x414]
lea edx, [ebp - 0x15c]
call fcn.0101681c
mov ebx, eax
test ebx, ebx
jne 0x1016fe0
cmp word [ebp - 0x208], ax
je 0x1016d46
push dword [ebp - 0x41c]
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x414]
mov edx, edi
call fcn.0101681c
mov ebx, eax
test ebx, ebx
jne 0x1016fe0
mov eax, 0x409
mov ecx, eax
cmp cx, word [ebp - 0x420]
jne 0x1016e1d
jmp 0x1016f28
test al, 3
je 0x1016f78
call fcn.0101631b
test byte [ebp + 0xc], 8
movzx eax, ax
mov dword [ebp - 0x424], eax
je 0x1016e46
lea ecx, [ebp - 0x15c]
push ecx
push eax
lea edi, [ebp - 0x208]
lea esi, [ebp - 0xb0]
call fcn.010166a5
test eax, eax
je 0x1016f78
push dword [ebp - 0x41c]
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x414]
mov edx, esi
call fcn.0101681c
mov ebx, eax
test ebx, ebx
jne 0x1016fe0
push dword [ebp - 0x41c]
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x414]
lea edx, [ebp - 0x15c]
call fcn.0101681c
mov ebx, eax
test ebx, ebx
jne 0x1016fe0
cmp word [ebp - 0x208], ax
je 0x1016e16
push dword [ebp - 0x41c]
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x414]
mov edx, edi
call fcn.0101681c
mov ebx, eax
test ebx, ebx
jne 0x1016fe0
mov eax, 0x409
mov ecx, eax
cmp cx, word [ebp - 0x424]
je 0x1016f28
lea ecx, [ebp - 0x15c]
push ecx
push eax
xor edi, edi
lea esi, [ebp - 0xb0]
call fcn.010166a5
mov edx, esi
jmp 0x1016f07
movzx eax, ax
push eax
push 0x10170a0
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.01016743
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x414]
add esp, 0x10
push dword [ebp - 0x41c]
lea edx, [ebp - 0xb0]
call fcn.0101681c
mov ebx, eax
test ebx, ebx
jne 0x1016fe0
lea eax, [ebp - 0x15c]
push eax
push dword [ebp - 0x424]
xor edi, edi
lea esi, [ebp - 0xb0]
call fcn.010166a5
test eax, eax
je 0x1016ef4
push 2
lea eax, [ebp - 0x15c]
push eax
call fcn.0101711f
movzx eax, ax
test ax, ax
je 0x1016ef4
movzx eax, ax
push eax
push 0x10170a0
mov eax, esi
push 0x55
push eax
call fcn.01016743
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x414]
add esp, 0x10
push dword [ebp - 0x41c]
mov edx, esi
call fcn.0101681c
mov ebx, eax
test ebx, ebx
jne 0x1016fe0
mov eax, 0x409
cmp ax, word [ebp - 0x424]
je 0x1016f28
mov edx, 0x101708c
push dword [ebp - 0x41c]
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x414]
call fcn.0101681c
mov ebx, eax
test ebx, ebx
jne 0x1016fe0
push dword [ebp - 0x41c]
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x414]
xor edx, edx
call fcn.0101681c
mov ebx, eax
test ebx, ebx
je 0x1016fdc
jmp 0x1016fe0
test byte [0x10194d4], 7
je 0x1016f78
test byte [ebp + 0xc], 8
je 0x1016fa3
lea eax, [ebp - 0x15c]
push eax
push edi
xor edi, edi
lea esi, [ebp - 0xb0]
call fcn.010166a5
test eax, eax
jne 0x1016fbd
test byte [ebp + 0xc], 0x10
je 0x1016ff0
push dword [ebp + 0x10]
push dword [ebp - 0x414]
call fcn.0101602f
test eax, eax
jne 0x1016ff0
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x101706e
movzx eax, di
push eax
push 0x10170a0
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.01016743
add esp, 0x10
push dword [ebp - 0x41c]
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x414]
lea edx, [ebp - 0xb0]
call fcn.0101681c
mov ebx, eax
test ebx, ebx
je 0x1016f78
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
jmp 0x101706e
test byte [ebp - 0x414], 1
je 0x1017068
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.0101616d
test al, 0x38
je 0x1017045
push dword [ebp - 0x418]
lea eax, [ebp - 0x410]
push dword [ebp - 0x41c]
push 0x1017080
push 0x104
push eax
call fcn.01016743
add esp, 0x14
push 0
push 1
lea eax, [ebp - 0x410]
push eax
call fcn.010160e0
jmp 0x1017062
call fcn.0101616d
push 0
and eax, 0x26
pop eax
setne al
push eax
push 0
push dword [ebp - 0x428]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x414], eax
mov eax, dword [ebp - 0x414]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01001375
leave
ret 0xc