Function at 0x42e1c0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
mov ecx, 0x64
push esi
push ebx
mov ebx, eax
sub esp, 0xac
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x3c]
mov dword [esp + 0x20], 0
call fcn.0042d280
test eax, eax
je 0x42e448
add dword [esp + 0x20], eax
cmp byte [esp + 0x3c], 0
jne 0x42e340
lea edx, [esp + 0x20]
mov eax, ebx
call fcn.0042d240
lea edx, [esp + 0x20]
movzx eax, ax
mov edi, eax
mov eax, ebx
call fcn.0042d150
mov dword [esp], ebx
movzx eax, al
mov dword [esp + 0x18], eax
call sub.msvcrt.dll_getc
mov ebp, dword [esp + 0x1c]
cmp eax, 0xffffffff
mov dword [esp + 8], edi
setne al
mov dword [esp + 4], 3
mov dword [esp + 0x14], edi
movzx eax, al
add dword [esp + 0x20], eax
mov dword [esp], ebp
call sub.libX11_6.dll_XkbAllocCompatMap
test eax, eax
jne 0x42e470
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0x20]
xor ebp, ebp
test edx, edx
mov word [eax + 0x14], di
mov esi, dword [eax]
lea edi, [esp + 0x2c]
je 0x42e30d
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
add ebp, 1
mov dword [esp + 4], 0x10
mov dword [esp], edi
add esi, 0x10
call sub.msvcrt.dll_fread
shl eax, 4
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
mov dword [esi - 0x10], eax
movzx eax, byte [esp + 0x30]
mov byte [esi - 0xa], al
movzx eax, byte [esp + 0x31]
mov byte [esi - 0xb], al
movzx eax, byte [esp + 0x32]
mov byte [esi - 9], al
movzx eax, byte [esp + 0x33]
mov byte [esi - 0xc], al
movzx eax, byte [esp + 0x34]
mov byte [esi - 8], al
movzx eax, byte [esp + 0x35]
mov byte [esi - 7], al
movzx eax, byte [esp + 0x36]
mov byte [esi - 6], al
movzx eax, byte [esp + 0x37]
mov byte [esi - 5], al
movzx eax, byte [esp + 0x38]
mov byte [esi - 4], al
movzx eax, byte [esp + 0x39]
mov byte [esi - 3], al
movzx eax, byte [esp + 0x3a]
mov byte [esi - 2], al
movzx eax, byte [esp + 0x3b]
mov byte [esi - 1], al
cmp ebp, dword [esp + 0x14]
jne 0x42e273
mov eax, dword [esp + 0x18]
test eax, eax
je 0x42e330
mov ebp, dword [esp + 0x1c]
xor esi, esi
mov edi, 1
test dword [esp + 0x18], edi
jne 0x42e395
add esi, 1
add edi, edi
cmp esi, 4
jne 0x42e320
mov eax, dword [esp + 0x20]
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x20
mov dword [esp], eax
call sub.libX11_6.dll_XkbAllocNames
test eax, eax
jne 0x42e420
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
mov esi, dword [eax + 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00422360
mov dword [esi + 0x10], eax
jmp 0x42e1fd
lea eax, [esp + 0x28]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], eax
call sub.msvcrt.dll_fread
movzx edx, byte [esp + 0x28]
shl eax, 2
add dword [esp + 0x20], eax
mov eax, dword [ebp + 0x20]
mov byte [eax + esi*4 + 5], dl
movzx eax, word [esp + 0x2a]
mov ecx, dword [ebp + 0x20]
test ax, ax
mov word [ecx + esi*4 + 6], ax
jne 0x42e3f0
mov eax, dword [ebp + 0x20]
mov byte [eax + esi*4 + 4], dl
jmp 0x42e326
lea ecx, [esp + 0x24]
mov dword [esp + 4], eax
mov dword [esp], ebp
mov dword [esp + 8], ecx
call sub.libX11_6.dll_XkbVirtualModsToReal
test eax, eax
je 0x42e326
mov eax, dword [esp + 0x24]
or al, byte [esp + 0x28]
mov edx, dword [ebp + 0x20]
mov byte [edx + esi*4 + 4], al
jmp 0x42e326
mov dword [0x44c348], 0x17
mov dword [0x44b754], 0x441da6
mov eax, 0xffffffff
mov dword [0x44c344], 0
jmp 0x42e334
mov dword [0x44c348], 0x18
mov dword [0x44b754], 0x441da6
mov eax, 0xffffffff
mov dword [0x44c344], 0
jmp 0x42e334
mov eax, 0xffffffff
jmp 0x42e334