Function at 0x42e7f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb718
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4fad60]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x3c]
xor edi, edi
mov ebx, edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x30], edi
cmp eax, ecx
je 0x42e859
push ecx
call fcn.00430d60
mov ecx, dword [ebp - 0x38]
mov edi, eax
mov eax, dword [esi + 0x40]
push ecx
push eax
mov eax, edi
call fcn.004313c0
add esp, 0xc
mov dword [esi + 0x40], edi
xor edi, edi
or eax, 0xffffffff
xor ecx, ecx
call fcn.00404150
add esi, 0x1c
or eax, 0xffffffff
xor ecx, ecx
call fcn.00404150
mov dword [ebp - 4], edi
cmp dword [ebx + 0x14], 8
jb 0x42e87d
mov eax, dword [ebx]
jmp 0x42e87f
mov eax, ebx
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x38], esi
cmp esi, 0xffffffff
je 0x42eb1b
push 2
push edi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call edi
test eax, eax
js 0x42eb14
jne 0x42e8c9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x42eb1d
push 0
push 0
push 0
push esi
call edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [ebp - 0x20]
push edx
push 5
lea eax, [ebp - 0x1c]
push eax
push esi
call edi
test eax, eax
je 0x42eb14
cmp dword [ebp - 0x20], 5
jne 0x42eb14
cmp dword [ebp - 0x1c], 0x434d5023
jne 0x42eb14
cmp byte [ebp - 0x18], 0x23
jne 0x42eb14
push 0
lea ecx, [ebp - 0x20]
push ecx
push 8
lea edx, [ebp - 0x4c]
push edx
push esi
call edi
test eax, eax
je 0x42eb14
cmp dword [ebp - 0x20], 8
jne 0x42eb14
push 0
lea eax, [ebp - 0x20]
push eax
push 2
lea ecx, [ebp - 0x24]
push ecx
push esi
call edi
test eax, eax
je 0x42eb14
cmp dword [ebp - 0x20], 2
jne 0x42eb14
mov ax, word [ebp - 0x24]
test ax, ax
jle 0x42eb14
movsx edx, ax
push edx
call fcn.0048d7af
movsx ecx, word [ebp - 0x24]
add esp, 4
mov ebx, eax
push 0
lea eax, [ebp - 0x20]
push eax
push ecx
push ebx
push esi
mov dword [ebp - 0x28], ebx
call edi
test eax, eax
je 0x42ead2
movsx edx, word [ebp - 0x24]
cmp edx, dword [ebp - 0x20]
jne 0x42ead2
push 0
lea eax, [ebp - 0x20]
push eax
push 4
lea ecx, [ebp - 0x40]
push ecx
push esi
call edi
test eax, eax
je 0x42ead2
cmp dword [ebp - 0x20], 4
jne 0x42ead2
cmp dword [ebp - 0x40], 1
jne 0x42ead2
push 0
lea edx, [ebp - 0x20]
push edx
push 4
lea eax, [ebp - 0x2c]
push eax
push esi
call edi
test eax, eax
je 0x42ead2
cmp dword [ebp - 0x20], 4
jne 0x42ead2
mov eax, dword [ebp - 0x2c]
test eax, eax
js 0x42ead2
jle 0x42ea91
push eax
call fcn.0048d7af
mov edx, dword [ebp - 0x2c]
add esp, 4
push 0
lea ecx, [ebp - 0x20]
push ecx
mov ebx, eax
push edx
push ebx
push esi
mov dword [ebp - 0x30], ebx
call edi
test eax, eax
je 0x42eab7
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x20], eax
jne 0x42eab7
mov dword [ebp - 0x44], vtable.piy::CDesEnc.0
mov edi, dword [ebp - 0x28]
push ebx
push eax
mov byte [ebp - 4], 1
movsx eax, word [ebp - 0x24]
push ebx
push eax
push edi
lea ecx, [ebp - 0x44]
call fcn.0045ac80
test al, al
jne 0x42ea5f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00491285
push ebx
call fcn.00491285
add esp, 8
jmp 0x42eb1b
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x34]
push ecx
push edx
mov ecx, ebx
call fcn.0042dcc0
push ebx
test al, al
jne 0x42ea86
call fcn.00491285
push edi
call fcn.00491285
add esp, 8
jmp 0x42eb1b
call fcn.00491285
mov ebx, dword [ebp - 0x28]
add esp, 4
push ebx
call fcn.00491285
add esp, 4
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x34]
call fcn.0042e030
mov al, 1
jmp 0x42eb1d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
push eax
call fcn.00491285
push ebx
call fcn.00491285
add esp, 8
jmp 0x42eb1b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00491285
add esp, 4
jmp 0x42eb1b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret