Function at 0x140009030
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 rbx, rcx
mov rax, qword [rcx + 0xa8]
test rax, rax
je 0x14000908f
cmp byte [rcx + 1], 0
je 0x14000908f
mov byte [rax], 0
mov rdi, qword [rcx + 0xa8]
test rdi, rdi
je 0x14000908f
mov rcx, rdi
call fcn.140021af0
mov rax, qword [0x140062d68]
test rax, rax
je 0x140009086
dec dword [rax + 0x3b4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r15d, r15d
mov qword [rbx + 0xa8], r15
cmp byte [rbx], r15b
je 0x140009772
cmp byte [rbx + 0x3029], r15b
je 0x140009117
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140009117
mov rsi, qword [0x140062d68]
mov qword [0x140062d68], rbx
mov dword [rbx + 0x302c], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.140015710
mov rbp, rax
lea rdx, [0x140055a94]
mov rcx, rdi
call fcn.140004f40
mov rdi, rax
test rax, rax
je 0x140009110
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, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [0x140062d68], rsi
mov edi, r15d
cmp dword [rbx + 0x3060], r15d
jle 0x140009161
mov rsi, r15
nop word [rax + rax]
mov rdx, qword [rbx + 0x3068]
cmp dword [rsi + rdx], 6
jne 0x140009153
mov r8, qword [rsi + rdx + 8]
movsxd rax, edi
lea rcx, [rax + rax*2]
lea rdx, [rdx + rcx*8]
mov rcx, rbx
call r8
inc edi
add rsi, 0x18
cmp edi, dword [rbx + 0x3060]
jl 0x140009130
mov ebp, r15d
cmp dword [rbx + 0x1a30], r15d
jle 0x140009296
mov r14, r15
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbx + 0x1a38]
mov rdi, qword [r14 + rax]
test rdi, rdi
je 0x140009284
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400091b4
mov rax, qword [0x140062d68]
test rax, rax
je 0x1400091ae
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, r15d
cmp dword [rdi + 0x2b8], r15d
je 0x1400091e0
movsxd rax, esi
imul rcx, rax, 0x88
add rcx, qword [rdi + 0x2c0]
call fcn.140006680
inc esi
cmp esi, dword [rdi + 0x2b8]
jne 0x1400091c0
lea rcx, [rdi + 0x2d8]
call fcn.140003710
nop
mov rcx, qword [rdi + 0x2c0]
test rcx, rcx
je 0x140009212
mov rax, qword [0x140062d68]
test rax, rax
je 0x14000920b
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rdi + 0x2b0]
test rcx, rcx
je 0x140009237
mov rax, qword [0x140062d68]
test rax, rax
je 0x140009230
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rdi + 0xd8]
call fcn.1400065b0
nop
mov rcx, qword [rdi + 0xd0]
test rcx, rcx
je 0x140009269
mov rax, qword [0x140062d68]
test rax, rax
je 0x140009262
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rax, qword [0x140062d68]
test rax, rax
je 0x14000927b
dec dword [rax + 0x3b4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebp
add r14, 8
cmp ebp, dword [rbx + 0x1a30]
jl 0x140009180
mov rcx, qword [rbx + 0x1a38]
test rcx, rcx
je 0x1400092c8
mov qword [rbx + 0x1a30], r15
mov rax, qword [0x140062d68]
test rax, rax
je 0x1400092bb
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1a38], r15
mov rcx, qword [rbx + 0x1a48]
test rcx, rcx
je 0x1400092fa
mov qword [rbx + 0x1a40], r15
mov rax, qword [0x140062d68]
test rax, rax
je 0x1400092ed
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1a48], r15
mov rcx, qword [rbx + 0x1a58]
test rcx, rcx
je 0x14000932c
mov qword [rbx + 0x1a50], r15
mov rax, qword [0x140062d68]
test rax, rax
je 0x14000931f
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1a58], r15
mov qword [rbx + 0x1a88], r15
mov rcx, qword [rbx + 0x1a68]
test rcx, rcx
je 0x140009365
mov qword [rbx + 0x1a60], r15
mov rax, qword [0x140062d68]
test rax, rax
je 0x140009358
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1a68], r15
mov rcx, qword [rbx + 0x1a78]
test rcx, rcx
je 0x140009397
mov qword [rbx + 0x1a70], r15
mov rax, qword [0x140062d68]
test rax, rax
je 0x14000938a
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1a78], r15
mov qword [rbx + 0x1c08], r15
mov qword [rbx + 0x1aa0], r15
mov qword [rbx + 0x1a98], r15
mov qword [rbx + 0x1a90], r15
mov qword [rbx + 0x1b20], r15
mov qword [rbx + 0x1b08], r15
mov qword [rbx + 0x1aa8], r15
mov rcx, qword [rbx + 0x1bc0]
test rcx, rcx
je 0x1400093fa
mov qword [rbx + 0x1bb8], r15
mov rax, qword [0x140062d68]
test rax, rax
je 0x1400093ed
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1bc0], r15
mov rcx, qword [rbx + 0x1bd0]
test rcx, rcx
je 0x14000942c
mov qword [rbx + 0x1bc8], r15
mov rax, qword [0x140062d68]
test rax, rax
je 0x14000941f
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1bd0], r15
mov rcx, qword [rbx + 0x1be0]
test rcx, rcx
je 0x14000945e
mov qword [rbx + 0x1bd8], r15
mov rax, qword [0x140062d68]
test rax, rax
je 0x140009451
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1be0], r15
mov rcx, qword [rbx + 0x1bf0]
test rcx, rcx
je 0x140009490
mov qword [rbx + 0x1be8], r15
mov rax, qword [0x140062d68]
test rax, rax
je 0x140009483
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1bf0], r15
mov rcx, qword [rbx + 0x1c00]
test rcx, rcx
je 0x1400094c2
mov qword [rbx + 0x1bf8], r15
mov rax, qword [0x140062d68]
test rax, rax
je 0x1400094b5
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c00], r15
mov rcx, qword [rbx + 0x1dc8]
test rcx, rcx
je 0x1400094f4
mov qword [rbx + 0x1dc0], r15
mov rax, qword [0x140062d68]
test rax, rax
je 0x1400094e7
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1dc8], r15
mov rcx, qword [rbx + 0x1dd8]
test rcx, rcx
je 0x140009526
mov qword [rbx + 0x1dd0], r15
mov rax, qword [0x140062d68]
test rax, rax
je 0x140009519
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1dd8], r15
lea rcx, [rbx + 0x1de8]
call fcn.14001e9f0
lea rcx, [rbx + 0x1ec8]
call fcn.14001e9f0
lea rcx, [rbx + 0x2058]
call fcn.140016220
mov rcx, qword [rbx + 0x2088]
test rcx, rcx
je 0x14000957c
mov qword [rbx + 0x2080], r15
mov rax, qword [0x140062d68]
test rax, rax
je 0x14000956f
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2088], r15
mov rcx, qword [rbx + 0x2098]
test rcx, rcx
je 0x1400095ae
mov qword [rbx + 0x2090], r15
mov rax, qword [0x140062d68]
test rax, rax
je 0x1400095a1
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2098], r15
mov rcx, qword [rbx + 0x3000]
test rcx, rcx
je 0x1400095e0
mov qword [rbx + 0x2ff8], r15
mov rax, qword [0x140062d68]
test rax, rax
je 0x1400095d3
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3000], r15
mov rcx, qword [rbx + 0x3010]
test rcx, rcx
je 0x140009612
mov qword [rbx + 0x3008], r15
mov rax, qword [0x140062d68]
test rax, rax
je 0x140009605
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3010], r15
mov rcx, qword [rbx + 0x20c0]
test rcx, rcx
je 0x140009644
mov qword [rbx + 0x20b8], r15
mov rax, qword [0x140062d68]
test rax, rax
je 0x140009637
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x20c0], r15
mov rcx, qword [rbx + 0x20d0]
test rcx, rcx
je 0x140009676
mov qword [rbx + 0x20c8], r15
mov rax, qword [0x140062d68]
test rax, rax
je 0x140009669
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x20d0], r15
mov rcx, qword [rbx + 0x20e0]
test rcx, rcx
je 0x1400096a8
mov qword [rbx + 0x20d8], r15
mov rax, qword [0x140062d68]
test rax, rax
je 0x14000969b
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x20e0], r15
mov rcx, qword [rbx + 0x3058]
test rcx, rcx
je 0x1400096da
mov qword [rbx + 0x3050], r15
mov rax, qword [0x140062d68]
test rax, rax
je 0x1400096cd
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3058], r15
mov rcx, qword [rbx + 0x3048]
test rcx, rcx
je 0x14000970c
mov qword [rbx + 0x3040], r15
mov rax, qword [0x140062d68]
test rax, rax
je 0x1400096ff
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3048], r15
cmp qword [rbx + 0x3078], 0
je 0x14000973d
mov rdi, qword [rbx + 0x3078]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x140009736
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x3078], r15
mov rcx, qword [rbx + 0x3088]
test rcx, rcx
je 0x14000976f
mov qword [rbx + 0x3080], r15
mov rax, qword [0x140062d68]
test rax, rax
je 0x140009762
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3088], r15
mov byte [rbx], 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