Function at 0x42e480
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
mov ecx, 0x64
mov ebx, eax
sub esp, 0xac
lea edx, [esp + 0x3c]
mov dword [esp + 0x24], 0
call fcn.0042d280
test eax, eax
mov dword [esp + 0x28], eax
jle 0x42e7c6
add dword [esp + 0x24], eax
cmp byte [esp + 0x3c], 0
je 0x42e503
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x10
mov dword [esp], edi
call sub.libX11_6.dll_XkbAllocNames
test eax, eax
jne 0x42e930
lea eax, [esp + 0x3c]
mov esi, dword [edi + 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call fcn.00422360
mov dword [esi + 0xc], eax
lea edx, [esp + 0x24]
mov eax, ebx
call fcn.0042d240
mov dword [esp], ebx
movzx eax, ax
mov esi, eax
mov dword [esp + 0x10], eax
call sub.msvcrt.dll_getc
cmp eax, 0xffffffff
mov dword [esp], ebx
setne al
movzx eax, al
mov ebp, eax
call sub.msvcrt.dll_getc
cmp eax, 0xffffffff
mov ecx, dword [esp + 0x10]
setne al
movzx eax, al
add ebp, eax
add ebp, dword [esp + 0x24]
test ecx, ecx
mov eax, ebp
mov dword [esp + 0x24], ebp
jne 0x42e560
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x10]
mov dword [esp + 4], 1
mov dword [esp], edi
mov dword [esp + 8], eax
call sub.libX11_6.dll_XkbAllocClientMap
test eax, eax
jne 0x42e7f4
cmp dword [esp + 0x10], 3
mov eax, dword [edi + 0x14]
mov ecx, esi
mov byte [eax + 1], cl
jbe 0x42e98f
mov eax, dword [edi + 0x14]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], edi
mov eax, dword [eax + 4]
mov esi, eax
lea eax, [esp + 0x34]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 8
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
jle 0x42e7c6
mov edx, dword [esp + 0x14]
add dword [esp + 0x24], 8
test edx, edx
je 0x42ea2d
mov eax, dword [esp + 0x14]
sub eax, 1
cmp eax, 2
jbe 0x42e9fd
movzx eax, byte [esp + 0x38]
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], eax
movzx edx, byte [esi + 5]
mov eax, dword [esi + 8]
mov dword [esp], 0xc
call fcn.0042d170
mov edi, eax
mov dword [esi + 8], eax
movzx eax, byte [esp + 0x38]
test al, al
setne dl
test edi, edi
jne 0x42e750
test dl, dl
jne 0x42e9b7
lea edx, [esp + 0x3c]
mov ecx, 0x64
mov eax, ebx
call fcn.0042d280
add dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x42ea86
cmp dword [esp + 0x14], 1
je 0x42ea7c
cmp dword [esp + 0x14], 2
je 0x42ea3a
cmp dword [esp + 0x14], 3
je 0x42ea90
cmp byte [esp + 0x3c], 0
jne 0x42e960
mov dword [esi + 0x10], 0
cmp byte [esp + 0x3a], 0
jne 0x42e870
movzx eax, byte [esp + 0x39]
test al, al
je 0x42e821
movzx ecx, byte [esp + 0x35]
cmp al, cl
mov dword [esp + 0x30], ecx
ja 0x42e9da
movzx edx, byte [esi + 4]
mov eax, dword [esi + 0x14]
lea ebp, [esp + 0x30]
mov dword [esp], 4
mov ecx, ebp
call fcn.0042d170
test eax, eax
mov dword [esi + 0x14], eax
je 0x42e821
cmp byte [esp + 0x39], 0
je 0x42e821
xor edi, edi
jmp 0x42e6f7
mov dword [eax + edi*4], 0
movzx eax, byte [esp + 0x39]
add edi, 1
cmp edi, eax
jae 0x42e821
lea edx, [esp + 0x3c]
mov ecx, 0x64
mov eax, ebx
call fcn.0042d280
test eax, eax
mov dword [esp + 0x28], eax
jle 0x42e91f
add dword [esp + 0x24], eax
cmp byte [esp + 0x3c], 0
mov eax, dword [esi + 0x14]
je 0x42e6e0
lea ebp, [eax + edi*4]
lea eax, [esp + 0x3c]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00422360
mov dword [ebp], eax
jmp 0x42e6e7
test dl, dl
je 0x42e62f
xor ebp, ebp
jmp 0x42e7a2
add dword [esp + 0x24], 4
xor eax, eax
cmp word [esp + 0x2e], 0
sete al
add ebp, 1
add edi, 0xc
mov dword [edi - 0xc], eax
movzx eax, byte [esp + 0x2c]
mov byte [edi - 8], al
movzx eax, byte [esp + 0x2d]
mov byte [edi - 6], al
mov byte [edi - 5], al
movzx eax, word [esp + 0x2e]
mov word [edi - 4], ax
movzx eax, byte [esp + 0x38]
cmp ebp, eax
jae 0x42e62f
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
jne 0x42e760
mov dword [0x44c348], 0x18
mov dword [0x44b754], 0x441db7
mov eax, 0xffffffff
mov dword [0x44c344], 0
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x24]
mov dword [0x44c348], 0x17
mov dword [0x44b754], 0x441db7
mov dword [0x44c344], 0
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, byte [esp + 0x34]
add dword [esp + 0x14], 1
add esi, 0x18
mov byte [esi - 0x18], al
movzx eax, byte [esp + 0x34]
mov byte [esi - 0x17], al
movzx eax, word [esp + 0x36]
mov word [esi - 0x16], ax
movzx eax, byte [esp + 0x35]
mov byte [esi - 0x14], al
movzx eax, byte [esp + 0x38]
mov byte [esi - 0x13], al
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
jne 0x42e5a7
mov eax, dword [esp + 0x24]
jmp 0x42e54f
movzx edx, byte [esi + 5]
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x28]
mov dword [esp], 4
call fcn.0042d170
test eax, eax
mov dword [esi + 0xc], eax
je 0x42e9da
xor edi, edi
cmp byte [esp + 0x38], 0
lea ebp, [esp + 0x30]
je 0x42e68d
mov dword [esp + 0x1c], esi
mov esi, edi
mov edi, eax
jmp 0x42e8e1
movzx eax, byte [esp + 0x30]
add dword [esp + 0x24], 4
add esi, 1
add edi, 4
mov byte [edi - 4], al
movzx eax, byte [esp + 0x30]
mov byte [edi - 3], al
movzx eax, word [esp + 0x32]
mov word [edi - 2], ax
movzx eax, byte [esp + 0x38]
cmp esi, eax
jae 0x42e986
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], ebp
call sub.msvcrt.dll_fread
test eax, eax
jne 0x42e8b0
mov dword [0x44c348], 0x18
mov dword [0x44b754], 0x441d53
mov dword [0x44c344], 0
mov eax, 0xffffffff
jmp 0x42e54f
mov dword [0x44c348], 0x17
mov dword [0x44b754], 0x441db7
mov eax, 0xffffffff
mov dword [0x44c344], 0
jmp 0x42e54f
lea eax, [esp + 0x3c]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00422360
mov dword [esi + 0x10], eax
jmp 0x42e682
mov esi, dword [esp + 0x1c]
jmp 0x42e68d
mov dword [0x44c348], 3
mov dword [0x44b754], 0x441db7
mov eax, 0xffffffff
mov dword [0x44c344], 0
jmp 0x42e54f
mov dword [0x44c344], eax
mov dword [0x44c348], 0x10
mov eax, 0xffffffff
mov dword [0x44b754], 0x441db7
jmp 0x42e54f
mov dword [0x44c348], 0x11
mov dword [0x44b754], 0x441d53
mov dword [0x44c344], 0
jmp 0x42e91f
cmp byte [esp + 0x35], 2
je 0x42e5f0
mov eax, dword [esp + 0x14]
mov dword [0x44c348], 0x13
mov dword [0x44b754], 0x441db7
mov dword [0x44c344], eax
or eax, 0xffffffff
jmp 0x42e54f
cmp byte [esp + 0x35], 1
je 0x42e5f0
jmp 0x42ea08
mov dword [esp + 4], str.ALPHABETIC
lea eax, [esp + 0x3c]
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x42e670
mov dword [0x44c348], 0x12
mov dword [0x44b754], 0x441db7
or eax, 0xffffffff
mov dword [0x44c344], 0
jmp 0x42e54f
mov dword [esp + 4], str.TWO_LEVEL
jmp 0x42ea42
mov dword [esp + 4], str.ONE_LEVEL
jmp 0x42ea42
mov dword [esp + 4], str.KEYPAD
jmp 0x42ea42