Function at 0x68af7a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x10], eax
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x68afc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Failed_to_create_overlap_completion_event.
push eax
call fcn.0068b296
mov eax, dword [0x84b518]
mov edx, dword [0x84b51c]
pop ecx
pop ecx
jmp 0x68b13f
mov edx, dword [ebp + 8]
push ebx
push edi
mov ecx, dword [edx]
call fcn.0068a68b
mov ebx, eax
xor eax, eax
mov edi, ebx
mov dword [ebp - 0xc], ebx
push dword [ebp + 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], 0x3e5
and dword [ebx + 0x20], 0
call fcn.0068b2f0
mov edi, dword [ebp + 0x1c]
pop ecx
lea ecx, [ebx + 0x28]
mov dword [ecx], eax
mov eax, dword [ebp + 0x20]
mov dword [ecx + 4], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp + 0x24]
mov dword [ebx + 0x34], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x38], edi
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebx + 0x40], ecx
mov dword [ebx + 0x44], eax
and dword [ebx + 0x48], 0
and dword [ebx + 0x4c], 0
cmp byte [edx + 4], 0
jne 0x68b0a0
mov edx, eax
mov esi, ecx
push edx
and esi, 0xfffff000
mov dword [ebp - 4], edx
push esi
push eax
push ecx
push edi
call fcn.0068b27c
mov edx, eax
add esp, 0x14
mov eax, dword [ebp + 0x10]
and eax, 0xfff
mov dword [ebp - 0x10], edx
cmp esi, dword [ebp + 0x14]
jne 0x68b07a
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x18]
jne 0x68b07a
cmp edx, edi
jne 0x68b07a
test eax, eax
je 0x68b0a0
mov eax, dword [ebp + 8]
push 0x1000
push edx
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
push edi
push dword [ebp + 0x10]
mov dword [ebx + 0x4c], eax
push eax
call fcn.00717660
mov eax, dword [ebx + 0x4c]
add esp, 0xc
mov dword [ebp + 0x10], eax
mov edx, dword [ebp - 4]
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edx
mov ebx, dword [ebp + 8]
lea esi, [ebx + 0x1c]
push esi
call fcn.0068b721
pop ecx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x14]
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebx + 0x20]
call fcn.00665faa
push esi
call fcn.0068b73f
mov esi, dword [ebp - 0xc]
pop ecx
push esi
mov eax, dword [esi + 0x28]
mov dword [ebp + 0x18], eax
mov eax, dword [esi + 0x2c]
and dword [ebp - 8], 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
push dword [ebp + 0x10]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x68b137
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov dword [ebp + 0x1c], eax
cmp eax, 0x3e5
je 0x68b137
call edi
push str.Failed_to_initiate_file_write.
push eax
call fcn.0068b296
mov eax, dword [ebp + 0x1c]
pop ecx
pop ecx
mov dword [esi + 0x1c], eax
mov ecx, dword [ebp - 8]
push esi
push 1
mov dword [esi + 0x20], ecx
push dword [ebp - 8]
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 0x14]
pop edi
pop ebx
pop esi
leave
ret