Function at 0x483a7d
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 0x483a9d
xor eax, eax
jmp 0x483da4
cmp dword [ebp + 0xc], 0
je 0x483b50
mov dword [ebp - 8], 0
jmp 0x483ab9
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 0x483adf
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 0x483add
jmp 0x483adf
jmp 0x483ab0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 0x430]
jge 0x483b4e
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.004abfc0
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.004ac300
add esp, 0xc
mov eax, dword [ebp - 8]
jmp 0x483da4
jmp 0x483b9a
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x430], 0
jle 0x483b9a
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.004abfc0
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 0x483da4
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x434]
and edx, 2
test edx, edx
jne 0x483c29
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 0x483c14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x3e5
jne 0x483c12
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x434]
or edx, 2
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x434], edx
jmp 0x483c29
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 0x483da2
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 0x483d7b
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 0x483d3e
mov dword [ebp - 8], 0
jmp 0x483caa
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 0x483cd0
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 0x483cce
jmp 0x483cd0
jmp 0x483ca1
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 0x430]
jge 0x483d3c
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.004abfc0
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.004ac300
add esp, 0xc
mov eax, dword [ebp - 8]
jmp 0x483da4
jmp 0x483d79
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.004abfc0
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 0x483da4
jmp 0x483da2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x3e4
je 0x483da2
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