Function at 0x42eb40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8000
mov eax, dword fs:[0]
push eax
sub esp, 0x38
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 eax, dword [ebp + 8]
xor edi, edi
mov ebx, ecx
mov dword [eax], edi
mov ecx, dword [0x4fef48]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4fef44]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], edi
cmp eax, ecx
je 0x42ebb5
push ecx
call fcn.00430d60
mov ecx, dword [0x4fef48]
mov esi, eax
mov eax, dword [ebp - 0x30]
push eax
push ecx
mov eax, esi
call fcn.004313c0
add esp, 0xc
mov dword [0x4fef48], esi
or eax, 0xffffffff
xor ecx, ecx
mov esi, 0x4fef08
call fcn.00404150
or eax, 0xffffffff
xor ecx, ecx
mov esi, 0x4fef24
call fcn.00404150
mov dword [ebp - 4], edi
cmp dword [ebx + 0x14], 8
jb 0x42ebde
mov ebx, dword [ebx]
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x30], esi
cmp esi, 0xffffffff
je 0x42ee0f
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push edi
push edi
push esi
call ebx
cmp eax, edi
jl 0x42ee08
je 0x42ee08
push edi
push edi
push edi
push esi
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea edx, [ebp - 0x20]
push edx
push 5
lea eax, [ebp - 0x1c]
push eax
push esi
call ebx
test eax, eax
je 0x42ee08
cmp dword [ebp - 0x20], 5
jne 0x42ee08
cmp dword [ebp - 0x1c], 0x434d5023
jne 0x42ee08
cmp byte [ebp - 0x18], 0x23
jne 0x42ee08
push edi
lea ecx, [ebp - 0x20]
push ecx
push 8
lea edx, [ebp - 0x44]
push edx
push esi
call ebx
test eax, eax
je 0x42ee08
cmp dword [ebp - 0x20], 8
jne 0x42ee08
push edi
lea eax, [ebp - 0x20]
push eax
push 2
lea ecx, [ebp - 0x24]
push ecx
push esi
call ebx
test eax, eax
je 0x42ee08
cmp dword [ebp - 0x20], 2
jne 0x42ee08
mov ax, word [ebp - 0x24]
cmp ax, di
jle 0x42ee08
movsx edx, ax
push edx
call fcn.0048d7af
movsx ecx, word [ebp - 0x24]
add esp, 4
mov edi, eax
push 0
lea eax, [ebp - 0x20]
push eax
push ecx
push edi
push esi
mov dword [ebp - 0x34], edi
call ebx
test eax, eax
je 0x42edd6
movsx edx, word [ebp - 0x24]
cmp edx, dword [ebp - 0x20]
jne 0x42edd6
push 0
lea eax, [ebp - 0x20]
push eax
push 4
lea ecx, [ebp - 0x3c]
push ecx
push esi
call ebx
test eax, eax
je 0x42edd6
cmp dword [ebp - 0x20], 4
jne 0x42edd6
cmp dword [ebp - 0x3c], 1
jne 0x42edd6
mov eax, dword [ebp - 0x28]
push 0
lea edx, [ebp - 0x20]
push edx
push 4
push eax
push esi
call ebx
test eax, eax
je 0x42edd6
cmp dword [ebp - 0x20], 4
jne 0x42edd6
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx]
test eax, eax
je 0x42edad
push eax
call fcn.0048d7af
mov ecx, dword [ebp - 0x28]
add esp, 4
push 0
lea edx, [ebp - 0x20]
push edx
mov edx, dword [ecx]
push edx
push eax
push esi
mov dword [ebp - 0x2c], eax
call ebx
test eax, eax
je 0x42ed92
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
cmp dword [ebp - 0x20], eax
jne 0x42ed92
mov ebx, dword [ebp - 0x2c]
movsx ecx, word [ebp - 0x24]
push ebx
push eax
push ebx
push ecx
push edi
lea ecx, [ebp - 0x30]
call fcn.0045ac80
test al, al
jne 0x42edad
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00491285
push ebx
call fcn.00491285
add esp, 8
jmp 0x42ee0f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00491285
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00491285
add esp, 8
jmp 0x42ee0f
push edi
call fcn.00491285
add esp, 4
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x38]
mov ecx, 0x4fef08
call fcn.0042e030
mov eax, dword [ebp - 0x2c]
jmp 0x42ee11
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00491285
add esp, 4
jmp 0x42ee0f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
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 4