Function at 0x180007590
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
mov rax, qword [rcx + 0xa8]
mov rbx, rcx
test rax, rax
je 0x1800075e0
cmp byte [rcx + 1], 0
je 0x1800075e0
mov byte [rax], 0
mov rdi, qword [rcx + 0xa8]
test rdi, rdi
je 0x1800075e0
mov rcx, rdi
call fcn.18001fe70
mov rax, qword [0x180044d20]
test rax, rax
je 0x1800075d7
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 0x180007c48
mov qword [rsp + 0x50], rsi
cmp byte [rbx + 0x30d1], r15b
je 0x180007677
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x180007677
mov rsi, qword [0x180044d20]
lea rcx, [rsp + 0x40]
mov qword [0x180044d20], rbx
mov qword [rsp + 0x48], rbp
mov dword [rbx + 0x30d4], r15d
mov qword [rsp + 0x40], r15
call fcn.1800131a0
lea rdx, [0x1800368ec]
mov rcx, rdi
mov rbp, rax
call fcn.180002720
mov rdi, rax
test rax, rax
je 0x18000766b
mov r8, qword [rsp + 0x40]
lea edx, [r15 + 1]
mov r9, rax
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 rbp, qword [rsp + 0x48]
mov qword [0x180044d20], rsi
mov edx, 6
mov rcx, rbx
call fcn.180005250
mov esi, r15d
cmp dword [rbx + 0x1a88], r15d
jle 0x1800076e6
mov qword [rsp + 0x58], r14
mov r14, r15
nop dword [rax + rax]
mov rax, qword [rbx + 0x1a90]
mov rdi, qword [r14 + rax]
test rdi, rdi
je 0x1800076d3
mov rcx, rdi
call fcn.180004c00
mov rax, qword [0x180044d20]
test rax, rax
je 0x1800076ca
dec dword [rax + 0x3b4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add r14, 8
cmp esi, dword [rbx + 0x1a88]
jl 0x1800076a0
mov r14, qword [rsp + 0x58]
mov rcx, qword [rbx + 0x1a90]
mov rsi, qword [rsp + 0x50]
test rcx, rcx
je 0x18000771d
mov rax, qword [0x180044d20]
mov qword [rbx + 0x1a88], r15
test rax, rax
je 0x180007710
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1a90], r15
mov rcx, qword [rbx + 0x1aa0]
test rcx, rcx
je 0x18000774f
mov rax, qword [0x180044d20]
mov qword [rbx + 0x1a98], r15
test rax, rax
je 0x180007742
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1aa0], r15
mov rcx, qword [rbx + 0x1ab0]
test rcx, rcx
je 0x180007781
mov rax, qword [0x180044d20]
mov qword [rbx + 0x1aa8], r15
test rax, rax
je 0x180007774
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ab0], r15
mov qword [rbx + 0x1ae0], r15
mov rcx, qword [rbx + 0x1ac0]
test rcx, rcx
je 0x1800077ba
mov rax, qword [0x180044d20]
mov qword [rbx + 0x1ab8], r15
test rax, rax
je 0x1800077ad
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ac0], r15
mov rcx, qword [rbx + 0x1ad0]
test rcx, rcx
je 0x1800077ec
mov rax, qword [0x180044d20]
mov qword [rbx + 0x1ac8], r15
test rax, rax
je 0x1800077df
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ad0], r15
mov qword [rbx + 0x1c90], r15
mov qword [rbx + 0x1af8], r15
mov qword [rbx + 0x1af0], r15
mov qword [rbx + 0x1ae8], r15
mov qword [rbx + 0x1b78], r15
mov qword [rbx + 0x1b60], r15
mov qword [rbx + 0x1b00], r15
mov rcx, qword [rbx + 0x1c18]
test rcx, rcx
je 0x18000784f
mov rax, qword [0x180044d20]
mov qword [rbx + 0x1c10], r15
test rax, rax
je 0x180007842
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c18], r15
mov rcx, qword [rbx + 0x1c28]
test rcx, rcx
je 0x180007881
mov rax, qword [0x180044d20]
mov qword [rbx + 0x1c20], r15
test rax, rax
je 0x180007874
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c28], r15
mov rcx, qword [rbx + 0x1c38]
test rcx, rcx
je 0x1800078b3
mov rax, qword [0x180044d20]
mov qword [rbx + 0x1c30], r15
test rax, rax
je 0x1800078a6
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c38], r15
mov rcx, qword [rbx + 0x1c78]
test rcx, rcx
je 0x1800078e5
mov rax, qword [0x180044d20]
mov qword [rbx + 0x1c70], r15
test rax, rax
je 0x1800078d8
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c78], r15
mov rcx, qword [rbx + 0x1c88]
test rcx, rcx
je 0x180007920
mov rax, qword [0x180044d20]
mov qword [rbx + 0x1c80], r15
test rax, rax
je 0x18000790a
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c88], r15
nop word [rax + rax]
mov rcx, qword [rbx + 0x1e50]
test rcx, rcx
je 0x180007952
mov rax, qword [0x180044d20]
mov qword [rbx + 0x1e48], r15
test rax, rax
je 0x180007945
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1e50], r15
cmp qword [rbx + 0x1e60], r15
je 0x18000798d
mov qword [rbx + 0x1e58], r15
mov rcx, qword [rbx + 0x1e60]
test rcx, rcx
je 0x180007980
mov rax, qword [0x180044d20]
test rax, rax
je 0x180007980
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1e60], r15
lea rcx, [rbx + 0x1e70]
call fcn.18001cdf0
lea rcx, [rbx + 0x1f30]
call fcn.18001cdf0
lea rcx, [rbx + 0x2100]
call fcn.180013d10
mov rcx, qword [rbx + 0x2130]
test rcx, rcx
je 0x1800079e3
mov rax, qword [0x180044d20]
mov qword [rbx + 0x2128], r15
test rax, rax
je 0x1800079d6
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2130], r15
mov rcx, qword [rbx + 0x2140]
test rcx, rcx
je 0x180007a15
mov rax, qword [0x180044d20]
mov qword [rbx + 0x2138], r15
test rax, rax
je 0x180007a08
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2140], r15
lea rcx, [rbx + 0x20a0]
call fcn.180013e90
mov rcx, qword [rbx + 0x20d0]
test rcx, rcx
je 0x180007a53
mov rax, qword [0x180044d20]
mov qword [rbx + 0x20c8], r15
test rax, rax
je 0x180007a46
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 + 0x20f0]
test rcx, rcx
je 0x180007a85
mov rax, qword [0x180044d20]
mov qword [rbx + 0x20e8], r15
test rax, rax
je 0x180007a78
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x20f0], r15
mov rcx, qword [rbx + 0x30a8]
test rcx, rcx
je 0x180007ab7
mov rax, qword [0x180044d20]
mov qword [rbx + 0x30a0], r15
test rax, rax
je 0x180007aaa
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x30a8], r15
mov rcx, qword [rbx + 0x30b8]
test rcx, rcx
je 0x180007ae9
mov rax, qword [0x180044d20]
mov qword [rbx + 0x30b0], r15
test rax, rax
je 0x180007adc
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x30b8], r15
mov rcx, qword [rbx + 0x2168]
test rcx, rcx
je 0x180007b1b
mov rax, qword [0x180044d20]
mov qword [rbx + 0x2160], r15
test rax, rax
je 0x180007b0e
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2168], r15
mov rcx, qword [rbx + 0x2178]
test rcx, rcx
je 0x180007b4d
mov rax, qword [0x180044d20]
mov qword [rbx + 0x2170], r15
test rax, rax
je 0x180007b40
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2178], r15
mov rcx, qword [rbx + 0x2188]
test rcx, rcx
je 0x180007b7f
mov rax, qword [0x180044d20]
mov qword [rbx + 0x2180], r15
test rax, rax
je 0x180007b72
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2188], r15
mov rcx, qword [rbx + 0x3100]
test rcx, rcx
je 0x180007bb1
mov rax, qword [0x180044d20]
mov qword [rbx + 0x30f8], r15
test rax, rax
je 0x180007ba4
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3100], r15
mov rcx, qword [rbx + 0x30f0]
test rcx, rcx
je 0x180007be3
mov rax, qword [0x180044d20]
mov qword [rbx + 0x30e8], r15
test rax, rax
je 0x180007bd6
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x30f0], r15
cmp qword [rbx + 0x3130], r15
je 0x180007c13
mov rdi, qword [rbx + 0x3130]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x180007c0c
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x3130], r15
mov rcx, qword [rbx + 0x3140]
test rcx, rcx
je 0x180007c45
mov rax, qword [0x180044d20]
mov qword [rbx + 0x3138], r15
test rax, rax
je 0x180007c38
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3140], r15
mov byte [rbx], r15b
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret