Function at 0x40a25b
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x380
mov eax, dword [0x40f040]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x368], 0
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov dword [ebp - 0x380], edi
jne 0x40a28c
xor eax, eax
jmp 0x40a966
test dword [ebp + 0xc], 0xfffffff3
jne 0x40a285
push ebx
call fcn.00409d7e
mov dword [0x40fccc], eax
and al, 0x20
neg al
sbb eax, eax
and eax, 0x1e
inc eax
inc eax
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
je 0x40a965
mov eax, dword [0x40fccc]
test al, 0x60
je 0x40a2cf
mov eax, ebx
jmp 0x40a965
mov ecx, eax
and cl, 0x78
neg cl
push esi
sbb ecx, ecx
and al, 0x66
neg ecx
neg al
mov esi, ecx
mov dword [ebp - 0x374], esi
sbb eax, eax
neg eax
mov dword [ebp - 0x370], eax
lea eax, [ebp - 0x368]
push eax
lea eax, [ebp - 0x364]
push eax
push 0x104
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x40a964
mov eax, dword [ebp - 0x368]
xor edi, edi
cmp eax, edi
jne 0x40a337
lea eax, [ebp - 0x364]
mov dword [ebp - 0x368], eax
mov dword [ebp - 0x36c], edi
jmp 0x40a347
lea ecx, [ebp - 0x364]
mov dword [ebp - 0x36c], ecx
mov word [eax - 2], di
push 0x405d7c
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40a8ff
cmp word [ebp + 0x10], di
jne 0x40a87e
mov al, byte [0x40fccc]
test al, 4
je 0x40a67d
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
test byte [ebp + 0xc], 8
movzx eax, ax
mov dword [ebp - 0x37c], eax
je 0x40a4c1
push 0x55
lea ecx, [ebp - 0x15c]
push ecx
push 0x55
lea ecx, [ebp - 0xb0]
push ecx
push eax
call fcn.00409e82
test eax, eax
je 0x40a8ff
push dword [ebp - 0x370]
lea eax, [ebp - 0xb0]
push esi
push dword [ebp - 0x368]
push eax
push dword [ebp - 0x36c]
push ebx
call fcn.0040a11b
mov esi, eax
cmp esi, edi
jne 0x40a8ee
push dword [ebp - 0x370]
lea eax, [ebp - 0x15c]
push dword [ebp - 0x374]
push dword [ebp - 0x368]
push eax
push dword [ebp - 0x36c]
push ebx
call fcn.0040a11b
mov esi, eax
cmp esi, edi
jne 0x40a8ee
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx edi, ax
cmp di, word [ebp - 0x37c]
je 0x40a496
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x55
lea eax, [ebp - 0xb0]
push eax
push edi
call fcn.00409e82
test eax, eax
je 0x40a8f9
push dword [ebp - 0x370]
lea eax, [ebp - 0xb0]
push dword [ebp - 0x374]
push dword [ebp - 0x368]
push eax
push dword [ebp - 0x36c]
push ebx
call fcn.0040a11b
mov esi, eax
test esi, esi
jne 0x40a8ee
push dword [ebp - 0x370]
lea eax, [ebp - 0x15c]
push dword [ebp - 0x374]
push dword [ebp - 0x368]
push eax
push dword [ebp - 0x36c]
push ebx
call fcn.0040a11b
mov esi, eax
test esi, esi
jne 0x40a8ee
mov eax, 0x409
cmp word [ebp - 0x37c], ax
je 0x40a856
cmp di, ax
je 0x40a856
push 0x55
lea ecx, [ebp - 0x15c]
push ecx
push 0x55
jmp 0x40a732
movzx eax, ax
push eax
mov edi, 0x40a98c
push edi
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.004028a3
add esp, 0x10
push dword [ebp - 0x370]
lea eax, [ebp - 0xb0]
push esi
push dword [ebp - 0x368]
push eax
push dword [ebp - 0x36c]
push ebx
call fcn.0040a11b
mov esi, eax
test esi, esi
jne 0x40a8ee
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x55
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0x37c]
call fcn.00409e82
test eax, eax
je 0x40a582
push 2
lea eax, [ebp - 0x15c]
push eax
call fcn.0040aa0b
movzx eax, ax
test ax, ax
je 0x40a582
movzx eax, ax
push eax
push edi
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.004028a3
add esp, 0x10
push dword [ebp - 0x370]
lea eax, [ebp - 0xb0]
push dword [ebp - 0x374]
push dword [ebp - 0x368]
push eax
push dword [ebp - 0x36c]
push ebx
call fcn.0040a11b
mov esi, eax
test esi, esi
jne 0x40a8ee
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
cmp ax, word [ebp - 0x37c]
mov dword [ebp - 0x378], eax
je 0x40a65f
movzx eax, ax
push eax
push edi
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.004028a3
add esp, 0x10
push dword [ebp - 0x370]
lea eax, [ebp - 0xb0]
push dword [ebp - 0x374]
push dword [ebp - 0x368]
push eax
push dword [ebp - 0x36c]
push ebx
call fcn.0040a11b
mov esi, eax
test esi, esi
jne 0x40a8ee
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x55
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0x378]
call fcn.00409e82
test eax, eax
je 0x40a65f
push 2
lea eax, [ebp - 0x15c]
push eax
call fcn.0040aa0b
movzx eax, ax
test ax, ax
je 0x40a65f
movzx eax, ax
push eax
push edi
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.004028a3
add esp, 0x10
push dword [ebp - 0x370]
lea eax, [ebp - 0xb0]
push dword [ebp - 0x374]
push dword [ebp - 0x368]
push eax
push dword [ebp - 0x36c]
push ebx
call fcn.0040a11b
mov esi, eax
test esi, esi
jne 0x40a8ee
mov eax, 0x409
cmp word [ebp - 0x37c], ax
je 0x40a856
cmp word [ebp - 0x378], ax
jmp 0x40a827
test al, 3
je 0x40a8ff
call fcn.00409ebf
test byte [ebp + 0xc], 8
movzx eax, ax
mov dword [ebp - 0x378], eax
je 0x40a75d
push 0x55
pop edi
push edi
lea ecx, [ebp - 0x15c]
push ecx
push edi
lea ecx, [ebp - 0xb0]
push ecx
push eax
call fcn.00409e82
test eax, eax
je 0x40a8ff
push dword [ebp - 0x370]
lea eax, [ebp - 0xb0]
push esi
push dword [ebp - 0x368]
push eax
push dword [ebp - 0x36c]
push ebx
call fcn.0040a11b
mov esi, eax
test esi, esi
jne 0x40a8ee
push dword [ebp - 0x370]
lea eax, [ebp - 0x15c]
push dword [ebp - 0x374]
push dword [ebp - 0x368]
push eax
push dword [ebp - 0x36c]
push ebx
call fcn.0040a11b
mov esi, eax
test esi, esi
jne 0x40a8ee
mov eax, 0x409
cmp word [ebp - 0x378], ax
je 0x40a856
push edi
lea ecx, [ebp - 0x15c]
push ecx
push edi
lea ecx, [ebp - 0xb0]
push ecx
push eax
call fcn.00409e82
push dword [ebp - 0x370]
lea eax, [ebp - 0xb0]
push dword [ebp - 0x374]
push dword [ebp - 0x368]
push eax
jmp 0x40a840
movzx eax, ax
push eax
mov edi, 0x40a98c
push edi
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.004028a3
add esp, 0x10
push dword [ebp - 0x370]
lea eax, [ebp - 0xb0]
push esi
push dword [ebp - 0x368]
push eax
push dword [ebp - 0x36c]
push ebx
call fcn.0040a11b
mov esi, eax
test esi, esi
jne 0x40a8ee
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x55
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0x378]
call fcn.00409e82
test eax, eax
je 0x40a81e
push 2
lea eax, [ebp - 0x15c]
push eax
call fcn.0040aa0b
movzx eax, ax
test ax, ax
je 0x40a81e
movzx eax, ax
push eax
push edi
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.004028a3
add esp, 0x10
push dword [ebp - 0x370]
lea eax, [ebp - 0xb0]
push dword [ebp - 0x374]
push dword [ebp - 0x368]
push eax
push dword [ebp - 0x36c]
push ebx
call fcn.0040a11b
mov esi, eax
test esi, esi
jne 0x40a8ee
cmp word [ebp - 0x378], 0x409
je 0x40a856
push dword [ebp - 0x370]
push dword [ebp - 0x374]
push dword [ebp - 0x368]
push 0x40a978
push dword [ebp - 0x36c]
push ebx
call fcn.0040a11b
mov esi, eax
test esi, esi
jne 0x40a8ee
push dword [ebp - 0x370]
push dword [ebp - 0x374]
push dword [ebp - 0x368]
push 0
push dword [ebp - 0x36c]
push ebx
call fcn.0040a11b
mov esi, eax
test esi, esi
je 0x40a8ea
jmp 0x40a8ee
test byte [0x40fccc], 7
je 0x40a8ff
test byte [ebp + 0xc], 8
je 0x40a8ad
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x55
lea eax, [ebp - 0xb0]
push eax
push dword [ebp + 0x10]
call fcn.00409e82
test eax, eax
jne 0x40a8c8
jmp 0x40a8ff
movzx eax, word [ebp + 0x10]
push eax
push 0x40a98c
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.004028a3
add esp, 0x10
push dword [ebp - 0x370]
lea eax, [ebp - 0xb0]
push esi
push dword [ebp - 0x368]
push eax
push dword [ebp - 0x36c]
push ebx
call fcn.0040a11b
mov esi, eax
test esi, esi
je 0x40a8f9
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x40a964
mov esi, dword [ebp - 0x374]
test bl, 1
je 0x40a962
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
cmp esi, edi
je 0x40a947
push dword [ebp - 0x368]
lea eax, [ebp - 0x364]
push dword [ebp - 0x36c]
push 0x403e28
push 0x104
push eax
call fcn.004028a3
add esp, 0x14
push edi
push 1
lea eax, [ebp - 0x364]
push eax
call fcn.00409ce0
jmp 0x40a960
xor eax, eax
cmp dword [ebp - 0x370], edi
setne al
push eax
push edi
push dword [ebp - 0x380]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
mov eax, ebx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004032ff
leave
ret 0xc