Function at 0x42617a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x10], ecx
push edi
mov esi, edx
mov dword [ebp - 0x20], eax
mov ebx, eax
mov dword [ebp - 4], esi
push 0xa00000
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], eax
call fcn.00415500
mov dword [ebp - 0x1c], eax
pop ecx
test eax, eax
jne 0x4261b6
mov esi, 0x8007000e
jmp 0x4263b7
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4261df
push dword [ebp + 0x10]
mov ecx, edi
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [ebp + 8]
push 6
call dword [0x47744c]
call edi
mov esi, eax
test esi, esi
jne 0x4263a3
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0xc]
call fcn.0042483e
mov ebx, dword [ebp - 0xc]
mov esi, eax
test esi, esi
js 0x4263a3
mov ecx, ebx
call fcn.0042499c
mov esi, eax
test esi, esi
js 0x4263a3
xor eax, eax
push eax
push 0x8000080
push 2
push eax
push 5
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [ebp - 0xc], ecx
cmp ecx, 0xffffffff
jne 0x42624d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
mov esi, eax
test esi, esi
js 0x4263a3
mov esi, 0x80004005
jmp 0x4263a3
mov eax, dword [ebp - 4]
push ecx
push dword [eax + 0x24]
push dword [eax + 0x20]
call fcn.00424b17
mov esi, eax
test esi, esi
js 0x42639a
mov esi, dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x426383
xor eax, eax
push eax
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x426383
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
push ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 8]
add ecx, dword [edx + 0x18]
mov eax, dword [eax + 0xc]
adc eax, dword [edx + 0x1c]
push eax
push ecx
mov ecx, dword [esi]
call fcn.00424b17
mov esi, eax
test esi, esi
js 0x42639a
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
mov esi, dword [ebp - 8]
sub ecx, esi
sbb edx, 0
test edx, edx
jb 0x4262dc
ja 0x4262d5
cmp ecx, 0xa00000
jbe 0x4262dc
mov eax, 0xa00000
jmp 0x4262e1
mov eax, dword [eax + 0x20]
sub eax, esi
mov esi, dword [ebp - 0x1c]
xor ecx, ecx
push ecx
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
mov eax, dword [ebp - 0x10]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x426383
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [ebp - 0x18], eax
mov edx, esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
call fcn.00424bc5
mov esi, eax
test esi, esi
js 0x42639a
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
test edi, edi
je 0x426348
push dword [ebp + 0x10]
xor ecx, ecx
push ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 7
call dword [0x47744c]
call edi
mov esi, eax
test esi, esi
jne 0x42639a
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x24]
mov ecx, dword [eax + 0x20]
cmp dword [ebp - 0x20], edx
ja 0x426365
jb 0x4262bf
cmp dword [ebp - 8], ecx
jb 0x4262bf
test edi, edi
je 0x42639a
push dword [ebp + 0x10]
xor eax, eax
mov ecx, edi
push eax
push eax
push dword [ebp + 8]
push 8
call dword [0x47744c]
call edi
mov esi, eax
jmp 0x42639a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
mov esi, eax
test esi, esi
js 0x42639a
mov esi, 0x80004005
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1c]
call fcn.00415510
pop ecx
test ebx, ebx
je 0x4263b7
mov ecx, ebx
call fcn.00424c4a
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc