Function at 0x42cbf0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x2c
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
push ebx
push ebp
xor ebp, ebp
push ecx
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x48], ebp
call fcn.0042e570
mov ebx, eax
add esp, 8
cmp ebx, ebp
jne 0x42cc27
xor eax, eax
pop ebp
pop ebx
add esp, 0x2c
ret
mov eax, dword [ebx + 0x10]
push edi
cmp eax, ebp
push esi
lea ecx, [eax + 1]
mov dword [ebx + 0x10], ecx
je 0x42cc43
mov dword [esp + 0x48], 0x455f60
jmp 0x42cf4b
mov edi, dword [esp + 0x4c]
cmp edi, ebp
je 0x42cf4b
mov al, byte [ebx + 0xc]
test al, al
je 0x42ce04
lea esi, [ebx + 0x18]
lea edx, [ebx + 0x28]
push esi
lea eax, [esp + 0x24]
push edx
push eax
call fcn.00431040
add esp, 0xc
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.00431140
add esp, 8
test eax, eax
jge 0x42cc94
lea edx, [esp + 0x20]
push edx
call fcn.00430f80
add esp, 4
mov dword [esp + 0x4c], eax
mov edi, eax
cmp edi, ebp
je 0x42cf4b
lea eax, [ebx + 0x40]
push eax
push esi
call fcn.00431070
add esp, 8
test eax, eax
jl 0x42cdd4
xor eax, eax
mov al, byte [ebx + 0xe]
mov ecx, eax
shl ecx, 3
sub ecx, eax
mov edx, dword [ebx + ecx*4 + 0x2c]
lea eax, [ebx + ecx*4]
add eax, 0x24
push edx
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004310e0
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
push esi
call fcn.00431070
add esp, 8
test eax, eax
jge 0x42cdd4
push ebx
call fcn.0042e900
add esp, 4
lea eax, [ebx + 0x40]
lea edx, [esp + 0x20]
push eax
lea eax, [ebx + 0x18]
push eax
push edx
call fcn.00431040
add esp, 0xc
lea eax, [esp + 0x20]
push eax
call fcn.00430f80
mov ebp, dword [ebx + 0x48]
add esp, 4
cmp eax, ebp
mov dword [esp + 0x44], eax
mov dword [esp + 0x1c], ebp
jae 0x42cda0
cmp dword [ebx + 0x3c], 3
je 0x42cf39
mov ecx, dword [ebx + 0x54]
sub ecx, eax
jns 0x42cd39
xor ecx, ecx
sub ebp, eax
cmp ebp, edi
jbe 0x42cd41
mov ebp, edi
cmp ebp, ecx
jbe 0x42cd4b
mov ebp, ecx
mov dword [esp + 0x4c], ecx
mov esi, dword [ebx + 0x4c]
mov edi, dword [esp + 0x14]
mov ecx, ebp
add esi, eax
mov edx, ecx
lea eax, [ebx + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.004310e0
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x50]
add esp, 0xc
add esi, ebp
add edx, ebp
sub ecx, ebp
add eax, ebp
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x44], eax
mov edi, ecx
test edi, edi
je 0x42cf2d
cmp eax, ebp
jb 0x42ccec
push ebx
call fcn.0042e940
add esp, 4
push 1
push ebx
call fcn.0042e7e0
add esp, 8
push 1
push ebx
call fcn.0042e7e0
add esp, 8
jmp 0x42ccec
mov al, byte [ebx + 0xe]
mov dword [ebx + 0x30], ebp
cmp al, 4
jne 0x42cde7
cmp dword [ebx + 0x48], 0x10000
je 0x42cdea
inc dword [ebx + 0x34]
push ebx
call fcn.0042ed80
add esp, 4
cmp eax, ebp
mov dword [esp + 0x48], eax
jne 0x42cf4b
jmp 0x42cf2d
lea eax, [ebx + 0x20]
lea ebp, [ebx + 0x18]
push eax
push ebp
call fcn.00431070
add esp, 8
test eax, eax
jne 0x42ce2a
mov eax, dword [ebx + 0x30]
mov ecx, edi
shr ecx, 0x10
inc ecx
add eax, ecx
xor esi, esi
mov dword [ebx + 0x30], eax
jmp 0x42ce2f
xor esi, esi
mov dword [ebx + 0x30], esi
mov al, byte [ebx + 0xd]
test al, al
je 0x42ce73
mov edx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x34]
cmp edx, eax
jb 0x42ce73
push ebx
call fcn.0042eb10
add esp, 4
cmp eax, esi
mov dword [esp + 0x48], eax
je 0x42ce64
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x48], esi
mov byte [ebx + 0xd], 0
jmp 0x42cf2d
push edi
push ebx
call fcn.0042e770
add esp, 8
jmp 0x42cf2d
test byte [ebx + 0xf], 2
je 0x42cef6
mov eax, dword [ebp]
mov ecx, dword [ebx + 0x1c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], esi
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x28]
lea eax, [esp + 0x10]
push edx
mov edx, dword [ebx + 4]
push eax
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x18]
push ecx
push eax
push ebx
call fcn.0042e5f0
add esp, 0xc
test eax, eax
jne 0x42ce8b
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x42cecc
cmp eax, 0x26
jne 0x42cf43
mov esi, 1
jmp 0x42cf0e
mov ecx, dword [ebx + 4]
lea edx, [esp + 0x10]
lea eax, [esp + 0x28]
push edx
push eax
push ecx
call fcn.0042e680
add esp, 0xc
cmp eax, esi
mov dword [esp + 0x18], eax
je 0x42ceef
cmp eax, 0x26
jne 0x42cf0e
mov esi, 1
jmp 0x42cf0e
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 4]
lea edx, [esp + 0x10]
push esi
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
mov edx, dword [esp + 0x10]
push edx
push ebp
push ebp
call fcn.004310e0
add esp, 0xc
test esi, esi
je 0x42cf43
mov dword [esp + 0x4c], 0
mov edi, dword [esp + 0x4c]
xor ebp, ebp
cmp edi, ebp
jne 0x42cc4f
jmp 0x42cf4b
mov dword [esp + 0x48], 0x455f20
jmp 0x42cf4b
mov dword [esp + 0x48], 1
mov eax, dword [esp + 0x48]
test eax, eax
je 0x42cf68
mov edx, dword [esp + 0x40]
lea ecx, [ebx + 0xfc]
push ecx
push eax
push edx
call fcn.0042e5a0
add esp, 0xc
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x10]
dec eax
pop esi
pop edi
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 8]
pop ebp
pop ebx
add esp, 0x2c
ret