Function at 0x14001e188
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov dword [rsp + 0x58], 0xffffffff
mov eax, dword [rsp + 0x58]
cmp eax, dword [rsp + 0x108]
jne 0x14001e1b7
mov dword [rsp + 0x4c], 1
jmp 0x14001e1bf
mov dword [rsp + 0x4c], 0
mov al, byte [rsp + 0x4c]
mov byte [rsp + 0x42], al
mov al, byte [rsp + 0x42]
movzx eax, al
test eax, eax
je 0x14001e1e3
mov ecx, dword [rsp + 0x108]
call fcn.14001e048
jmp 0x14001e4eb
mov rax, qword [rsp + 0x100]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x14001e292
mov rax, qword [rsp + 0x100]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x100]
mov rax, qword [rax + 0x40]
mov rcx, qword [rsp + 0x100]
mov rcx, qword [rcx + 0x58]
movsxd rcx, dword [rcx]
add rcx, qword [rax]
mov rax, rcx
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
cmp rax, rcx
jae 0x14001e292
mov al, byte [rsp + 0x108]
mov byte [rsp + 0x43], al
mov al, byte [rsp + 0x43]
mov byte [rsp + 0x44], al
mov rcx, qword [rsp + 0x100]
call fcn.14001a6ec
mov cl, byte [rsp + 0x44]
mov byte [rax], cl
mov eax, dword [rsp + 0x108]
jmp 0x14001e4eb
mov rax, qword [rsp + 0x100]
cmp qword [rax + 0x80], 0
jne 0x14001e2b5
mov dword [rsp + 0x5c], 0xffffffff
mov eax, dword [rsp + 0x5c]
jmp 0x14001e4eb
mov rcx, qword [rsp + 0x100]
call fcn.14001ac10
nop
mov rax, qword [rsp + 0x100]
cmp qword [rax + 0x68], 0
jne 0x14001e33a
mov rax, qword [rsp + 0x100]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0xa0], rax
mov al, byte [rsp + 0x108]
mov byte [rsp + 0x45], al
mov al, byte [rsp + 0x45]
mov byte [rsp + 0x46], al
mov rdx, qword [rsp + 0xa0]
mov cl, byte [rsp + 0x46]
call fcn.14000c010
movzx eax, al
test eax, eax
je 0x14001e321
mov eax, dword [rsp + 0x108]
mov dword [rsp + 0x50], eax
jmp 0x14001e331
mov dword [rsp + 0x60], 0xffffffff
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
jmp 0x14001e4eb
mov qword [rsp + 0xc0], 0x20
mov al, byte [rsp + 0x108]
mov byte [rsp + 0x47], al
mov al, byte [rsp + 0x47]
mov byte [rsp + 0x40], al
mov rax, qword [rsp + 0x100]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0xe8]
lea rcx, [rsp + 0x41]
mov rdx, qword [rsp + 0x100]
add rdx, 0x74
lea r8, [rsp + 0xb0]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x20], rax
mov r9, rcx
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call qword [rsp + 0xa8]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x14001e40a
cmp dword [rsp + 0x48], 1
je 0x14001e40a
cmp dword [rsp + 0x48], 3
je 0x14001e49d
jmp 0x14001e4df
lea rax, [rsp + 0xc8]
mov rcx, qword [rsp + 0xb0]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jbe 0x14001e46b
mov rax, qword [rsp + 0x100]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x78]
mov edx, 1
lea rcx, [rsp + 0xc8]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
cmp qword [rsp + 0x78], rax
je 0x14001e46b
mov dword [rsp + 0x68], 0xffffffff
mov eax, dword [rsp + 0x68]
jmp 0x14001e4eb
mov rax, qword [rsp + 0x100]
mov byte [rax + 0x71], 1
lea rax, [rsp + 0x40]
cmp qword [rsp + 0xb8], rax
je 0x14001e48f
mov eax, dword [rsp + 0x108]
jmp 0x14001e4eb
mov dword [rsp + 0x6c], 0xffffffff
mov eax, dword [rsp + 0x6c]
jmp 0x14001e4eb
mov rax, qword [rsp + 0x100]
mov rdx, qword [rax + 0x80]
mov cl, byte [rsp + 0x40]
call fcn.14000c010
movzx eax, al
test eax, eax
je 0x14001e4c9
mov eax, dword [rsp + 0x108]
mov dword [rsp + 0x54], eax
jmp 0x14001e4d9
mov dword [rsp + 0x70], 0xffffffff
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
jmp 0x14001e4eb
mov dword [rsp + 0x74], 0xffffffff
mov eax, dword [rsp + 0x74]
add rsp, 0xf8
ret