Function at 0x1800092a0
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 [0x18006b1b0]
mov rax, qword [rdi + 0x58]
test rax, rax
je 0x1800092fc
cmp byte [rdi + 1], 0
je 0x1800092fc
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x58]
test rbx, rbx
je 0x1800092fc
mov rcx, rbx
call fcn.180024200
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x1800092f3
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 + 0x58], r12
mov rcx, qword [rdi + 0x3c48]
test rcx, rcx
je 0x180009335
mov qword [rdi + 0x3c40], r12
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x180009328
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3c48], r12
cmp byte [rdi], r12b
je 0x180009b68
cmp byte [rdi + 0x5b59], r12b
je 0x1800093a6
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x1800093a6
mov rax, qword [0x18006b1b0]
mov dword [rax + 0x5b5c], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.180016fd0
mov rsi, rax
lea rdx, [0x18003d658]
mov rcx, rbx
call fcn.180003540
mov rbx, rax
test rax, rax
je 0x1800093a6
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 ebx, r12d
cmp dword [rdi + 0x5ba0], r12d
jle 0x1800093f0
mov rsi, r12
nop word [rax + rax]
mov rcx, qword [rdi + 0x5ba8]
cmp dword [rsi + rcx + 4], 6
jne 0x1800093e2
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 + 0x5ba0]
jl 0x1800093c0
mov esi, r12d
cmp dword [rdi + 0x3e48], r12d
jle 0x180009441
mov r14, r12
nop
mov rax, qword [rdi + 0x3e50]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x180009433
mov rcx, rbx
call fcn.180005940
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x18000942a
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 + 0x3e48]
jl 0x180009400
mov rcx, qword [rdi + 0x3e50]
test rcx, rcx
je 0x180009473
mov qword [rdi + 0x3e48], r12
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x180009466
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e50], r12
mov rcx, qword [rdi + 0x3e60]
test rcx, rcx
je 0x1800094a5
mov qword [rdi + 0x3e58], r12
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x180009498
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e60], r12
mov rcx, qword [rdi + 0x3e70]
test rcx, rcx
je 0x1800094d7
mov qword [rdi + 0x3e68], r12
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x1800094ca
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e70], r12
mov qword [rdi + 0x3ea8], r12
mov rcx, qword [rdi + 0x3e80]
test rcx, rcx
je 0x180009510
mov qword [rdi + 0x3e78], r12
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x180009503
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e80], r12
mov rcx, qword [rdi + 0x3e90]
test rcx, rcx
je 0x180009542
mov qword [rdi + 0x3e88], r12
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x180009535
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e90], r12
mov qword [rdi + 0x4870], r12
mov qword [rdi + 0x3eb8], r12
mov qword [rdi + 0x3eb0], r12
mov qword [rdi + 0x3f28], r12
mov qword [rdi + 0x3f10], r12
mov qword [rdi + 0x3ec0], r12
lea rcx, [rdi + 0x45c8]
call fcn.180001c60
mov rcx, qword [rdi + 0x47e0]
test rcx, rcx
je 0x1800095aa
mov qword [rdi + 0x47d8], r12
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x18000959d
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x47e0], r12
mov rcx, qword [rdi + 0x47f0]
test rcx, rcx
je 0x1800095dc
mov qword [rdi + 0x47e8], r12
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x1800095cf
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x47f0], r12
mov rcx, qword [rdi + 0x4800]
test rcx, rcx
je 0x18000960e
mov qword [rdi + 0x47f8], r12
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x180009601
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4800], r12
mov rcx, qword [rdi + 0x4840]
test rcx, rcx
je 0x180009640
mov qword [rdi + 0x4838], r12
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x180009633
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4840], r12
mov rcx, qword [rdi + 0x4850]
test rcx, rcx
je 0x180009672
mov qword [rdi + 0x4848], r12
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x180009665
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4850], r12
mov ebp, r12d
cmp dword [rdi + 0x4860], r12d
jle 0x180009746
mov r14, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x4868]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x180009734
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x1800096d0
mov rcx, rsi
call fcn.180001a60
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x1800096c7
dec dword [rax + 0xf4]
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 0x1800096fd
mov rcx, rsi
call fcn.180001a60
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x1800096f3
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbx + 0x78]
lea r9, [0x180018000]
mov edx, 0x10
mov r8d, 2
call fcn.1800389e0
nop
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x18000972b
dec dword [rax + 0xf4]
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 + 0x4860]
jl 0x180009690
mov rcx, qword [rdi + 0x4868]
test rcx, rcx
je 0x180009778
mov qword [rdi + 0x4860], r12
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x18000976b
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4868], r12
lea rcx, [rdi + 0x4b48]
call fcn.180018030
mov rcx, qword [rdi + 0x4b78]
test rcx, rcx
je 0x1800097b6
mov qword [rdi + 0x4b70], r12
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x1800097a9
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4b78], r12
mov rcx, qword [rdi + 0x4b88]
test rcx, rcx
je 0x1800097e8
mov qword [rdi + 0x4b80], r12
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x1800097db
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4b88], r12
mov ebx, r12d
cmp dword [rdi + 0x4ac8], r12d
jle 0x180009838
mov rsi, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x4ad0]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x18000982a
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x180009823
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 + 0x4ac8]
jl 0x180009800
mov rcx, qword [rdi + 0x4ad0]
test rcx, rcx
je 0x18000986a
mov qword [rdi + 0x4ac8], r12
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x18000985d
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4ad0], r12
lea rcx, [rdi + 0x4af8]
call fcn.1800181b0
mov esi, r12d
cmp dword [rdi + 0x4ae8], r12d
jle 0x1800098d5
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x4af0]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.180023ca0
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x1800098c7
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x1800098c0
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 + 0x4ae8]
jl 0x180009890
mov rcx, qword [rdi + 0x4af0]
test rcx, rcx
je 0x180009907
mov qword [rdi + 0x4ae8], r12
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x1800098fa
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4af0], r12
mov rcx, qword [rdi + 0x4b38]
test rcx, rcx
je 0x180009939
mov qword [rdi + 0x4b30], r12
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x18000992c
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4b38], r12
mov rcx, qword [rdi + 0x5b20]
test rcx, rcx
je 0x18000996b
mov qword [rdi + 0x5b18], r12
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x18000995e
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5b20], r12
mov rcx, qword [rdi + 0x5b30]
test rcx, rcx
je 0x18000999d
mov qword [rdi + 0x5b28], r12
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x180009990
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5b30], r12
mov rcx, qword [rdi + 0x4bc0]
test rcx, rcx
je 0x1800099cf
mov qword [rdi + 0x4bb8], r12
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x1800099c2
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4bc0], r12
mov rcx, qword [rdi + 0x4bd0]
test rcx, rcx
je 0x180009a01
mov qword [rdi + 0x4bc8], r12
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x1800099f4
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4bd0], r12
mov rcx, qword [rdi + 0x4be0]
test rcx, rcx
je 0x180009a33
mov qword [rdi + 0x4bd8], r12
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x180009a26
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4be0], r12
mov rcx, qword [rdi + 0x5b88]
test rcx, rcx
je 0x180009a65
mov qword [rdi + 0x5b80], r12
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x180009a58
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5b88], r12
mov rcx, qword [rdi + 0x5b78]
test rcx, rcx
je 0x180009a97
mov qword [rdi + 0x5b70], r12
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x180009a8a
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5b78], r12
cmp qword [rdi + 0x5bc0], 0
je 0x180009ac8
mov rbx, qword [rdi + 0x5bc0]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x180009ac1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5bc0], r12
mov rcx, qword [rdi + 0x5bd0]
test rcx, rcx
je 0x180009afa
mov qword [rdi + 0x5bc8], r12
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x180009aed
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5bd0], r12
mov rcx, qword [rdi + 0x5c08]
test rcx, rcx
je 0x180009b2c
mov qword [rdi + 0x5c00], r12
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x180009b1f
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c08], r12
mov rcx, qword [rdi + 0x5c18]
test rcx, rcx
je 0x180009b5e
mov qword [rdi + 0x5c10], r12
mov rax, qword [0x18006b1b0]
test rax, rax
je 0x180009b51
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c18], r12
mov dword [rdi + 0x5c20], 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