Function at 0x14000b160
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
mov rax, qword [rcx + 0xa8]
test rax, rax
je 0x14000b24b
cmp byte [rcx + 1], 0
je 0x14000b24b
mov byte [rax + 0x18], 0
mov rbx, qword [rcx + 0xa8]
test rbx, rbx
je 0x14000b24b
mov rcx, rbx
call fcn.140024410
nop
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x14000b1da
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b1cd
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x14000b202
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b1f5
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14000b22a
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b21d
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b23c
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor r15d, r15d
mov qword [rdi + 0xa8], r15
cmp byte [rdi], r15b
je 0x14000ba3f
cmp byte [rdi + 0x3061], r15b
je 0x14000b2d3
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x14000b2d3
mov rsi, qword [0x14034db30]
mov qword [0x14034db30], rdi
mov dword [rdi + 0x3064], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.140017ca0
mov rbp, rax
lea rdx, [0x14030ce70]
mov rcx, rbx
call fcn.140006b80
mov rbx, rax
test rax, rax
je 0x14000b2cc
mov r9, rax
mov r8, qword [rsp + 0x40]
lea edx, [r15 + 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 [0x14034db30], rsi
mov ebx, r15d
cmp dword [rdi + 0x30a8], r15d
jle 0x14000b312
mov rsi, r15
mov rcx, qword [rdi + 0x30b0]
cmp dword [rsi + rcx + 4], 6
jne 0x14000b304
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 + 0x30a8]
jl 0x14000b2e2
mov esi, r15d
cmp dword [rdi + 0x1bb0], r15d
jle 0x14000b377
mov r14, r15
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdi + 0x1bb8]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x14000b369
mov rcx, rbx
call fcn.140008340
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b35a
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc esi
add r14, 8
cmp esi, dword [rdi + 0x1bb0]
jl 0x14000b330
mov rcx, qword [rdi + 0x1bb8]
test rcx, rcx
je 0x14000b3af
mov qword [rdi + 0x1bb0], r15
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b39c
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1bb8], r15
mov rcx, qword [rdi + 0x1bc8]
test rcx, rcx
je 0x14000b3e7
mov qword [rdi + 0x1bc0], r15
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b3d4
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1bc8], r15
mov rcx, qword [rdi + 0x1bd8]
test rcx, rcx
je 0x14000b41f
mov qword [rdi + 0x1bd0], r15
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b40c
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1bd8], r15
mov qword [rdi + 0x1c10], r15
mov rcx, qword [rdi + 0x1be8]
test rcx, rcx
je 0x14000b45e
mov qword [rdi + 0x1be0], r15
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b44b
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1be8], r15
mov rcx, qword [rdi + 0x1bf8]
test rcx, rcx
je 0x14000b496
mov qword [rdi + 0x1bf0], r15
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b483
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1bf8], r15
mov qword [rdi + 0x1dc8], r15
mov qword [rdi + 0x1c20], r15
mov qword [rdi + 0x1c18], r15
mov qword [rdi + 0x1ca0], r15
mov qword [rdi + 0x1c88], r15
mov qword [rdi + 0x1c28], r15
mov rcx, qword [rdi + 0x1d40]
test rcx, rcx
je 0x14000b4f8
mov qword [rdi + 0x1d38], r15
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b4e5
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1d40], r15
mov rcx, qword [rdi + 0x1d50]
test rcx, rcx
je 0x14000b530
mov qword [rdi + 0x1d48], r15
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b51d
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1d50], r15
mov rcx, qword [rdi + 0x1d60]
test rcx, rcx
je 0x14000b568
mov qword [rdi + 0x1d58], r15
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b555
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1d60], r15
mov rcx, qword [rdi + 0x1da0]
test rcx, rcx
je 0x14000b5a0
mov qword [rdi + 0x1d98], r15
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b58d
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1da0], r15
mov rcx, qword [rdi + 0x1db0]
test rcx, rcx
je 0x14000b5d8
mov qword [rdi + 0x1da8], r15
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b5c5
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1db0], r15
mov ebp, r15d
cmp dword [rdi + 0x1db8], r15d
jle 0x14000b6b6
mov r14, r15
nop dword [rax + rax]
mov rax, qword [rdi + 0x1dc0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x14000b6a4
mov rsi, qword [rbx + 0x30]
test rsi, rsi
je 0x14000b636
mov rcx, rsi
call fcn.1400055e0
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b627
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x14000b669
mov rcx, rsi
call fcn.1400055e0
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b659
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
lea rcx, [rbx + 0x70]
lea r9, [0x1400185a0]
mov edx, 0x10
lea r8d, [rdx - 0xe]
call fcn.14007e4e0
nop
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b695
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x1db8]
jl 0x14000b5f0
mov rcx, qword [rdi + 0x1dc0]
test rcx, rcx
je 0x14000b6ee
mov qword [rdi + 0x1db8], r15
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b6db
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1dc0], r15
lea rcx, [rdi + 0x2060]
call fcn.1400186f0
mov rcx, qword [rdi + 0x2090]
test rcx, rcx
je 0x14000b732
mov qword [rdi + 0x2088], r15
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b71f
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x2090], r15
mov rcx, qword [rdi + 0x20a0]
test rcx, rcx
je 0x14000b76a
mov qword [rdi + 0x2098], r15
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b757
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x20a0], r15
lea rcx, [rdi + 0x2000]
call fcn.140018890
mov esi, r15d
cmp dword [rdi + 0x2028], r15d
jle 0x14000b7db
mov rbp, r15
nop word [rax + rax]
mov rbx, qword [rdi + 0x2030]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.140023df0
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x14000b7cd
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b7c0
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x2028]
jl 0x14000b790
mov rcx, qword [rdi + 0x2030]
test rcx, rcx
je 0x14000b813
mov qword [rdi + 0x2028], r15
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b800
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x2030], r15
mov rcx, qword [rdi + 0x2050]
test rcx, rcx
je 0x14000b84b
mov qword [rdi + 0x2048], r15
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b838
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x2050], r15
mov rcx, qword [rdi + 0x3038]
test rcx, rcx
je 0x14000b883
mov qword [rdi + 0x3030], r15
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b870
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3038], r15
mov rcx, qword [rdi + 0x3048]
test rcx, rcx
je 0x14000b8bb
mov qword [rdi + 0x3040], r15
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b8a8
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3048], r15
mov rcx, qword [rdi + 0x20c8]
test rcx, rcx
je 0x14000b8f3
mov qword [rdi + 0x20c0], r15
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b8e0
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x20c8], r15
mov rcx, qword [rdi + 0x20d8]
test rcx, rcx
je 0x14000b92b
mov qword [rdi + 0x20d0], r15
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b918
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x20d8], r15
mov rcx, qword [rdi + 0x20e8]
test rcx, rcx
je 0x14000b963
mov qword [rdi + 0x20e0], r15
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b950
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x20e8], r15
mov rcx, qword [rdi + 0x3090]
test rcx, rcx
je 0x14000b99b
mov qword [rdi + 0x3088], r15
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b988
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3090], r15
mov rcx, qword [rdi + 0x3080]
test rcx, rcx
je 0x14000b9d3
mov qword [rdi + 0x3078], r15
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000b9c0
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3080], r15
cmp qword [rdi + 0x30c8], 0
je 0x14000ba04
mov rbx, qword [rdi + 0x30c8]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x14000b9fd
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x30c8], r15
mov rcx, qword [rdi + 0x30d8]
test rcx, rcx
je 0x14000ba3c
mov qword [rdi + 0x30d0], r15
mov rax, qword [0x14034db30]
test rax, rax
je 0x14000ba29
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x30d8], r15
mov byte [rdi], 0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret