Function at 0x18000c060
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, qword [0x18030c150]
mov rax, qword [rdi + 0x38]
test rax, rax
je 0x18000c0bc
cmp byte [rdi + 1], 0
je 0x18000c0bc
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x38]
test rbx, rbx
je 0x18000c0bc
mov rcx, rbx
call fcn.18003cb90
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c0b3
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r12d, r12d
mov qword [rdi + 0x38], r12
mov rcx, qword [rdi + 0x3db0]
test rcx, rcx
je 0x18000c0f5
mov qword [rdi + 0x3da8], r12
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c0e8
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3db0], r12
cmp byte [rdi], r12b
je 0x18000c951
cmp byte [rdi + 0x5e28], r12b
je 0x18000c166
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x18000c166
mov rax, qword [0x18030c150]
mov dword [rax + 0x5e2c], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.180022720
mov rsi, rax
lea rdx, [0x1802b6b3c]
mov rcx, rbx
call fcn.180008c20
mov rbx, rax
test rax, rax
je 0x18000c166
mov r9, rax
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, rsi
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 rbp, qword [0x18030c150]
mov ebx, r12d
cmp dword [rbp + 0x4a30], r12d
jle 0x18000c19e
mov rsi, r12
nop dword [rax]
mov rcx, qword [rbp + 0x4a38]
mov rcx, qword [rsi + rcx]
call fcn.180024fe0
inc ebx
lea rsi, [rsi + 8]
cmp ebx, dword [rbp + 0x4a30]
jl 0x18000c180
mov esi, r12d
cmp dword [rdi + 0x5de8], r12d
jle 0x18000c1f2
mov rbp, r12
nop dword [rax]
mov rax, qword [rdi + 0x5df0]
mov rbx, qword [rax + rbp + 8]
test rbx, rbx
je 0x18000c1e4
mov rcx, rbx
call fcn.180026bb0
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c1db
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add rbp, 0x10
cmp esi, dword [rdi + 0x5de8]
jl 0x18000c1b0
mov ebx, r12d
cmp dword [rdi + 0x5e70], r12d
jle 0x18000c231
mov rsi, r12
mov rcx, qword [rdi + 0x5e78]
cmp dword [rsi + rcx + 4], 6
jne 0x18000c223
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 + 0x5e70]
jl 0x18000c201
mov esi, r12d
cmp dword [rdi + 0x3fd8], r12d
jle 0x18000c281
mov r14, r12
mov rax, qword [rdi + 0x3fe0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x18000c273
mov rcx, rbx
call fcn.18000cf20
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c26a
dec dword [rax + 0xf4]
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 + 0x3fd8]
jl 0x18000c240
mov rcx, qword [rdi + 0x3fe0]
test rcx, rcx
je 0x18000c2b3
mov qword [rdi + 0x3fd8], r12
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c2a6
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fe0], r12
mov rcx, qword [rdi + 0x3ff0]
test rcx, rcx
je 0x18000c2e5
mov qword [rdi + 0x3fe8], r12
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c2d8
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ff0], r12
mov rcx, qword [rdi + 0x4000]
test rcx, rcx
je 0x18000c317
mov qword [rdi + 0x3ff8], r12
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c30a
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4000], r12
mov qword [rdi + 0x4038], r12
mov rcx, qword [rdi + 0x4010]
test rcx, rcx
je 0x18000c350
mov qword [rdi + 0x4008], r12
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c343
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4010], r12
mov rcx, qword [rdi + 0x4020]
test rcx, rcx
je 0x18000c382
mov qword [rdi + 0x4018], r12
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c375
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4020], r12
mov qword [rdi + 0x4aa8], r12
mov qword [rdi + 0x4048], r12
mov qword [rdi + 0x4040], r12
mov qword [rdi + 0x40d0], r12
mov qword [rdi + 0x40b8], r12
mov qword [rdi + 0x4050], r12
lea rcx, [rdi + 0x4770]
call fcn.180006a90
mov rcx, qword [rdi + 0x49b0]
test rcx, rcx
je 0x18000c3ea
mov qword [rdi + 0x49a8], r12
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c3dd
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49b0], r12
mov rcx, qword [rdi + 0x49c0]
test rcx, rcx
je 0x18000c41c
mov qword [rdi + 0x49b8], r12
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c40f
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49c0], r12
mov rcx, qword [rdi + 0x49d0]
test rcx, rcx
je 0x18000c44e
mov qword [rdi + 0x49c8], r12
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c441
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49d0], r12
mov rcx, qword [rdi + 0x4a10]
test rcx, rcx
je 0x18000c480
mov qword [rdi + 0x4a08], r12
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c473
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4a10], r12
mov rcx, qword [rdi + 0x4a20]
test rcx, rcx
je 0x18000c4b2
mov qword [rdi + 0x4a18], r12
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c4a5
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4a20], r12
mov qword [rdi + 0x4a58], r12
mov qword [rdi + 0x4a50], r12
mov qword [rdi + 0x4a48], r12
mov ebx, r12d
cmp dword [rdi + 0x4a30], r12d
jle 0x18000c4fe
mov rsi, r12
nop word [rax + rax]
mov rcx, qword [rdi + 0x4a38]
mov rcx, qword [rsi + rcx]
call fcn.180030540
inc ebx
lea rsi, [rsi + 8]
cmp ebx, dword [rdi + 0x4a30]
jl 0x18000c4e0
mov rcx, qword [rdi + 0x4a38]
test rcx, rcx
je 0x18000c530
mov qword [rdi + 0x4a30], r12
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c523
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4a38], r12
lea rcx, [rdi + 0x4d90]
call fcn.18002eff0
mov rcx, qword [rdi + 0x4dc0]
test rcx, rcx
je 0x18000c56e
mov qword [rdi + 0x4db8], r12
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c561
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4dc0], r12
mov rcx, qword [rdi + 0x4dd0]
test rcx, rcx
je 0x18000c5a0
mov qword [rdi + 0x4dc8], r12
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c593
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4dd0], r12
mov ebx, r12d
cmp dword [rdi + 0x4d10], r12d
jle 0x18000c5e8
mov rsi, r12
nop
mov rax, qword [rdi + 0x4d18]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x18000c5da
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c5d3
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4d10]
jl 0x18000c5b0
mov rcx, qword [rdi + 0x4d18]
test rcx, rcx
je 0x18000c61a
mov qword [rdi + 0x4d10], r12
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c60d
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d18], r12
lea rcx, [rdi + 0x4d40]
call fcn.18002f170
mov esi, r12d
cmp dword [rdi + 0x4d30], r12d
jle 0x18000c685
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x4d38]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.18003bfb0
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x18000c677
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c670
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4d30]
jl 0x18000c640
mov rcx, qword [rdi + 0x4d38]
test rcx, rcx
je 0x18000c6b7
mov qword [rdi + 0x4d30], r12
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c6aa
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d38], r12
mov rcx, qword [rdi + 0x4d80]
test rcx, rcx
je 0x18000c6e9
mov qword [rdi + 0x4d78], r12
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c6dc
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d80], r12
mov rcx, qword [rdi + 0x5da8]
test rcx, rcx
je 0x18000c71b
mov qword [rdi + 0x5da0], r12
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c70e
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5da8], r12
mov rcx, qword [rdi + 0x5db8]
test rcx, rcx
je 0x18000c74d
mov qword [rdi + 0x5db0], r12
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c740
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5db8], r12
mov rcx, qword [rdi + 0x4e20]
test rcx, rcx
je 0x18000c77f
mov qword [rdi + 0x4e18], r12
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c772
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4e20], r12
mov rcx, qword [rdi + 0x4e30]
test rcx, rcx
je 0x18000c7b1
mov qword [rdi + 0x4e28], r12
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c7a4
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4e30], r12
mov rcx, qword [rdi + 0x4e40]
test rcx, rcx
je 0x18000c7e3
mov qword [rdi + 0x4e38], r12
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c7d6
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4e40], r12
mov dword [rdi + 0x5c90], r12d
mov rcx, qword [rdi + 0x5ca0]
test rcx, rcx
je 0x18000c81c
mov qword [rdi + 0x5c98], r12
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c80f
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ca0], r12
mov rcx, qword [rdi + 0x5e58]
test rcx, rcx
je 0x18000c84e
mov qword [rdi + 0x5e50], r12
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c841
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5e58], r12
mov rcx, qword [rdi + 0x5e48]
test rcx, rcx
je 0x18000c880
mov qword [rdi + 0x5e40], r12
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c873
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5e48], r12
cmp qword [rdi + 0x5ed8], 0
je 0x18000c8b1
mov rbx, qword [rdi + 0x5ed8]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x18000c8aa
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5ed8], r12
mov rcx, qword [rdi + 0x5ee8]
test rcx, rcx
je 0x18000c8e3
mov qword [rdi + 0x5ee0], r12
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c8d6
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ee8], r12
mov rcx, qword [rdi + 0x5f20]
test rcx, rcx
je 0x18000c915
mov qword [rdi + 0x5f18], r12
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c908
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5f20], r12
mov rcx, qword [rdi + 0x5f30]
test rcx, rcx
je 0x18000c947
mov qword [rdi + 0x5f28], r12
mov rax, qword [0x18030c150]
test rax, rax
je 0x18000c93a
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5f30], r12
mov dword [rdi + 0x5f38], r12d
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