Function at 0x42c85f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x4c3a10]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edi + 0x78], 8
push ebx
push esi
jb 0x42c87f
mov eax, dword [edi + 0x64]
jmp 0x42c882
lea eax, [edi + 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push eax
call esi
mov dword [edi + 0x3c], eax
cmp eax, 0xffffffff
jne 0x42c8b5
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047674a
leave
ret
lea eax, [edi + 0x7c]
cmp dword [eax + 0x18], 8
jb 0x42c8c3
mov eax, dword [eax + 4]
jmp 0x42c8c6
add eax, 4
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push eax
call esi
mov dword [edi + 0x40], eax
cmp eax, 0xffffffff
jne 0x42c8f0
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi + 0x3c], 0xffffffff
jmp 0x42c8a5
lea ecx, [ebp - 0x5c]
call fcn.004018eb
lea ecx, [ebp - 0x40]
call fcn.004018eb
lea ecx, [ebp - 0x24]
call fcn.004018eb
mov ecx, dword [edi + 0x40]
lea esi, [ebp - 0x70]
call fcn.0042c4ad
test eax, eax
jne 0x42c955
push dword [edi + 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi + 0x3c]
or dword [edi + 0x40], 0xffffffff
call esi
or dword [edi + 0x3c], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x24]
call fcn.00401a62
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00401a62
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.00401a62
jmp 0x42c8a5
mov eax, dword [ebp - 0x70]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 0x68]
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0x64]
mov dword [edi + 0x34], eax
mov eax, dword [ebp - 0x60]
push 0xffffffffffffffff
mov dword [edi + 0x38], eax
push ebx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [edi + 0x98]
call fcn.004019ab
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [edi + 0xb4]
call fcn.004019ab
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x24]
push eax
lea ecx, [edi + 0xd0]
call fcn.004019ab
lea eax, [ebp - 0x7c]
push eax
push dword [edi + 0x40]
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x78], eax
sub eax, dword [edi + 0x2c]
push eax
call fcn.004754de
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x42c9e3
push dword [edi + 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi + 0x40]
or dword [edi + 0x3c], 0xffffffff
call esi
or dword [edi + 0x40], 0xffffffff
jmp 0x42c92f
push ebx
lea eax, [ebp - 0x74]
push eax
push dword [edi + 0x2c]
mov dword [ebp - 0x74], ebx
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x78]
sub eax, dword [edi + 0x2c]
mov dword [ebp - 0x74], ebx
push eax
push esi
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x78]
sub eax, dword [edi + 0x2c]
cmp dword [ebp - 0x74], eax
jae 0x42ca64
push esi
call fcn.004763f5
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
push dword [edi + 0x3c]
call esi
push dword [edi + 0x40]
or dword [edi + 0x3c], 0xffffffff
call esi
or dword [edi + 0x40], 0xffffffff
xor esi, esi
push ebx
push 1
lea ecx, [ebp - 0x24]
call fcn.00401a62
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00401a62
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.00401a62
mov eax, esi
jmp 0x42c8a7
xor ecx, ecx
mov dword [edi + 0x30], ebx
cmp eax, ebx
jbe 0x42ca8e
mov al, byte [ecx + esi]
cmp al, 1
jne 0x42ca79
mov byte [ecx + esi], bl
jmp 0x42ca83
cmp al, 2
jne 0x42ca83
mov eax, dword [edi + 0x38]
add dword [edi + 0x30], eax
mov eax, dword [ebp - 0x78]
sub eax, dword [edi + 0x2c]
inc ecx
cmp ecx, eax
jb 0x42ca6d
mov dword [edi + 0x104], esi
xor esi, esi
inc esi
jmp 0x42ca3c