Function at 0x180019de0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
xor edx, edx
mov rcx, qword [rsp + 0xc0]
call qword [rax + 0x30]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x180019e38
mov ecx, 0x8007000e
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18001a089
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 3
mov edx, 0x40000000
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0xffffffffffffffff
jne 0x180019ea0
mov eax, dword [rsp + 0x40]
mov edx, eax
mov rcx, qword [rsp + 0x48]
call fcn.180001050
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x18001a089
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xc0]
call qword [rax + 0x30]
mov dword [rsp + 0x40], eax
mov edx, 0x10
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x44], 0
jmp 0x180019ee8
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 4
jge 0x180019f15
call fcn.180007928
mov dword [rsp + 0x68], eax
call fcn.180007928
mov ecx, dword [rsp + 0x68]
imul ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x58]
mov dword [rdx + rcx*4], eax
jmp 0x180019ede
mov ecx, 0x30
call fcn.180002fbc
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x180019f49
mov rcx, qword [rsp + 0x80]
call fcn.1800191f0
mov qword [rsp + 0x88], rax
jmp 0x180019f55
mov qword [rsp + 0x88], 0
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x6c], 0
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov r9d, 0x10
mov r8, qword [rsp + 0x58]
mov edx, 1
mov rcx, qword [rsp + 0x50]
call qword [rax + 0x10]
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
lea r9, [rsp + 0x6c]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [rax + 8]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x180019ff1
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [rax]
mov qword [rsp + 0x98], rax
jmp 0x180019ffd
mov qword [rsp + 0x98], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, 0x10
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, 0x10
mov rcx, qword [rsp + 0x58]
call fcn.180001050
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x40]
mov edx, eax
mov rcx, qword [rsp + 0x48]
call fcn.180001050
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 1
add rsp, 0xb8
ret