Function at 0x441425
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
mov edi, edx
mov ebp, ecx
push 0x14
push ebx
mov dword [esp + 0x1c], edi
mov dword [edi + 4], 3
lea eax, [edi + 0x20]
mov dword [eax], ebx
mov dword [edi + 0x44], esi
mov dword [edi + 0x40], ebx
mov dword [edi + 0x3c], 0x42df9f
mov dword [edi + 0x48], ebx
mov dword [edi + 0x54], ebx
or dword [edi + 0x58], 0xffffffff
push eax
call fcn.0051c010
add esp, 0xc
test dword [esi + 0x2c], 0x180000
je 0x44148d
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0x54], eax
test eax, eax
je 0x4416e4
or eax, 1
mov dword [edi + 0x30], eax
mov ebx, dword [0x5631f0]
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x5631f4]
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x50], ecx
test eax, eax
je 0x4414eb
cmp eax, 1
jne 0x4414be
cmp dword [esp + 0x34], 0
jne 0x4414be
mov eax, dword [esp + 0x28]
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x4414eb
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
push ecx
push eax
mov ecx, edi
call fcn.00441373
add esp, 0xc
test eax, eax
jne 0x4415fe
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0x2c]
mov edx, 0x1100000
and eax, edx
cmp eax, edx
jne 0x44157f
push 0
lea eax, [esp + 0x28]
push eax
push ebx
push ecx
push dword [esi + 0x94]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x441523
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov dword [edi + 0x34], edx
mov ecx, dword [esi + 0x40]
lea eax, [ecx + 1]
mov dword [esi + 0x40], eax
test ecx, ecx
jne 0x44154c
mov eax, dword [esi + 0x2c]
test al, 4
jne 0x44154c
or eax, 4
mov dword [esi + 0x2c], eax
test al, 8
je 0x44154c
mov eax, dword [esi + 4]
inc dword [eax + 4]
inc dword [ebp + 0x10]
lea eax, [edi + 0x20]
inc dword [esi + 0x3c]
inc dword [esi + 0x88]
push eax
push edx
push edx
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x4415fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x5896f8
jmp 0x4416ef
test dword [esi + 0x2c], 0x1000000
je 0x441606
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x50], ecx
and dword [edi + 0x38], 0
mov eax, dword [esi + 0x11c]
test eax, eax
je 0x4415ad
mov eax, dword [eax + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x11c]
mov dword [eax + 0x38], edi
jmp 0x4415b0
mov dword [edi + 0x38], edi
mov dword [esi + 0x11c], edi
cmp dword [esi + 0x88], 0
jne 0x4415c6
mov ecx, esi
call fcn.00441328
mov dword [edi + 0x34], ebx
add dword [esi + 0x30], ebx
mov ecx, dword [esi + 0x40]
lea eax, [ecx + 1]
mov dword [esi + 0x40], eax
test ecx, ecx
jne 0x4415f0
mov eax, dword [esi + 0x2c]
test al, 4
jne 0x4415f0
or eax, 4
mov dword [esi + 0x2c], eax
test al, 8
je 0x4415f0
mov eax, dword [esi + 4]
inc dword [eax + 4]
inc dword [ebp + 0x10]
inc dword [esi + 0x3c]
inc dword [esi + 0x88]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
test dword [esi + 0x2c], 0x100000
lea eax, [edi + 0x20]
mov edx, dword [esi + 0x94]
push eax
push 0
push ebx
push ecx
push edx
je 0x44167b
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x441665
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x44164e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [edi + 0x54]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x54], 0
mov eax, esi
jmp 0x4415fe
mov dword [edi + 0x34], ebx
add dword [esi + 0x30], ebx
push 0xffffffffffffffff
push dword [edi + 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x441669
jmp 0x441635
and dword [edi + 0x34], 0
push dword [edi + 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x54], 0
jmp 0x4415cc
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4416a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x44169f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x34], ebx
add dword [esi + 0x30], ebx
jmp 0x4416ab
and dword [edi + 0x34], 0
test dword [esi + 0x2c], 0x80000
je 0x4415cc
push 4
push 0xffffffffffffffff
push edi
push 0x441125
push dword [edi + 0x54]
lea eax, [edi + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x4415cc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, str.CreateEvent
mov ecx, eax
call fcn.00449c84
int3