Function at 0x44a771
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push edi
mov edi, 0x4f8844
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x3c], 0
je 0x44ab36
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
sub dword [esi + 0x50], 0xffffffff
test dword [esi + 0x3c], 2
mov ebx, 0
je 0x44a88b
cmp byte [esi + 0x98], 0
je 0x44a7d1
mov edx, ebx
mov eax, dword [esi + 0x5c]
add ebx, 1
mov dword [ebp + edx*4 - 0x28], eax
jmp 0x44a88b
cmp dword [esi + 0x68], 0
jne 0x44a7eb
push 0x2001
push 1
mov eax, dword [fcn.004092c1]
call eax
add esp, 8
mov dword [esi + 0x68], eax
push 0x2001
push 0
push dword [esi + 0x68]
call fcn.004a7ae0
lea eax, [esi + 0x70]
sub esp, 0xfffffff4
push 0x14
push 0
push eax
call fcn.004a7ae0
sub esp, 0xfffffff4
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x80], eax
lea eax, [esi + 0x70]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x2000
push dword [esi + 0x68]
push dword [esi + 0x58]
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
call eax
test eax, eax
je 0x44a859
cmp dword [ebp - 0x18], 0
jne 0x44a83f
sub dword [edi], 0xffffffff
jmp 0x44a843
add dword [edi + 4], 1
push dword [ebp - 0x18]
push dword [esi + 0x68]
push dword [esi + 0x20]
call fcn.0044e749
add esp, 0xc
jmp 0x44ab52
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp eax, 0x3e5
jne 0x44a87c
mov edx, ebx
mov eax, dword [esi + 0x5c]
add ebx, 1
mov dword [ebp + edx*4 - 0x28], eax
mov byte [esi + 0x98], 1
jmp 0x44a88b
and dword [esi + 0x3c], 0xfffffffd
push dword [esi + 0x2c]
call fcn.00448fd4
add esp, 4
test dword [esi + 0x3c], 4
je 0x44a973
cmp byte [esi + 0x99], 0
je 0x44a8b2
mov edx, ebx
add ebx, 1
mov eax, dword [esi + 0x64]
mov dword [ebp + edx*4 - 0x28], eax
jmp 0x44a973
cmp dword [esi + 0x6c], 0
jne 0x44a8cc
push 0x2001
push 1
mov eax, dword [fcn.004092c1]
call eax
sub esp, 0xfffffff8
mov dword [esi + 0x6c], eax
push 0x2001
push 0
push dword [esi + 0x6c]
call fcn.004a7ae0
sub esp, 0xfffffff4
lea eax, [esi + 0x84]
push 0x14
push 0
push eax
call fcn.004a7ae0
sub esp, 0xfffffff4
mov eax, dword [esi + 0x64]
mov dword [esi + 0x94], eax
lea eax, [esi + 0x84]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x2000
push dword [esi + 0x6c]
push dword [esi + 0x60]
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
call eax
or eax, eax
je 0x44a941
cmp dword [ebp - 0x14], 0
jne 0x44a927
add dword [edi + 0x10], 1
jmp 0x44a92b
sub dword [edi + 0x14], 0xffffffff
push dword [ebp - 0x14]
push dword [esi + 0x6c]
push dword [esi + 0x24]
call fcn.0044e749
sub esp, 0xfffffff4
jmp 0x44ab52
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp eax, 0x3e5
jne 0x44a964
mov eax, dword [esi + 0x64]
mov edx, ebx
mov dword [ebp + edx*4 - 0x28], eax
mov byte [esi + 0x99], 1
sub ebx, 0xffffffff
jmp 0x44a973
and dword [esi + 0x3c], 0xfffffffb
push dword [esi + 0x30]
call fcn.00448fd4
add esp, 4
cmp ebx, 2
jne 0x44a993
test dword [esi + 0x50], 1
je 0x44a993
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
test dword [esi + 0x3c], 8
je 0x44a9a8
mov edx, ebx
mov eax, dword [esi + 0x18]
sub ebx, 0xffffffff
mov dword [ebp + edx*4 - 0x28], eax
test dword [esi + 0x3c], 1
je 0x44a9bd
mov eax, dword [esi + 0x54]
mov edx, ebx
mov dword [ebp + edx*4 - 0x28], eax
add ebx, 1
push 0
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
call eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x44a9d1
or eax, 0xffffffff
jmp 0x44a9d4
mov eax, dword [ebp + 0xc]
push eax
push 0
lea eax, [ebp - 0x28]
push eax
push ebx
mov eax, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
call eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
test eax, eax
jb 0x44ab24
mov eax, dword [ebp - 8]
cmp eax, 2
ja 0x44ab24
mov eax, dword [ebp - 8]
mov edx, dword [ebp + eax*4 - 0x28]
mov dword [ebp - 0xc], edx
mov eax, dword [esi + 0x5c]
cmp eax, dword [ebp - 0xc]
jne 0x44aa6e
mov dword [ebp - 0x18], 0
lea ebx, [ebp - 0x18]
mov byte [esi + 0x98], 0
push 1
push ebx
lea ebx, [esi + 0x70]
push ebx
push dword [esi + 0x58]
mov eax, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
call eax
or eax, eax
jne 0x44aa49
and dword [esi + 0x3c], 0xfffffffd
push dword [esi + 0x2c]
call fcn.00448fd4
sub esp, 0xfffffffc
jmp 0x44ab36
cmp dword [ebp - 0x18], 0
jne 0x44aa54
sub dword [edi], 0xffffffff
jmp 0x44aa58
sub dword [edi + 4], 0xffffffff
push dword [ebp - 0x18]
push dword [esi + 0x68]
push dword [esi + 0x20]
call fcn.0044e749
sub esp, 0xfffffff4
jmp 0x44ab36
mov ebx, dword [esi + 0x64]
cmp ebx, dword [ebp - 0xc]
jne 0x44aad6
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
mov byte [esi + 0x99], 0
push 1
push eax
lea ebx, [esi + 0x84]
push ebx
push dword [esi + 0x60]
mov eax, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
call eax
or eax, eax
jne 0x44aab3
and dword [esi + 0x3c], 0xfffffffb
push dword [esi + 0x30]
call fcn.00448fd4
sub esp, 0xfffffffc
jmp 0x44ab36
cmp dword [ebp - 0x14], 0
jne 0x44aabf
sub dword [edi + 0x10], 0xffffffff
jmp 0x44aac3
sub dword [edi + 0x14], 0xffffffff
push dword [ebp - 0x14]
push dword [esi + 0x6c]
push dword [esi + 0x24]
call fcn.0044e749
sub esp, 0xfffffff4
jmp 0x44ab36
mov eax, dword [esi + 0x54]
cmp eax, dword [ebp - 0xc]
jne 0x44aae0
jmp 0x44ab36
mov eax, dword [esi + 0x18]
cmp eax, dword [ebp - 0xc]
jne 0x44ab36
lea edi, [ebp - 0x10]
push edi
push dword [esi + 0x18]
mov eax, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
call eax
or eax, eax
jne 0x44ab0e
mov byte [esi + 0x40], 0
mov dword [esi + 0x44], 0xffffffff
mov dword [esi + 0x4c], 0xffffffff
jmp 0x44ab1e
mov byte [esi + 0x40], 1
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x4c], eax
and dword [esi + 0x3c], 0xfffffff7
jmp 0x44ab36
cmp dword [ebp - 8], 0x102
jne 0x44ab2f
jmp 0x44ab36
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x44ab51
push dword [esi + 0x18]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
mov byte [esi + 0x1c], 0
mov dword [esi + 0x18], 0xffffffff
nop
pop esi
pop ebx
pop edi
leave
ret