Function at 0x18000dcb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
mov rax, qword [rcx + 0x50]
test rax, rax
je 0x18000dd08
cmp byte [rcx + 1], 0
je 0x18000dd08
mov byte [rax + 0x18], 0
mov rbx, qword [rcx + 0x50]
test rbx, rbx
je 0x18000dd08
mov rcx, rbx
call fcn.180029960
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000dcff
dec dword [rax + 0x158]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r12d, r12d
mov qword [rdi + 0x50], r12
cmp byte [rdi], r12b
je 0x18000e4cd
cmp byte [rdi + 0x46f9], r12b
je 0x18000dd8e
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x18000dd8e
mov rsi, qword [0x18005def8]
mov qword [0x18005def8], rdi
mov dword [rdi + 0x46fc], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.18001c290
mov rbp, rax
lea rdx, [0x18004efd0]
mov rcx, rbx
call fcn.180007f10
mov rbx, rax
test rax, rax
je 0x18000dd87
mov r9, rax
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [0x18005def8], rsi
mov ebx, r12d
cmp dword [rdi + 0x4740], r12d
jle 0x18000ddd0
mov rsi, r12
nop dword [rax]
mov rcx, qword [rdi + 0x4748]
cmp dword [rsi + rcx + 4], 6
jne 0x18000ddc2
mov rax, qword [rsi + rcx + 0x10]
movsxd rdx, ebx
shl rdx, 5
add rdx, rcx
mov rcx, rdi
call rax
inc ebx
add rsi, 0x20
cmp ebx, dword [rdi + 0x4740]
jl 0x18000dda0
mov esi, r12d
cmp dword [rdi + 0x31d0], r12d
jle 0x18000de21
mov r14, r12
nop
mov rax, qword [rdi + 0x31d8]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x18000de13
mov rcx, rbx
call fcn.18000a890
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000de0a
dec dword [rax + 0x158]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add r14, 8
cmp esi, dword [rdi + 0x31d0]
jl 0x18000dde0
mov rcx, qword [rdi + 0x31d8]
test rcx, rcx
je 0x18000de53
mov qword [rdi + 0x31d0], r12
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000de46
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x31d8], r12
mov rcx, qword [rdi + 0x31e8]
test rcx, rcx
je 0x18000de85
mov qword [rdi + 0x31e0], r12
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000de78
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x31e8], r12
mov rcx, qword [rdi + 0x31f8]
test rcx, rcx
je 0x18000deb7
mov qword [rdi + 0x31f0], r12
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000deaa
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x31f8], r12
mov qword [rdi + 0x3230], r12
mov rcx, qword [rdi + 0x3208]
test rcx, rcx
je 0x18000def0
mov qword [rdi + 0x3200], r12
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000dee3
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3208], r12
mov rcx, qword [rdi + 0x3218]
test rcx, rcx
je 0x18000df22
mov qword [rdi + 0x3210], r12
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000df15
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3218], r12
mov qword [rdi + 0x3438], r12
mov qword [rdi + 0x3240], r12
mov qword [rdi + 0x3238], r12
mov qword [rdi + 0x32c8], r12
mov qword [rdi + 0x32b0], r12
mov qword [rdi + 0x3248], r12
mov rcx, qword [rdi + 0x33a8]
test rcx, rcx
je 0x18000df7e
mov qword [rdi + 0x33a0], r12
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000df71
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x33a8], r12
mov rcx, qword [rdi + 0x33b8]
test rcx, rcx
je 0x18000dfb0
mov qword [rdi + 0x33b0], r12
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000dfa3
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x33b8], r12
mov rcx, qword [rdi + 0x33c8]
test rcx, rcx
je 0x18000dfe2
mov qword [rdi + 0x33c0], r12
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000dfd5
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x33c8], r12
mov rcx, qword [rdi + 0x3408]
test rcx, rcx
je 0x18000e014
mov qword [rdi + 0x3400], r12
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000e007
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3408], r12
mov rcx, qword [rdi + 0x3418]
test rcx, rcx
je 0x18000e046
mov qword [rdi + 0x3410], r12
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000e039
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3418], r12
mov ebp, r12d
cmp dword [rdi + 0x3428], r12d
jle 0x18000e116
mov r14, r12
nop dword [rax]
mov rax, qword [rdi + 0x3430]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x18000e104
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x18000e0a0
mov rcx, rsi
call fcn.180006770
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000e097
dec dword [rax + 0x158]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [rbx + 0x40]
test rsi, rsi
je 0x18000e0cd
mov rcx, rsi
call fcn.180006770
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000e0c3
dec dword [rax + 0x158]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbx + 0x78]
lea r9, [0x180004b70]
mov edx, 0x10
mov r8d, 2
call fcn.18004c1f8
nop
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000e0fb
dec dword [rax + 0x158]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x3428]
jl 0x18000e060
mov rcx, qword [rdi + 0x3430]
test rcx, rcx
je 0x18000e148
mov qword [rdi + 0x3428], r12
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000e13b
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3430], r12
lea rcx, [rdi + 0x36f8]
call fcn.18001cff0
mov rcx, qword [rdi + 0x3728]
test rcx, rcx
je 0x18000e186
mov qword [rdi + 0x3720], r12
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000e179
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3728], r12
mov rcx, qword [rdi + 0x3738]
test rcx, rcx
je 0x18000e1b8
mov qword [rdi + 0x3730], r12
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000e1ab
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3738], r12
mov ebx, r12d
cmp dword [rdi + 0x3678], r12d
jle 0x18000e208
mov rsi, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x3680]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x18000e1fa
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000e1f3
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x3678]
jl 0x18000e1d0
mov rcx, qword [rdi + 0x3680]
test rcx, rcx
je 0x18000e23a
mov qword [rdi + 0x3678], r12
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000e22d
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3680], r12
lea rcx, [rdi + 0x36a8]
call fcn.18001d170
mov esi, r12d
cmp dword [rdi + 0x3698], r12d
jle 0x18000e2a5
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x36a0]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.180028f70
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x18000e297
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000e290
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x3698]
jl 0x18000e260
mov rcx, qword [rdi + 0x36a0]
test rcx, rcx
je 0x18000e2d7
mov qword [rdi + 0x3698], r12
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000e2ca
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x36a0], r12
mov rcx, qword [rdi + 0x36e8]
test rcx, rcx
je 0x18000e309
mov qword [rdi + 0x36e0], r12
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000e2fc
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x36e8], r12
mov rcx, qword [rdi + 0x46c0]
test rcx, rcx
je 0x18000e33b
mov qword [rdi + 0x46b8], r12
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000e32e
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x46c0], r12
mov rcx, qword [rdi + 0x46d0]
test rcx, rcx
je 0x18000e36d
mov qword [rdi + 0x46c8], r12
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000e360
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x46d0], r12
mov rcx, qword [rdi + 0x3760]
test rcx, rcx
je 0x18000e39f
mov qword [rdi + 0x3758], r12
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000e392
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3760], r12
mov rcx, qword [rdi + 0x3770]
test rcx, rcx
je 0x18000e3d1
mov qword [rdi + 0x3768], r12
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000e3c4
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3770], r12
mov rcx, qword [rdi + 0x3780]
test rcx, rcx
je 0x18000e403
mov qword [rdi + 0x3778], r12
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000e3f6
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3780], r12
mov rcx, qword [rdi + 0x4728]
test rcx, rcx
je 0x18000e435
mov qword [rdi + 0x4720], r12
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000e428
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4728], r12
mov rcx, qword [rdi + 0x4718]
test rcx, rcx
je 0x18000e467
mov qword [rdi + 0x4710], r12
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000e45a
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4718], r12
cmp qword [rdi + 0x4760], 0
je 0x18000e498
mov rbx, qword [rdi + 0x4760]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x18000e491
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x4760], r12
mov rcx, qword [rdi + 0x4770]
test rcx, rcx
je 0x18000e4ca
mov qword [rdi + 0x4768], r12
mov rax, qword [0x18005def8]
test rax, rax
je 0x18000e4bd
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4770], r12
mov byte [rdi], 0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret