Function at 0x42c555
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax]
test ecx, ecx
je 0x42c7f0
mov edx, dword [ebp + 0x10]
xor eax, eax
mov ax, word [edx]
sub eax, 1
imul eax, eax, 0x28
mov ecx, dword [ebp + 0xc]
add ecx, eax
mov dword [ebp - 8], ecx
push 6
push str..WYCao
mov edx, dword [ebp - 8]
push edx
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x42c648
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0x200
jbe 0x42c648
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
sub edx, 0x200
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], 0
jmp 0x42c5cd
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x14]
jae 0x42c648
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x14]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
push 0
push 0
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x24], eax
je 0x42c5fa
jmp 0x42c648
push 0
lea eax, [ebp - 0x10]
push eax
push 8
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42c643
cmp dword [ebp - 0x1c], 0x5a4de1ff
jne 0x42c643
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp + 0x14]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
jmp 0x42c7f3
jmp 0x42c5c4
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x24], 0xe00000e0
je 0x42c702
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x24]
and eax, 0xf0000000
cmp eax, 0xe0000000
jne 0x42c6fd
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x1c]
cmp edx, dword [ecx + 0xc]
jb 0x42c6fd
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
add ecx, dword [edx + 0x10]
cmp dword [ebp + 0x1c], ecx
jae 0x42c6fd
push 0
push 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x10]
push eax
push 8
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42c6fd
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x2c]
jne 0x42c6fd
mov ecx, dword [ebp + 0x10]
mov dx, word [ecx]
sub dx, 1
mov eax, dword [ebp + 0x10]
mov word [eax], dx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042c555
jmp 0x42c7f3
jmp 0x42c7f0
push 0
push 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x14]
add eax, 0xa1
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x10]
push edx
push 8
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42c779
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [ebp - 0xc]
jne 0x42c779
mov edx, dword [ebp + 0x10]
mov ax, word [edx]
sub ax, 1
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042c555
jmp 0x42c7f3
push 0
push 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x14]
add eax, 0xa3
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x10]
push edx
push 8
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42c7f0
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [ebp - 0xc]
jne 0x42c7f0
mov edx, dword [ebp + 0x10]
mov ax, word [edx]
sub ax, 1
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042c555
jmp 0x42c7f3
mov eax, dword [ebp + 0x1c]
mov esp, ebp
pop ebp
ret 0x18