Function at 0x48381d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x18]
cmp dword [eax + 4], 0xffffffff
jne 0x48383d
xor eax, eax
jmp 0x483b44
cmp dword [ebp + 0xc], 0
je 0x4838f0
mov dword [ebp - 8], 0
jmp 0x483859
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 0x430]
jge 0x48387f
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx + 0x30]
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
cmp edx, ecx
jne 0x48387d
jmp 0x48387f
jmp 0x483850
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 0x430]
jge 0x4838ee
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x30
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004abcd0
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x430]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x430], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x430]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
lea eax, [edx + ecx + 0x30]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x30
push ecx
call fcn.004ac010
add esp, 0xc
mov eax, dword [ebp - 8]
jmp 0x483b44
jmp 0x48393a
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x430], 0
jle 0x48393a
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x430]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x30
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004abcd0
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x430]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x430], 0
mov eax, dword [ebp - 8]
jmp 0x483b44
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x434]
and edx, 2
test edx, edx
jne 0x4839c9
mov eax, dword [ebp - 0x18]
add eax, 8
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, 0x400
sub eax, dword [edx + 0x430]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x430]
mov eax, dword [ebp - 0x18]
lea ecx, [eax + edx + 0x30]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4839b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x3e5
jne 0x4839b2
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x434]
or edx, 2
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x434], edx
jmp 0x4839c9
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x434]
or edx, 2
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x434], edx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x434]
and edx, 2
test edx, edx
je 0x483b42
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 8
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x483b1b
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x434]
and edx, 0xfffffffd
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x434], edx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x430]
add edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x430], edx
cmp dword [ebp + 0xc], 0
je 0x483ade
mov dword [ebp - 8], 0
jmp 0x483a4a
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 0x430]
jge 0x483a70
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx + 0x30]
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
cmp edx, ecx
jne 0x483a6e
jmp 0x483a70
jmp 0x483a41
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 0x430]
jge 0x483adc
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x30
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004abcd0
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x430]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x430], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x430]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
lea eax, [edx + ecx + 0x30]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x30
push ecx
call fcn.004ac010
add esp, 0xc
mov eax, dword [ebp - 8]
jmp 0x483b44
jmp 0x483b19
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x430]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x30
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004abcd0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x430]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x430], 0
mov eax, dword [ebp - 8]
jmp 0x483b44
jmp 0x483b42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x3e4
je 0x483b42
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x434]
and ecx, 0xfffffffd
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x434], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8