Function at 0x180007f50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
movzx eax, byte [rsp + 0x108]
test eax, eax
je 0x180007f81
mov dword [rsp + 0x38], 2
jmp 0x180007f89
mov dword [rsp + 0x38], 0
mov r9d, dword [rsp + 0x38]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
mov rcx, qword [rsp + 0xf8]
call fcn.1800738f0
movzx eax, al
test eax, eax
jne 0x1800081d4
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 2
je 0x1800080fc
cmp dword [rsp + 0x3c], 4
je 0x180007feb
jmp 0x180008151
mov rdx, qword [rsp + 0xf8]
lea rcx, [rsp + 0x70]
call fcn.180003440
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, 2
lea rdx, [0x1803b0cd8]
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180008034
mov eax, dword [rsp + 0x34]
cmp rax, 2
je 0x18000805c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x18000804d
mov dword [rsp + 0x30], 0x1f
lea rcx, [rsp + 0x70]
call fcn.180073fc0
jmp 0x1800081d4
lea rcx, [rsp + 0x70]
call fcn.180003ba0
mov eax, eax
shl rax, 1
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x70]
call fcn.180074060
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov rcx, qword [rsp + 0x58]
mov r8d, ecx
mov rdx, rax
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800080c5
mov eax, dword [rsp + 0x34]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x70]
call fcn.180003ba0
shl rax, 1
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
je 0x1800080ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x1800080de
mov dword [rsp + 0x30], 0x1f
lea rcx, [rsp + 0x70]
call fcn.180073fc0
jmp 0x1800081d4
lea rcx, [rsp + 0x70]
call fcn.180073fc0
jmp 0x1800081d4
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, 3
lea rdx, [0x1803b0c14]
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180008133
mov eax, dword [rsp + 0x34]
cmp rax, 3
je 0x180008151
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x18000814c
mov dword [rsp + 0x30], 0x1f
jmp 0x1800081d4
mov rcx, qword [rsp + 0xf8]
call fcn.180003ba0
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0xf8]
call fcn.180073860
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov rcx, qword [rsp + 0x40]
mov r8d, ecx
mov rdx, rax
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800081bb
mov eax, dword [rsp + 0x34]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0xf8]
call fcn.180003ba0
mov rcx, qword [rsp + 0x68]
cmp rcx, rax
je 0x1800081d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x1800081d4
mov dword [rsp + 0x30], 0x1f
cmp dword [rsp + 0x30], 0
je 0x180008251
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rsp + 0x30]
mov dword [rax + 0x77c], ecx
mov rax, qword [rsp + 0xe0]
mov r9d, dword [rax + 0x77c]
lea r8, [0x1803ae2d0]
mov rdx, qword [0x1803b0cb8]
lea rcx, [rsp + 0x90]
call fcn.1801e9200
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xe0]
add rax, 0xb0
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.1800732b0
lea rcx, [rsp + 0x90]
call fcn.180073360
xor eax, eax
test eax, eax
jne 0x1800081db
xor al, al
jmp 0x1800082f8
movzx eax, byte [rsp + 0x108]
test eax, eax
jne 0x1800082e8
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800082e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xe0]
mov dword [rcx + 0x77c], eax
mov rax, qword [rsp + 0xe0]
mov r9d, dword [rax + 0x77c]
lea r8, [0x1803ae2e8]
mov rdx, qword [0x1803b0cb8]
lea rcx, [rsp + 0xb0]
call fcn.1801e9200
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xe0]
add rax, 0xb0
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call fcn.1800732b0
lea rcx, [rsp + 0xb0]
call fcn.180073360
xor eax, eax
test eax, eax
jne 0x180008273
xor al, al
jmp 0x1800082f8
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov al, 1
add rsp, 0xd8
ret