Function at 0x5f1c10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 0x10], 0
mov ecx, 0x7f5128
call fcn.005f6980
mov dword [ebp - 0x40], eax
mov ecx, 0x7f510c
call fcn.005f6980
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x12]
and ecx, 1
je 0x5f1c49
xor eax, eax
jmp 0x5f1e5c
mov edx, dword [ebp + 0x10]
add edx, 0x16
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
add eax, 0x10
xor ecx, ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
cmp edx, dword [0x7f53b8]
jb 0x5f1c82
ja 0x5f1c78
mov eax, dword [ebp - 0x38]
cmp eax, dword [0x7f53b4]
jbe 0x5f1c82
mov eax, 0xfffffffc
jmp 0x5f1e5c
movzx ecx, byte [0x7f523c]
test ecx, ecx
je 0x5f1caa
mov ecx, 0x7f5130
call fcn.005f6980
cmp eax, 0xffffffff
je 0x5f1caa
mov edx, dword [0x7f53ac]
or edx, dword [0x7f53b0]
jne 0x5f1cb4
mov eax, 0xfffffffd
jmp 0x5f1e5c
push 0x7f5110
lea ecx, [ebp - 0x30]
call fcn.005f5eb0
mov eax, dword [0x7f53ac]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 0xc], edx
push 0x16
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x10
push ecx
call fcn.00616830
add esp, 0xc
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x26
push ecx
call fcn.00616830
add esp, 0xc
push 0x14
push 0
lea edx, [ebp - 0x54]
push edx
call fcn.00616db0
add esp, 0xc
mov ecx, 0x7f5128
call fcn.005f6980
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x54]
push eax
push 0
push 8
lea ecx, [ebp - 0x38]
push ecx
mov ecx, 0x7f5130
call fcn.005f6980
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x5f1d79
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x5f1d79
mov dword [ebp - 0x18], 0xfffffffc
lea ecx, [ebp - 0x30]
call fcn.005f6650
mov eax, dword [ebp - 0x18]
jmp 0x5f1e5c
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x40]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5f1dba
mov ecx, 0x7f5130
call fcn.005f6980
push eax
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov dword [ebp - 0x1c], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.005f6650
mov eax, dword [ebp - 0x1c]
jmp 0x5f1e5c
push 0
mov ecx, 0x7f510c
call fcn.005f6980
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5f1dfb
mov ecx, 0x7f5130
call fcn.005f6980
push eax
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov dword [ebp - 0x20], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.005f6650
mov eax, dword [ebp - 0x20]
jmp 0x5f1e5c
push 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x54]
push ecx
mov ecx, 0x7f5130
call fcn.005f6980
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x5f1e2e
mov dword [ebp - 0x24], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.005f6650
mov eax, dword [ebp - 0x24]
jmp 0x5f1e5c
jmp 0x5f1e35
cmp dword [ebp - 0x10], 0
je 0x5f1e44
mov dword [ebp - 0x14], 0
jmp 0x5f1e4b
mov dword [ebp - 0x14], 0xffffffff
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], edx
lea ecx, [ebp - 0x30]
call fcn.005f6650
mov eax, dword [ebp - 0x28]
mov esp, ebp
pop ebp
ret