Function at 0x410ac0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d300
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x495574]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 0xc]
mov ecx, esi
push 0
push 0x47a2ec
call fcn.004041d0
mov edi, dword [ebp + 8]
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x410b23
push edi
push 0x485338
push esi
xor bl, bl
call fcn.00403a80
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp + 8], 0
mov dword [ebp - 0x2c], 0
test bl, bl
je 0x410b6c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.KbdLayerDescriptor
push eax
call esi
push str.KbdNlsLayerDescriptor
push dword [ebp - 0x18]
mov dword [ebp + 8], eax
call esi
cmp dword [ebp + 8], 0
mov dword [ebp - 0x2c], eax
jne 0x410b6c
push edi
push str.The_file__s_does_not_have_KbdLayerDescriptor_export_entry__probably_not_a_keyboard_layout_DLL
push dword [ebp + 0xc]
xor bl, bl
call fcn.00403a80
add esp, 0xc
lea ecx, [ebp - 0x48]
call fcn.0043bb76
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0
test bl, bl
je 0x410d5e
push 0x47abec
push edi
call fcn.00454731
mov esi, eax
add esp, 8
test esi, esi
je 0x410bbf
push 2
push 0
push esi
call fcn.00455470
add esp, 0xc
push esi
test eax, eax
je 0x410c2f
call fcn.0045460b
add esp, 4
call dword [ebp + 8]
mov dword [ebp + 8], eax
test eax, eax
jne 0x410bdc
push edi
push str.Method_KbdLayerDescriptor_from_file__s_returned_NULL
push dword [ebp + 0xc]
xor bl, bl
call fcn.00403a80
add esp, 0xc
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x410be8
call eax
mov dword [ebp - 0x14], eax
xor esi, esi
test bl, bl
je 0x410d5e
mov ecx, dword [ebp - 0x10]
call fcn.00410410
push edi
push esi
push dword [ebp - 0x30]
mov esi, dword [ebp - 0x10]
mov ecx, esi
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.00410490
mov edi, dword [ebp + 0xc]
mov bl, al
test bl, bl
jne 0x410d64
push 0x30
push str.KBDTABLES_structure_is_corrupted_or_inconsistent
mov ecx, edi
call fcn.004041d0
jmp 0x410d64
call fcn.00455a8b
push esi
mov dword [ebp - 0x20], eax
call fcn.0045460b
push 0x47abec
push edi
call fcn.00454731
add esp, 0x10
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x410bbf
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x48]
push 0xffffffffffffffff
push esi
call fcn.0043bcf7
push dword [ebp - 0x1c]
push 1
push esi
push dword [ebp - 0x44]
call fcn.00454930
push dword [ebp - 0x1c]
mov esi, eax
call fcn.0045460b
add esp, 0x14
cmp esi, 1
jne 0x410bbf
mov esi, dword [ebp - 0x44]
mov ecx, esi
mov edx, dword [ebp - 0x20]
call fcn.00410a00
test eax, eax
je 0x410bbf
add eax, 0x18
sub esi, eax
add esi, edx
cmp esi, 0x10
jbe 0x410bbf
test eax, eax
je 0x410bbf
cmp byte [eax], 0x4b
jne 0x410bbf
cmp byte [eax + 1], 0x42
jne 0x410bbf
cmp byte [eax + 2], 0x44
jne 0x410bbf
cmp byte [eax + 3], 0x45
jne 0x410bbf
lea esi, [eax + 4]
test esi, esi
je 0x410bbf
xor edx, edx
lea ecx, [ebp - 0x20]
call fcn.0042ff00
test eax, eax
je 0x410bbf
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 0
push eax
mov ecx, esi
mov dword [ebp - 0x28], 0
call fcn.0042fd90
mov dword [ebp - 0x34], eax
add esp, 0xc
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x410d3a
push eax
call fcn.004543a2
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x410bbf
mov eax, dword [ebp - 0x1c]
sub esi, dword [esi + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
jmp 0x410bea
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x410d72
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x40], 0
jle 0x410d84
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x48]
call fcn.0043bcf7
test bl, bl
je 0x410e36
call fcn.00437bed
mov ecx, eax
test ecx, ecx
je 0x410e54
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x471758
jne 0x410e5e
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
add eax, 0x10
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 1
push eax
lea eax, [esi + 0xdc]
push eax
lea eax, [esi + 0xbc]
push eax
lea ecx, [esi + 0x88]
call fcn.004233e0
mov esi, dword [ebp + 0xc]
test al, al
jne 0x410df9
mov ecx, dword [ebp - 0x10]
call fcn.00410410
push esi
push str.Error:_ligatures_and_or_dead_chars_are_not_consistent:_r_n_s
push edi
xor bl, bl
call fcn.00403a80
add esp, 0xc
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x410e36
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x471758
jne 0x410e65
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x410e65
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [ebp - 0x48]
call fcn.0043bb8d
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00404830
call edx
jmp 0x410db2
call edx
jmp 0x410e36