Function at 0x14001dc50
Capabilities:
Write file on windows

Disassembly:
push rbx
push r12
sub rsp, 0x38
mov rbx, qword [0x140141918]
mov rax, qword [rbx + 0x38]
test rax, rax
je 0x14001dc7b
cmp byte [rbx + 1], 0
je 0x14001dc7b
mov byte [rax + 0x18], 0
mov rcx, qword [rbx + 0x38]
call fcn.1400442c0
xor r12d, r12d
lea rcx, [rbx + 0x3ec0]
mov qword [rbx + 0x38], r12
call fcn.1400010e0
cmp byte [rbx], r12b
je 0x14001e630
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x20], r15
cmp byte [rbx + 0x6188], r12b
je 0x14001dd13
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x14001dd13
mov rax, qword [0x140141918]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], r12
mov dword [rax + 0x618c], r12d
call fcn.140035c50
lea rdx, [0x1400c1b0c]
mov rcx, rdi
mov rsi, rax
call fcn.140019b60
mov rdi, rax
test rax, rax
je 0x14001dd13
mov r8, qword [rsp + 0x50]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140141918]
mov rdi, qword [rax + 0x4c98]
movsxd rax, dword [rax + 0x4c90]
lea rsi, [rdi + rax*8]
cmp rdi, rsi
je 0x14001dd42
mov rcx, qword [rdi]
call fcn.140038870
add rdi, 8
cmp rdi, rsi
jne 0x14001dd31
mov ebp, r12d
mov qword [rsp + 0x28], r14
cmp dword [rbx + 0x6148], r12d
jle 0x14001ddfe
mov r14, r12
nop word [rax + rax]
mov rax, qword [rbx + 0x6150]
mov rsi, qword [r14 + rax + 8]
test rsi, rsi
je 0x14001ddec
mov rcx, rsi
call fcn.14003a4f0
mov rdi, qword [0x140141918]
test rdi, rdi
je 0x14001dde3
movsx rdx, word [rdi + 0x6328]
lea rcx, [rdi + 0x632c]
mov r8d, dword [rdi + 0x40a8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r8d
je 0x14001ddd9
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6328], cx
movsx rax, cx
lea rcx, [rdi + 0x632c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r8d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6324]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebp
add r14, 0x10
cmp ebp, dword [rbx + 0x6148]
jl 0x14001dd60
mov rdi, qword [rbx + 0x61d8]
movsxd rsi, dword [rbx + 0x61d0]
shl rsi, 5
add rsi, rdi
cmp rdi, rsi
je 0x14001de30
cmp dword [rdi + 4], 6
jne 0x14001de27
mov rdx, rdi
mov rcx, rbx
call qword [rdi + 0x10]
add rdi, 0x20
cmp rdi, rsi
jne 0x14001de18
mov ebp, r12d
cmp dword [rbx + 0x40f0], r12d
jle 0x14001deed
mov r14, r12
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 0x40f8]
mov rsi, qword [r14 + rax]
test rsi, rsi
je 0x14001dedb
mov rcx, rsi
call fcn.14001ed00
mov rdi, qword [0x140141918]
test rdi, rdi
je 0x14001ded2
movsx rdx, word [rdi + 0x6328]
lea rcx, [rdi + 0x632c]
mov r8d, dword [rdi + 0x40a8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r8d
je 0x14001dec8
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6328], cx
movsx rax, cx
lea rcx, [rdi + 0x632c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r8d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6324]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebp
add r14, 8
cmp ebp, dword [rbx + 0x40f0]
jl 0x14001de50
lea rcx, [rbx + 0x40f0]
call fcn.1400010e0
lea rcx, [rbx + 0x4100]
call fcn.1400010e0
lea rcx, [rbx + 0x4110]
call fcn.1400010e0
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x58]
mov qword [rbx + 0x4150], r12
mov r8, qword [rbx + 0x4128]
test r8, r8
je 0x14001dfb8
mov rdi, qword [0x140141918]
mov qword [rbx + 0x4120], r12
test rdi, rdi
je 0x14001dfa8
movsx rdx, word [rdi + 0x6328]
lea rcx, [rdi + 0x632c]
mov r9d, dword [rdi + 0x40a8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14001df9e
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6328], cx
movsx rax, cx
lea rcx, [rdi + 0x632c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6324]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x4128], r12
lea rcx, [rbx + 0x4130]
call fcn.1400010e0
mov qword [rbx + 0x4d10], r12
lea rdi, [rbx + 0x4968]
mov qword [rbx + 0x4160], r12
mov eax, 0xffffffff
movsx rax, ax
mov ecx, 0x9a
mov qword [rbx + 0x4158], r12
mov qword [rbx + 0x41f0], r12
mov qword [rbx + 0x41d8], r12
mov qword [rbx + 0x4168], r12
rep stosw word [rdi], ax
lea rcx, [rbx + 0x4aa0]
call fcn.1400010e0
lea rcx, [rbx + 0x4ab0]
call fcn.1400010e0
mov r8, qword [rbx + 0x4c08]
test r8, r8
je 0x14001e0af
mov rdi, qword [0x140141918]
mov qword [rbx + 0x4c00], r12
test rdi, rdi
je 0x14001e09f
movsx rdx, word [rdi + 0x6328]
lea rcx, [rdi + 0x632c]
mov r9d, dword [rdi + 0x40a8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14001e095
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6328], cx
movsx rax, cx
lea rcx, [rdi + 0x632c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6324]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x4c08], r12
mov r8, qword [rbx + 0x4c18]
test r8, r8
je 0x14001e140
mov rdi, qword [0x140141918]
mov qword [rbx + 0x4c10], r12
test rdi, rdi
je 0x14001e130
movsx rdx, word [rdi + 0x6328]
lea rcx, [rdi + 0x632c]
mov r9d, dword [rdi + 0x40a8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14001e126
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6328], cx
movsx rax, cx
lea rcx, [rdi + 0x632c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6324]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x4c18], r12
lea rcx, [rbx + 0x4c20]
call fcn.1400010e0
lea rcx, [rbx + 0x4c60]
call fcn.1400010e0
lea rcx, [rbx + 0x4c70]
call fcn.1400010e0
mov r8, qword [rbx + 0x4c88]
test r8, r8
je 0x14001e1f5
mov rdi, qword [0x140141918]
mov qword [rbx + 0x4c80], r12
test rdi, rdi
je 0x14001e1e5
movsx rdx, word [rdi + 0x6328]
lea rcx, [rdi + 0x632c]
mov r9d, dword [rdi + 0x40a8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14001e1db
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6328], cx
movsx rax, cx
lea rcx, [rdi + 0x632c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6324]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x4c88], r12
lea rcx, [rbx + 0x4c90]
mov qword [rbx + 0x4cb0], r12
mov qword [rbx + 0x4ca8], r12
mov qword [rbx + 0x4ca0], r12
call fcn.140043470
lea rcx, [rbx + 0x5058]
call fcn.140042f40
mov r8, qword [rbx + 0x5088]
test r8, r8
je 0x14001e2b3
mov rdi, qword [0x140141918]
mov qword [rbx + 0x5080], r12
test rdi, rdi
je 0x14001e2a3
movsx rdx, word [rdi + 0x6328]
lea rcx, [rdi + 0x632c]
mov r9d, dword [rdi + 0x40a8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14001e299
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6328], cx
movsx rax, cx
lea rcx, [rdi + 0x632c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6324]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x5088], r12
mov r8, qword [rbx + 0x5098]
test r8, r8
je 0x14001e344
mov rdi, qword [0x140141918]
mov qword [rbx + 0x5090], r12
test rdi, rdi
je 0x14001e334
movsx rdx, word [rdi + 0x6328]
lea rcx, [rdi + 0x632c]
mov r9d, dword [rdi + 0x40a8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14001e32a
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6328], cx
movsx rax, cx
lea rcx, [rdi + 0x632c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6324]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x5098], r12
mov edi, r12d
cmp dword [rbx + 0x4fd8], r12d
jle 0x14001e375
movsxd rax, edi
lea rcx, [rax + rax*4]
mov rax, qword [rbx + 0x4fe0]
lea rcx, [rcx + 3]
lea rcx, [rax + rcx*8]
call fcn.1400150e0
inc edi
cmp edi, dword [rbx + 0x4fd8]
jl 0x14001e350
mov r8, qword [rbx + 0x4fe0]
test r8, r8
je 0x14001e406
mov rdi, qword [0x140141918]
mov qword [rbx + 0x4fd8], r12
test rdi, rdi
je 0x14001e3f6
movsx rdx, word [rdi + 0x6328]
lea rcx, [rdi + 0x632c]
mov r9d, dword [rdi + 0x40a8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14001e3ec
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6328], cx
movsx rax, cx
lea rcx, [rdi + 0x632c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6324]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x4fe0], r12
lea rcx, [rbx + 0x5008]
call fcn.140043090
mov edi, r12d
mov rsi, qword [rsp + 0x60]
cmp dword [rbx + 0x4ff8], r12d
jle 0x14001e443
movsxd rax, edi
imul rcx, rax, 0x88
add rcx, qword [rbx + 0x5000]
call fcn.140043cb0
inc edi
cmp edi, dword [rbx + 0x4ff8]
jl 0x14001e423
mov r8, qword [rbx + 0x5000]
test r8, r8
je 0x14001e4d4
mov rdi, qword [0x140141918]
mov qword [rbx + 0x4ff8], r12
test rdi, rdi
je 0x14001e4c4
movsx rdx, word [rdi + 0x6328]
lea rcx, [rdi + 0x632c]
mov r9d, dword [rdi + 0x40a8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14001e4ba
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6328], cx
movsx rax, cx
lea rcx, [rdi + 0x632c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6324]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x5000], r12
lea rcx, [rbx + 0x5040]
call fcn.1400010e0
lea rcx, [rbx + 0x6098]
call fcn.1400010e0
lea rcx, [rbx + 0x60a8]
call fcn.1400010e0
lea rcx, [rbx + 0x50e0]
call fcn.1400010e0
lea rcx, [rbx + 0x50f0]
call fcn.1400010e0
lea rcx, [rbx + 0x5100]
call fcn.1400010e0
lea rcx, [rbx + 0x5f68]
mov dword [rbx + 0x5f60], r12d
call fcn.1400010e0
lea rcx, [rbx + 0x61b0]
call fcn.1400010e0
mov r8, qword [rbx + 0x61a8]
test r8, r8
je 0x14001e5cd
mov rdi, qword [0x140141918]
mov qword [rbx + 0x61a0], r12
test rdi, rdi
je 0x14001e5bd
movsx r10, word [rdi + 0x6328]
lea rdx, [rdi + 0x632c]
mov r9d, dword [rdi + 0x40a8]
lea rdx, [rdx + r10*8]
cmp dword [rdx], r9d
je 0x14001e5b3
lea ecx, [r10 + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
lea rdx, [rdi + 0x632c]
sub ecx, eax
mov word [rdi + 0x6328], cx
movsx rax, cx
lea rdx, [rdx + rax*8]
mov dword [rdx], r9d
mov dword [rdx + 4], r12d
inc word [rdx + 6]
inc dword [rdi + 0x6324]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x61a8], r12
cmp qword [rbx + 0x6248], r12
je 0x14001e5fd
mov rdi, qword [rbx + 0x6248]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x14001e5f6
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x6248], r12
lea rcx, [rbx + 0x6250]
call fcn.1400010e0
lea rcx, [rbx + 0x6288]
call fcn.1400010e0
lea rcx, [rbx + 0x6298]
call fcn.1400010e0
mov rdi, qword [rsp + 0x30]
mov dword [rbx + 0x62a8], r12d
mov byte [rbx], r12b
add rsp, 0x38
pop r12
pop rbx
ret