Function at 0x18000cd20
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 0x18000cd78
cmp byte [rcx + 1], 0
je 0x18000cd78
mov byte [rax + 0x18], 0
mov rbx, qword [rcx + 0x50]
test rbx, rbx
je 0x18000cd78
mov rcx, rbx
call fcn.180027d80
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000cd6f
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 0x18000d53d
cmp byte [rdi + 0x46f9], r12b
je 0x18000cdfe
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x18000cdfe
mov rsi, qword [0x18004bcb8]
mov qword [0x18004bcb8], rdi
mov dword [rdi + 0x46fc], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.18001aab0
mov rbp, rax
lea rdx, [0x180042c4c]
mov rcx, rbx
call fcn.1800071d0
mov rbx, rax
test rax, rax
je 0x18000cdf7
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 [0x18004bcb8], rsi
mov ebx, r12d
cmp dword [rdi + 0x4740], r12d
jle 0x18000ce40
mov rsi, r12
nop dword [rax]
mov rcx, qword [rdi + 0x4748]
cmp dword [rsi + rcx + 4], 6
jne 0x18000ce32
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 0x18000ce10
mov esi, r12d
cmp dword [rdi + 0x31d0], r12d
jle 0x18000ce91
mov r14, r12
nop
mov rax, qword [rdi + 0x31d8]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x18000ce83
mov rcx, rbx
call fcn.180009c10
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000ce7a
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 0x18000ce50
mov rcx, qword [rdi + 0x31d8]
test rcx, rcx
je 0x18000cec3
mov qword [rdi + 0x31d0], r12
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000ceb6
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 0x18000cef5
mov qword [rdi + 0x31e0], r12
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000cee8
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 0x18000cf27
mov qword [rdi + 0x31f0], r12
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000cf1a
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 0x18000cf60
mov qword [rdi + 0x3200], r12
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000cf53
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 0x18000cf92
mov qword [rdi + 0x3210], r12
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000cf85
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 0x18000cfee
mov qword [rdi + 0x33a0], r12
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000cfe1
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 0x18000d020
mov qword [rdi + 0x33b0], r12
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000d013
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 0x18000d052
mov qword [rdi + 0x33c0], r12
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000d045
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 0x18000d084
mov qword [rdi + 0x3400], r12
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000d077
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 0x18000d0b6
mov qword [rdi + 0x3410], r12
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000d0a9
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 0x18000d186
mov r14, r12
nop dword [rax]
mov rax, qword [rdi + 0x3430]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x18000d174
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x18000d110
mov rcx, rsi
call fcn.180005ce0
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000d107
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 0x18000d13d
mov rcx, rsi
call fcn.180005ce0
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000d133
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, [0x180004260]
mov edx, 0x10
mov r8d, 2
call fcn.18003c0ac
nop
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000d16b
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 0x18000d0d0
mov rcx, qword [rdi + 0x3430]
test rcx, rcx
je 0x18000d1b8
mov qword [rdi + 0x3428], r12
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000d1ab
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.18001b9b0
mov rcx, qword [rdi + 0x3728]
test rcx, rcx
je 0x18000d1f6
mov qword [rdi + 0x3720], r12
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000d1e9
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 0x18000d228
mov qword [rdi + 0x3730], r12
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000d21b
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 0x18000d278
mov rsi, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x3680]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x18000d26a
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000d263
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 0x18000d240
mov rcx, qword [rdi + 0x3680]
test rcx, rcx
je 0x18000d2aa
mov qword [rdi + 0x3678], r12
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000d29d
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.18001bb30
mov esi, r12d
cmp dword [rdi + 0x3698], r12d
jle 0x18000d315
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x36a0]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.180027820
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x18000d307
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000d300
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 0x18000d2d0
mov rcx, qword [rdi + 0x36a0]
test rcx, rcx
je 0x18000d347
mov qword [rdi + 0x3698], r12
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000d33a
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 0x18000d379
mov qword [rdi + 0x36e0], r12
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000d36c
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 0x18000d3ab
mov qword [rdi + 0x46b8], r12
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000d39e
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 0x18000d3dd
mov qword [rdi + 0x46c8], r12
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000d3d0
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 0x18000d40f
mov qword [rdi + 0x3758], r12
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000d402
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 0x18000d441
mov qword [rdi + 0x3768], r12
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000d434
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 0x18000d473
mov qword [rdi + 0x3778], r12
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000d466
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 0x18000d4a5
mov qword [rdi + 0x4720], r12
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000d498
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 0x18000d4d7
mov qword [rdi + 0x4710], r12
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000d4ca
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 0x18000d508
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 0x18000d501
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 0x18000d53a
mov qword [rdi + 0x4768], r12
mov rax, qword [0x18004bcb8]
test rax, rax
je 0x18000d52d
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