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

Disassembly:
push 0x70
mov eax, 0x435432
call fcn.004318dd
mov edi, ecx
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x6c], edi
xor ebx, ebx
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], ebx
sub esp, 0x18
mov dword [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x6c], esp
mov esi, 0x4112f8
push esi
call fcn.0041314d
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
push 0x404f58
call fcn.0041314d
push 0x23c
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00412723
mov byte [ebp - 4], 3
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x42e749
lea eax, [ebp + 8]
push eax
sub esp, 0x18
mov ecx, esp
push 0x4112c4
call fcn.0041314d
lea eax, [ebp - 0x5c]
push eax
call fcn.004124a5
mov eax, dword [ebp + 8]
add esp, 0x20
cmp dword [ebp + 0x1c], 8
jae 0x42e771
lea eax, [ebp + 8]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42e800
push 0x404e2c
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x70], esp
push 0x404ef0
call fcn.0041314d
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x6c], esp
push esi
call fcn.0041314d
push 0x249
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
push 0x404f58
call fcn.0041314d
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 3
push eax
call fcn.004125b8
add esp, 0x54
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jg 0x42e7ec
mov edi, esi
jmp 0x42e7f5
movzx edi, si
or edi, 0x80070000
test esi, esi
jne 0x42e98b
mov edi, dword [ebp - 0x60]
mov dword [ebp - 0x64], ebx
push 0
push ebx
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov ecx, edi
push 0
shr eax, 1
push eax
call fcn.0041a85c
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x74], 1
call fcn.004137cd
push 0
lea ecx, [ebp - 0x7c]
push ecx
push esi
push dword [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.004136db
test esi, esi
jne 0x42e966
push 0x411320
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x70], esp
push 0x404ef0
call fcn.0041314d
sub esp, 0x18
mov byte [ebp - 4], 8
mov ecx, esp
mov dword [ebp - 0x6c], esp
push 0x4112f8
call fcn.0041314d
push 0x255
sub esp, 0x18
mov byte [ebp - 4], 9
mov ecx, esp
push 0x404f58
call fcn.0041314d
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 7
push eax
call fcn.004125b8
add esp, 0x54
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jg 0x42e8b6
mov esi, edi
jmp 0x42e8bf
movzx esi, di
or esi, 0x80070000
test edi, edi
je 0x42e963
push 0x411320
sub esp, 0x18
mov ecx, esp
push 0x4050c8
call fcn.0041314d
lea eax, [ebp - 0x5c]
push eax
call fcn.004124a5
add esp, 0x20
push edi
sub esp, 0x18
mov ecx, esp
push 0x405104
call fcn.0041314d
lea eax, [ebp - 0x5c]
push eax
call fcn.004124a5
add esp, 0x20
lea ecx, [ebp - 0x28]
mov edx, esi
call fcn.00412874
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.00413833
push eax
sub esp, 0x18
mov ecx, esp
push 0x403c6c
call fcn.0041314d
lea eax, [ebp - 0x5c]
push eax
call fcn.004124a5
add esp, 0x20
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x28]
call fcn.00413b89
sub esp, 0x18
mov ecx, esp
push 0x403bd8
call fcn.0041314d
lea eax, [ebp - 0x5c]
push eax
call fcn.004124a5
add esp, 0x1c
mov dword [ebp - 0x60], esi
jmp 0x42ea22
mov edi, dword [ebp - 0x60]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x5c]
call fcn.004127db
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00413b40
mov eax, edi
call fcn.0043188c
ret 0x18
push 0x404e2c
sub esp, 0x18
mov ecx, esp
push 0x4050c8
call fcn.0041314d
lea eax, [ebp - 0x5c]
push eax
call fcn.004124a5
add esp, 0x20
push esi
sub esp, 0x18
mov ecx, esp
push 0x405104
call fcn.0041314d
lea eax, [ebp - 0x5c]
push eax
call fcn.004124a5
add esp, 0x20
lea ecx, [ebp - 0x28]
mov edx, edi
call fcn.00412874
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00413833
push eax
sub esp, 0x18
mov ecx, esp
push 0x403c6c
call fcn.0041314d
lea eax, [ebp - 0x5c]
push eax
call fcn.004124a5
add esp, 0x20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00413b89
sub esp, 0x18
mov ecx, esp
push 0x403bd8
call fcn.0041314d
lea eax, [ebp - 0x5c]
push eax
call fcn.004124a5
add esp, 0x1c
mov dword [ebp - 0x60], edi
push 0x4394e4
lea eax, [ebp - 0x60]
push eax
call sub.msvcrt.dll__CxxThrowException
int3