Function at 0x4839dd
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 0x4839fd
xor eax, eax
jmp 0x483d04
cmp dword [ebp + 0xc], 0
je 0x483ab0
mov dword [ebp - 8], 0
jmp 0x483a19
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 0x483a3f
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 0x483a3d
jmp 0x483a3f
jmp 0x483a10
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 0x430]
jge 0x483aae
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.004abe90
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.004ac1d0
add esp, 0xc
mov eax, dword [ebp - 8]
jmp 0x483d04
jmp 0x483afa
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x430], 0
jle 0x483afa
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.004abe90
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 0x483d04
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x434]
and edx, 2
test edx, edx
jne 0x483b89
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 0x483b74
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x3e5
jne 0x483b72
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x434]
or edx, 2
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x434], edx
jmp 0x483b89
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 0x483d02
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 0x483cdb
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 0x483c9e
mov dword [ebp - 8], 0
jmp 0x483c0a
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 0x483c30
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 0x483c2e
jmp 0x483c30
jmp 0x483c01
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 0x430]
jge 0x483c9c
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.004abe90
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.004ac1d0
add esp, 0xc
mov eax, dword [ebp - 8]
jmp 0x483d04
jmp 0x483cd9
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.004abe90
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 0x483d04
jmp 0x483d02
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x3e4
je 0x483d02
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