Function at 0x10001b7e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov dword [0x100056e20], 0
lea rcx, [rsp + 0x68]
call fcn.100004730
nop
mov dword [rsp + 0x34], 0
mov eax, dword [0x100056638]
dec eax
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0xe8]
cmp dword [rax + 0xc], 0
je 0x10001b856
mov rax, qword [rsp + 0xe8]
mov eax, dword [rax + 0x10]
dec eax
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0xe8]
mov eax, dword [rax + 0x14]
dec eax
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0xe8]
cmp dword [rax + 8], 0
jne 0x10001b871
mov dword [rsp + 0x98], 1
jmp 0x10001b87c
mov dword [rsp + 0x98], 0
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x70], 0
jmp 0x10001b89b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov eax, dword [0x100056638]
cmp dword [rsp + 0x70], eax
jge 0x10001baea
movsxd rax, dword [rsp + 0x70]
imul rax, rax, 0x10
mov rcx, qword [0x100056640]
movzx eax, word [rcx + rax + 0xe]
and eax, 8
test eax, eax
je 0x10001b8d7
mov rax, qword [rsp + 0xe8]
cmp dword [rax + 4], 0
jne 0x10001b8d7
jmp 0x10001b891
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x70], eax
jge 0x10001b8e3
jmp 0x10001b891
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x70], eax
jle 0x10001b8f2
jmp 0x10001baea
cmp dword [rsp + 0x48], 0
je 0x10001b904
mov qword [rsp + 0x50], 1
jmp 0x10001b939
movsxd rax, dword [rsp + 0x70]
imul rax, rax, 0x10
mov rcx, qword [0x100056640]
mov rax, qword [rcx + rax + 4]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x20]
mov edx, eax
mov rcx, qword [0x100031d48]
call fcn.1000045c0
mov qword [rsp + 0x50], rax
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xe0]
call fcn.10001b4d0
mov qword [rsp + 0x38], rax
movsxd rax, dword [rsp + 0x70]
imul rax, rax, 0x10
mov rcx, qword [0x100056640]
mov rax, qword [rcx + rax + 4]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xe8]
mov r8d, dword [rax]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x78]
call fcn.10001ad90
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
lea r8, [0x100002b78]
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x80]
call fcn.100004b20
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x68]
call fcn.100004900
nop
lea rcx, [rsp + 0x80]
call fcn.100005e70
nop
lea rcx, [rsp + 0x78]
call fcn.100005e70
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 8]
mov rax, qword [rax + 0x10]
sub rax, rcx
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0x68]
call fcn.100004840
cdqe
mov rcx, qword [rsp + 0xc0]
add rcx, rax
mov rax, rcx
cmp rax, 0x10000
jl 0x10001ba8e
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 8]
mov rax, qword [rax + 0x10]
sub rax, rcx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, eax
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax + 8]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 8]
mov qword [rax + 0x10], rcx
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.100005d30
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 8]
add rcx, 0x10000
mov rdx, qword [rsp + 0x38]
sub rcx, qword [rdx + 0x10]
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x10]
call fcn.1000194b0
lea rcx, [rsp + 0x68]
call fcn.100004840
cdqe
mov rcx, qword [rsp + 0x38]
add rax, qword [rcx + 0x10]
mov rcx, qword [rsp + 0x38]
mov qword [rcx + 0x10], rax
jmp 0x10001b891
mov dword [rsp + 0x74], 0
jmp 0x10001bafe
mov eax, dword [rsp + 0x74]
inc eax
mov dword [rsp + 0x74], eax
mov eax, dword [0x100056e20]
cmp dword [rsp + 0x74], eax
jge 0x10001bb93
movsxd rax, dword [rsp + 0x74]
imul rax, rax, 0x18
lea rcx, [0x100056800]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 8]
mov rax, qword [rax + 0x10]
sub rax, rcx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, eax
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax + 8]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rsp + 0x38]
mov r8, qword [rcx + 8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10001baf4
mov dword [rsp + 0x88], 1
lea rcx, [rsp + 0x68]
call fcn.100005e70
mov eax, dword [rsp + 0x88]
add rsp, 0xd8
ret