Function at 0x180007250
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r12
sub rsp, 0x30
mov rax, qword [rcx + 0xa8]
mov rdi, rcx
test rax, rax
je 0x180007328
cmp byte [rcx + 1], 0
je 0x180007328
mov byte [rax + 0x18], 0
mov rbx, qword [rcx + 0xa8]
test rbx, rbx
je 0x180007328
mov rcx, rbx
call fcn.1800220f0
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x1800072b9
mov rax, qword [0x1801a8fa0]
test rax, rax
je 0x1800072ad
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x1800072e0
mov rax, qword [0x1801a8fa0]
test rax, rax
je 0x1800072d4
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x180007307
mov rax, qword [0x1801a8fa0]
test rax, rax
je 0x1800072fb
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rax, qword [0x1801a8fa0]
test rax, rax
je 0x180007319
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor r12d, r12d
mov qword [rdi + 0xa8], r12
cmp byte [rdi], r12b
je 0x180007b41
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x28], r14
cmp byte [rdi + 0x3031], r12b
je 0x1800073c0
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x1800073c0
mov rsi, qword [0x1801a8fa0]
lea rcx, [rsp + 0x50]
mov qword [0x1801a8fa0], rdi
mov dword [rdi + 0x3034], r12d
mov qword [rsp + 0x50], r12
call fcn.180014a60
lea rdx, [0x180051a18]
mov rcx, rbx
mov rbp, rax
call fcn.1800029f0
mov rbx, rax
test rax, rax
je 0x1800073b9
mov r8, qword [rsp + 0x50]
lea edx, [r12 + 1]
mov r9, rax
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 [0x1801a8fa0], rsi
mov ebx, r12d
cmp dword [rdi + 0x3078], r12d
jle 0x1800073fd
mov rsi, r12
nop
mov rax, qword [rdi + 0x3080]
cmp dword [rsi + rax + 4], 6
jne 0x1800073ef
movsxd rdx, ebx
mov rcx, rdi
shl rdx, 5
add rdx, rax
call qword [rsi + rax + 0x10]
inc ebx
add rsi, 0x20
cmp ebx, dword [rdi + 0x3078]
jl 0x1800073d0
mov ebx, r12d
cmp dword [rdi + 0x1bb0], r12d
jle 0x18000742e
mov rsi, r12
nop dword [rax]
mov rcx, qword [rdi + 0x1bb8]
mov rcx, qword [rsi + rcx]
call fcn.1800161e0
inc ebx
lea rsi, [rsi + 8]
cmp ebx, dword [rdi + 0x1bb0]
jl 0x180007410
mov rcx, qword [rdi + 0x1bb8]
test rcx, rcx
je 0x180007466
mov rax, qword [0x1801a8fa0]
mov qword [rdi + 0x1bb0], r12
test rax, rax
je 0x180007453
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1bb8], r12
mov rcx, qword [rdi + 0x1bc8]
test rcx, rcx
je 0x18000749e
mov rax, qword [0x1801a8fa0]
mov qword [rdi + 0x1bc0], r12
test rax, rax
je 0x18000748b
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1bc8], r12
mov rcx, qword [rdi + 0x1bd8]
test rcx, rcx
je 0x1800074d6
mov rax, qword [0x1801a8fa0]
mov qword [rdi + 0x1bd0], r12
test rax, rax
je 0x1800074c3
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1bd8], r12
mov qword [rdi + 0x1c10], r12
mov rcx, qword [rdi + 0x1be8]
test rcx, rcx
je 0x180007515
mov rax, qword [0x1801a8fa0]
mov qword [rdi + 0x1be0], r12
test rax, rax
je 0x180007502
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1be8], r12
mov rcx, qword [rdi + 0x1bf8]
test rcx, rcx
je 0x18000754d
mov rax, qword [0x1801a8fa0]
mov qword [rdi + 0x1bf0], r12
test rax, rax
je 0x18000753a
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1bf8], r12
mov qword [rdi + 0x1dc8], r12
mov qword [rdi + 0x1c20], r12
mov qword [rdi + 0x1c18], r12
mov qword [rdi + 0x1ca0], r12
mov qword [rdi + 0x1c88], r12
mov qword [rdi + 0x1c28], r12
mov rcx, qword [rdi + 0x1d40]
test rcx, rcx
je 0x1800075af
mov rax, qword [0x1801a8fa0]
mov qword [rdi + 0x1d38], r12
test rax, rax
je 0x18000759c
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1d40], r12
mov rcx, qword [rdi + 0x1d50]
test rcx, rcx
je 0x1800075e7
mov rax, qword [0x1801a8fa0]
mov qword [rdi + 0x1d48], r12
test rax, rax
je 0x1800075d4
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1d50], r12
mov rcx, qword [rdi + 0x1d60]
test rcx, rcx
je 0x18000761f
mov rax, qword [0x1801a8fa0]
mov qword [rdi + 0x1d58], r12
test rax, rax
je 0x18000760c
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1d60], r12
mov rcx, qword [rdi + 0x1da0]
test rcx, rcx
je 0x180007657
mov rax, qword [0x1801a8fa0]
mov qword [rdi + 0x1d98], r12
test rax, rax
je 0x180007644
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1da0], r12
mov rcx, qword [rdi + 0x1db0]
test rcx, rcx
je 0x18000768f
mov rax, qword [0x1801a8fa0]
mov qword [rdi + 0x1da8], r12
test rax, rax
je 0x18000767c
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1db0], r12
mov r14d, r12d
cmp dword [rdi + 0x1db8], r12d
jle 0x180007780
mov qword [rsp + 0x20], r15
mov r15, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x1dc0]
mov rbp, qword [r15 + rax]
test rbp, rbp
je 0x180007767
mov rbx, qword [rbp + 0x30]
test rbx, rbx
je 0x1800076f6
mov rcx, rbx
call fcn.180001040
mov rax, qword [0x1801a8fa0]
test rax, rax
je 0x1800076e7
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rbx, qword [rbp + 0x38]
test rbx, rbx
je 0x180007728
mov rcx, rbx
call fcn.180001040
mov rax, qword [0x1801a8fa0]
test rax, rax
je 0x180007719
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov ebx, 2
lea rsi, [rbp + 0x90]
sub rsi, 0x10
mov rcx, rsi
call fcn.180015ca0
sub rbx, 1
jne 0x180007734
mov rax, qword [0x1801a8fa0]
test rax, rax
je 0x180007758
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
mov rcx, rbp
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc r14d
add r15, 8
cmp r14d, dword [rdi + 0x1db8]
jl 0x1800076b0
mov r15, qword [rsp + 0x20]
mov rcx, qword [rdi + 0x1dc0]
mov r14, qword [rsp + 0x28]
test rcx, rcx
je 0x1800077bd
mov rax, qword [0x1801a8fa0]
mov qword [rdi + 0x1db8], r12
test rax, rax
je 0x1800077aa
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1dc0], r12
lea rcx, [rdi + 0x2060]
call fcn.180015450
mov rcx, qword [rdi + 0x2090]
test rcx, rcx
je 0x180007801
mov rax, qword [0x1801a8fa0]
mov qword [rdi + 0x2088], r12
test rax, rax
je 0x1800077ee
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x2090], r12
mov rcx, qword [rdi + 0x20a0]
test rcx, rcx
je 0x180007839
mov rax, qword [0x1801a8fa0]
mov qword [rdi + 0x2098], r12
test rax, rax
je 0x180007826
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x20a0], r12
lea rcx, [rdi + 0x2000]
call fcn.1800155f0
mov ebp, r12d
cmp dword [rdi + 0x2028], r12d
jle 0x1800078d4
mov rsi, r12
nop dword [rax + rax]
mov rbx, qword [rdi + 0x2030]
mov rcx, qword [rsi + rbx + 0x40]
test rcx, rcx
je 0x18000788f
mov rax, qword [0x1801a8fa0]
test rax, rax
je 0x180007883
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
lea rcx, [rbx + 0x10]
add rcx, rsi
call fcn.180021650
mov rcx, qword [rbx + rsi + 0x20]
test rcx, rcx
je 0x1800078c3
mov rax, qword [0x1801a8fa0]
test rax, rax
je 0x1800078b7
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc ebp
add rsi, 0x90
cmp ebp, dword [rdi + 0x2028]
jl 0x180007860
mov rcx, qword [rdi + 0x2030]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x180007916
mov rax, qword [0x1801a8fa0]
mov qword [rdi + 0x2028], r12
test rax, rax
je 0x180007903
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x2030], r12
mov rcx, qword [rdi + 0x2050]
test rcx, rcx
je 0x18000794e
mov rax, qword [0x1801a8fa0]
mov qword [rdi + 0x2048], r12
test rax, rax
je 0x18000793b
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x2050], r12
mov rcx, qword [rdi + 0x3008]
test rcx, rcx
je 0x180007986
mov rax, qword [0x1801a8fa0]
mov qword [rdi + 0x3000], r12
test rax, rax
je 0x180007973
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3008], r12
mov rcx, qword [rdi + 0x3018]
test rcx, rcx
je 0x1800079be
mov rax, qword [0x1801a8fa0]
mov qword [rdi + 0x3010], r12
test rax, rax
je 0x1800079ab
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3018], r12
mov rcx, qword [rdi + 0x20c8]
test rcx, rcx
je 0x1800079f6
mov rax, qword [0x1801a8fa0]
mov qword [rdi + 0x20c0], r12
test rax, rax
je 0x1800079e3
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x20c8], r12
mov rcx, qword [rdi + 0x20d8]
test rcx, rcx
je 0x180007a2e
mov rax, qword [0x1801a8fa0]
mov qword [rdi + 0x20d0], r12
test rax, rax
je 0x180007a1b
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x20d8], r12
mov rcx, qword [rdi + 0x20e8]
test rcx, rcx
je 0x180007a66
mov rax, qword [0x1801a8fa0]
mov qword [rdi + 0x20e0], r12
test rax, rax
je 0x180007a53
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x20e8], r12
mov rcx, qword [rdi + 0x3060]
test rcx, rcx
je 0x180007a9e
mov rax, qword [0x1801a8fa0]
mov qword [rdi + 0x3058], r12
test rax, rax
je 0x180007a8b
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3060], r12
mov rcx, qword [rdi + 0x3050]
test rcx, rcx
je 0x180007ad6
mov rax, qword [0x1801a8fa0]
mov qword [rdi + 0x3048], r12
test rax, rax
je 0x180007ac3
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3050], r12
cmp qword [rdi + 0x3098], r12
je 0x180007b06
mov rbx, qword [rdi + 0x3098]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x180007aff
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x3098], r12
mov rcx, qword [rdi + 0x30a8]
test rcx, rcx
je 0x180007b3e
mov rax, qword [0x1801a8fa0]
mov qword [rdi + 0x30a0], r12
test rax, rax
je 0x180007b2b
dec dword [rax + 0x3b4]
mov rdx, qword [0x1801a8f90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x30a8], r12
mov byte [rdi], r12b
add rsp, 0x30
pop r12
pop rdi
pop rbx
ret