Function at 0x43aaa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
mov eax, dword [0x7b088c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x29c], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x298], ecx
push edi
mov edi, edx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x2a0], edx
cmp eax, 1
je 0x43aafb
test eax, eax
jne 0x43aae5
test edx, edx
jne 0x43aaff
mov eax, 0x32
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00682c16
mov esp, ebp
pop ebp
ret
test edx, edx
je 0x43ab0e
cmp dword [edx + 8], 0xc
jne 0x43aae5
test dword [edx + 0x2c], 0x1200
je 0x43aae5
mov eax, dword [ebp + 0x18]
xorps xmm0, xmm0
mov dword [edi + 4], 3
mov dword [edi + 0x44], esi
mov dword [edi + 0x3c], eax
mov dword [edi + 0x48], ebx
mov dword [edi + 0x54], ebx
mov dword [edi + 0x58], 0xffffffff
movups xmmword [edi + 0x20], xmm0
mov dword [edi + 0x30], ebx
cmp dword [esi + 0x90], ebx
je 0x43ad30
xor ecx, ecx
mov dword [ebp - 0x294], ecx
test edx, edx
je 0x43ab9c
mov ebx, dword [ebp - 0x2a0]
lea eax, [ebp - 0x284]
mov edx, dword [esi + 0x100]
mov ecx, ebx
push eax
call fcn.00436f10
add esp, 4
test eax, eax
jne 0x43b082
mov ecx, dword [ebp - 0x294]
mov eax, dword [ebx + 0x94]
or ecx, 2
test dword [ebx + 0x2c], 0x1000
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x294], ecx
je 0x43ab9c
or ecx, 4
mov dword [ebp - 0x294], ecx
cmp dword [ebp + 0x10], 1
jne 0x43abc3
mov eax, dword [ebp - 0x298]
or ecx, 1
mov dword [ebp - 0x294], ecx
mov dword [ebp - 0x288], 0
mov eax, dword [eax]
mov dword [ebp - 0x28c], eax
test cl, 1
jne 0x43abcc
mov ebx, edi
jmp 0x43ac19
cmp dword [esi + 0xa8], 3
je 0x43abdd
lea ebx, [esi + 0xa4]
jmp 0x43abfa
push 0x5c
call fcn.006a66fd
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x43abfa
mov edx, str.malloc
lea ecx, [eax + 0xe]
call fcn.0044c080
mov dword [ebx + 0x20], 0
mov dword [ebx + 4], 3
mov dword [ebx + 0x44], esi
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x48], 1
push 0
push 0
xorps xmm0, xmm0
push 1
movups xmmword [ebx + 0x20], xmm0
push 0
mov dword [ebx + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x30], eax
test eax, eax
jne 0x43ac4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, str.CreateEvent
mov ecx, eax
call fcn.0044c080
test byte [ebp - 0x294], 2
lea eax, [ebx + 0x20]
push eax
push 0
mov ecx, 0x288
mov eax, 0x10
cmovne eax, ecx
push eax
lea eax, [ebp - 0x294]
push eax
push dword [esi + 0x94]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43acc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x43acb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebx + 0x30]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00682c16
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push dword [ebx + 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x43ac8d
push dword [ebx + 0x30]
mov dword [ebx + 0x34], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x30], 0
mov ecx, dword [esi + 0x40]
lea eax, [ecx + 1]
mov dword [esi + 0x40], eax
test ecx, ecx
jne 0x43acfb
mov eax, dword [esi + 0x2c]
test al, 0x40
jne 0x43acfb
or eax, 0x40
mov dword [esi + 0x2c], eax
test al, 0x20
je 0x43acfb
mov eax, dword [esi + 4]
inc dword [eax + 4]
mov edx, dword [ebp - 0x29c]
lea ecx, [ebx + 8]
lea eax, [edx + 0x10]
mov dword [ecx], eax
mov eax, dword [edx + 0x14]
mov dword [ebx + 0xc], eax
mov dword [eax], ecx
mov dword [edx + 0x14], ecx
inc dword [esi + 0x3c]
inc dword [esi + 0x88]
test byte [ebp - 0x294], 1
je 0x43b080
mov ecx, dword [ebp - 0x298]
mov edx, dword [esi + 0x2c]
mov eax, edx
and eax, 0x1200000
cmp eax, 0x1200000
jne 0x43ae05
push 0
lea eax, [ebp - 0x2a0]
push eax
push dword [ecx]
push dword [ecx + 4]
push dword [esi + 0x94]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43ad7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00682c16
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x34], 0
mov ecx, dword [esi + 0x40]
lea eax, [ecx + 1]
mov dword [esi + 0x40], eax
test ecx, ecx
jne 0x43ada5
mov eax, dword [esi + 0x2c]
test al, 0x40
jne 0x43ada5
or eax, 0x40
mov dword [esi + 0x2c], eax
test al, 0x20
je 0x43ada5
mov eax, dword [esi + 4]
inc dword [eax + 4]
mov edx, dword [ebp - 0x29c]
lea ecx, [edi + 8]
lea eax, [edx + 0x10]
mov dword [ecx], eax
mov eax, dword [edx + 0x14]
mov dword [edi + 0xc], eax
mov dword [eax], ecx
lea eax, [edi + 0x20]
push eax
push 0
mov dword [edx + 0x14], ecx
inc dword [esi + 0x3c]
inc dword [esi + 0x88]
push 0
push dword [edx + 0x1c]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x43b080
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x76e28c
mov ecx, eax
call fcn.0044c080
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00682c16
mov esp, ebp
pop ebp
ret
test edx, 0x1000000
je 0x43ae48
mov eax, dword [ecx]
mov edx, edi
mov dword [edi + 0x4c], eax
mov eax, dword [ecx + 4]
mov ecx, esi
mov dword [edi + 0x50], eax
call fcn.0043a9e0
cmp dword [esi + 0x88], 0
jne 0x43ae2f
call fcn.0043aa50
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x298]
call fcn.0042ca80
mov dword [edi + 0x34], eax
add dword [esi + 0x30], eax
jmp 0x43b03a
test edx, 0x200000
je 0x43af99
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0x30], eax
test eax, eax
jne 0x43ae7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, str.CreateEvent
mov ecx, eax
call fcn.0044c080
lea eax, [edi + 0x20]
push eax
mov eax, dword [ebp - 0x298]
push 0
push dword [eax]
push dword [eax + 4]
push dword [esi + 0x94]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43af05
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x43aecd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [edi + 0x30]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00682c16
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push dword [ebx + 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x43af0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebx + 0x30]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0044c110
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00682c16
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x34], 0
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x40]
lea eax, [ecx + 1]
mov dword [esi + 0x40], eax
test ecx, ecx
jne 0x43af39
mov eax, dword [esi + 0x2c]
test al, 0x40
jne 0x43af39
or eax, 0x40
mov dword [esi + 0x2c], eax
test al, 0x20
je 0x43af39
mov eax, dword [esi + 4]
inc dword [eax + 4]
mov edx, dword [ebp - 0x29c]
lea ecx, [edi + 8]
lea eax, [edx + 0x10]
mov dword [ecx], eax
mov eax, dword [edx + 0x14]
mov dword [edi + 0xc], eax
mov dword [eax], ecx
lea eax, [edi + 0x20]
push eax
push 0
mov dword [edx + 0x14], ecx
inc dword [esi + 0x3c]
inc dword [esi + 0x88]
push 0
push dword [edx + 0x1c]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x43b080
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x76e28c
mov ecx, eax
call fcn.0044c080
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00682c16
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x20]
push eax
push 0
push dword [ecx]
push dword [ecx + 4]
push dword [esi + 0x94]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x43afec
call ebx
cmp eax, 0x3e5
je 0x43afd6
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00682c16
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x298]
call fcn.0042ca80
mov dword [edi + 0x34], eax
add dword [esi + 0x30], eax
jmp 0x43aff3
mov dword [edi + 0x34], 0
test dword [esi + 0x2c], 0x100000
je 0x43b03a
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0x54], eax
test eax, eax
jne 0x43b01f
call ebx
mov edx, str.CreateEvent
mov ecx, eax
call fcn.0044c080
push 4
push 0xffffffffffffffff
push edi
push 0x43a7c0
push dword [edi + 0x30]
lea eax, [edi + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x43afc3
mov ecx, dword [esi + 0x40]
lea eax, [ecx + 1]
mov dword [esi + 0x40], eax
test ecx, ecx
jne 0x43b05e
mov eax, dword [esi + 0x2c]
test al, 0x40
jne 0x43b05e
or eax, 0x40
mov dword [esi + 0x2c], eax
test al, 0x20
je 0x43b05e
mov eax, dword [esi + 4]
inc dword [eax + 4]
mov edx, dword [ebp - 0x29c]
lea ecx, [edi + 8]
lea eax, [edx + 0x10]
mov dword [ecx], eax
mov eax, dword [edx + 0x14]
mov dword [edi + 0xc], eax
mov dword [eax], ecx
mov dword [edx + 0x14], ecx
inc dword [esi + 0x3c]
inc dword [esi + 0x88]
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00682c16
mov esp, ebp
pop ebp
ret