Function at 0x44da20
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x10], 0x100000
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x19], 0
mov byte [ebp - 0x31], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [0x491ff0], 0
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
je 0x44dd28
push 0
push 0
push 0x254
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x44daa3
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x44dd47
push str.StopImaging
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x44dd14
push str.ProgressPercentDone
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x44dd00
push str.PauseImaging
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x44dcec
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x44dcd8
push 0x100000
call fcn.0040855c
add esp, 4
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x44dca8
push 0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x44db7c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x44db62
push 0
lea eax, [ebp - 0x3c]
push eax
push 0x100000
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x44dc75
cmp dword [ebp - 0x3c], 0
jbe 0x44dc75
push 0
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x44dc61
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x44dbf5
mov dword [ebp - 0x40], 0
push 0x600
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x44dc5f
mov edx, dword [ebp - 0x18]
add edx, 0x100000
mov eax, dword [ebp - 0x14]
adc eax, 0
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
push 0
push 0x64
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.0042c680
mov ecx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
push edx
push eax
call fcn.0042c6c0
mov byte [ebp - 0x19], al
movzx edx, byte [ebp - 0x19]
cmp edx, 0x64
jle 0x44dc3a
mov byte [ebp - 0x19], 0x64
movzx eax, byte [ebp - 0x19]
movzx ecx, byte [ebp - 0x31]
cmp eax, ecx
jle 0x44dc5f
mov dl, byte [ebp - 0x19]
mov byte [ebp - 0x31], dl
movzx eax, byte [ebp - 0x31]
mov dword [0x491ff0], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x44dc73
mov dword [ebp - 0x40], 0
push 0x700
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x44dca6
cmp dword [ebp - 0x40], 0
je 0x44dc94
cmp dword [ebp - 0x3c], 0
jne 0x44dc94
mov dword [ebp - 0x40], 1
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x44dcc4
mov dword [ebp - 0x40], 0
push 0x600
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x44dcba
mov dword [ebp - 0x40], 0
push 0x700
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x40], 0
jne 0x44db4e
mov edx, dword [ebp - 4]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
push eax
call fcn.00408596
add esp, 4
jmp 0x44dcea
mov dword [ebp - 0x40], 0
push 0x500
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x44dcfe
mov dword [ebp - 0x40], 0
push 0x400
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x44dd12
mov dword [ebp - 0x40], 0
push 0x400
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x44dd26
mov dword [ebp - 0x40], 0
push 0x400
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x44dd3a
mov dword [ebp - 0x40], 0
push 0x200
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x40]
mov esp, ebp
pop ebp
ret 0x10