Function at 0x180031f90
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 0x180031fef
cmp byte [rcx + 1], 0
je 0x180031fef
mov byte [rax], 0
mov rdi, qword [rcx + 0xa8]
test rdi, rdi
je 0x180031fef
mov rcx, rdi
call fcn.1800587c0
mov rax, qword [0x1800d9728]
test rax, rax
je 0x180031fe6
dec dword [rax + 0x3b0]
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 0x180032734
cmp byte [rbx + 0x2fc0], r15b
je 0x180032072
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x180032072
mov rsi, qword [0x1800d9728]
mov qword [0x1800d9728], rbx
mov dword [rbx + 0x2fc4], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.180041b00
mov rbp, rax
lea rdx, [0x18007d434]
mov rcx, rdi
call fcn.18002d040
mov rdi, rax
test rax, rax
je 0x180032079
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]
jmp 0x180032079
mov rsi, qword [0x1800d9728]
mov qword [0x1800d9728], rbx
call fcn.180043ef0
mov qword [0x1800d9728], rsi
mov esi, r15d
cmp dword [rbx + 0x2f88], r15d
jle 0x1800320e2
mov rbp, r15
nop dword [rax + rax]
mov rax, qword [rbx + 0x2f90]
mov rdi, qword [rax + rbp + 8]
test rdi, rdi
je 0x1800320d4
mov rcx, rdi
call fcn.180045540
mov rax, qword [0x1800d9728]
test rax, rax
je 0x1800320cb
dec dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add rbp, 0x10
cmp esi, dword [rbx + 0x2f88]
jl 0x1800320a0
mov edi, r15d
cmp dword [rbx + 0x2ff8], r15d
jle 0x180032122
mov rsi, r15
mov rdx, qword [rbx + 0x3000]
cmp dword [rsi + rdx], 6
jne 0x180032114
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 + 0x2ff8]
jl 0x1800320f1
mov ebp, r15d
cmp dword [rbx + 0x1b40], r15d
jle 0x180032256
mov r14, r15
nop word [rax + rax]
mov rax, qword [rbx + 0x1b48]
mov rdi, qword [r14 + rax]
test rdi, rdi
je 0x180032244
mov rcx, qword [rdi]
test rcx, rcx
je 0x180032174
mov rax, qword [0x1800d9728]
test rax, rax
je 0x18003216e
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, r15d
cmp dword [rdi + 0x2f8], r15d
je 0x1800321a0
movsxd rax, esi
imul rcx, rax, 0x88
add rcx, qword [rdi + 0x300]
call fcn.18002f100
inc esi
cmp esi, dword [rdi + 0x2f8]
jne 0x180032180
lea rcx, [rdi + 0x320]
call fcn.18002b720
nop
mov rcx, qword [rdi + 0x300]
test rcx, rcx
je 0x1800321d2
mov rax, qword [0x1800d9728]
test rax, rax
je 0x1800321cb
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rdi + 0x2f0]
test rcx, rcx
je 0x1800321f7
mov rax, qword [0x1800d9728]
test rax, rax
je 0x1800321f0
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rdi + 0x118]
call fcn.18002f030
nop
mov rcx, qword [rdi + 0x110]
test rcx, rcx
je 0x180032229
mov rax, qword [0x1800d9728]
test rax, rax
je 0x180032222
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rax, qword [0x1800d9728]
test rax, rax
je 0x18003223b
dec dword [rax + 0x3b0]
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 + 0x1b40]
jl 0x180032140
mov rcx, qword [rbx + 0x1b48]
test rcx, rcx
je 0x180032288
mov qword [rbx + 0x1b40], r15
mov rax, qword [0x1800d9728]
test rax, rax
je 0x18003227b
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1b48], r15
mov rcx, qword [rbx + 0x1b58]
test rcx, rcx
je 0x1800322ba
mov qword [rbx + 0x1b50], r15
mov rax, qword [0x1800d9728]
test rax, rax
je 0x1800322ad
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1b58], r15
mov rcx, qword [rbx + 0x1b68]
test rcx, rcx
je 0x1800322ec
mov qword [rbx + 0x1b60], r15
mov rax, qword [0x1800d9728]
test rax, rax
je 0x1800322df
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1b68], r15
mov qword [rbx + 0x1b98], r15
mov rcx, qword [rbx + 0x1b78]
test rcx, rcx
je 0x180032325
mov qword [rbx + 0x1b70], r15
mov rax, qword [0x1800d9728]
test rax, rax
je 0x180032318
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1b78], r15
mov rcx, qword [rbx + 0x1b88]
test rcx, rcx
je 0x180032357
mov qword [rbx + 0x1b80], r15
mov rax, qword [0x1800d9728]
test rax, rax
je 0x18003234a
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1b88], r15
mov qword [rbx + 0x1d78], r15
mov qword [rbx + 0x1bb0], r15
mov qword [rbx + 0x1ba8], r15
mov qword [rbx + 0x1ba0], r15
mov qword [rbx + 0x1c38], r15
mov qword [rbx + 0x1c20], r15
mov qword [rbx + 0x1bc0], r15
mov rcx, qword [rbx + 0x1cf8]
test rcx, rcx
je 0x1800323ba
mov qword [rbx + 0x1cf0], r15
mov rax, qword [0x1800d9728]
test rax, rax
je 0x1800323ad
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1cf8], r15
mov rcx, qword [rbx + 0x1d08]
test rcx, rcx
je 0x1800323ec
mov qword [rbx + 0x1d00], r15
mov rax, qword [0x1800d9728]
test rax, rax
je 0x1800323df
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1d08], r15
mov rcx, qword [rbx + 0x1d18]
test rcx, rcx
je 0x18003241e
mov qword [rbx + 0x1d10], r15
mov rax, qword [0x1800d9728]
test rax, rax
je 0x180032411
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1d18], r15
mov rcx, qword [rbx + 0x1d28]
test rcx, rcx
je 0x180032450
mov qword [rbx + 0x1d20], r15
mov rax, qword [0x1800d9728]
test rax, rax
je 0x180032443
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1d28], r15
mov rcx, qword [rbx + 0x1d38]
test rcx, rcx
je 0x180032482
mov qword [rbx + 0x1d30], r15
mov rax, qword [0x1800d9728]
test rax, rax
je 0x180032475
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1d38], r15
mov qword [rbx + 0x1d68], r15
mov qword [rbx + 0x1d60], r15
mov qword [rbx + 0x1d58], r15
mov esi, r15d
cmp dword [rbx + 0x1d40], r15d
jle 0x1800324ce
mov rdi, r15
nop word [rax + rax]
mov rcx, qword [rbx + 0x1d48]
mov rcx, qword [rdi + rcx]
call fcn.18004d8a0
inc esi
lea rdi, [rdi + 8]
cmp esi, dword [rbx + 0x1d40]
jl 0x1800324b0
mov rcx, qword [rbx + 0x1d48]
test rcx, rcx
je 0x180032500
mov qword [rbx + 0x1d40], r15
mov rax, qword [0x1800d9728]
test rax, rax
je 0x1800324f3
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1d48], r15
lea rcx, [rbx + 0x1fa8]
call fcn.18004ca60
mov rcx, qword [rbx + 0x1fd8]
test rcx, rcx
je 0x18003253e
mov qword [rbx + 0x1fd0], r15
mov rax, qword [0x1800d9728]
test rax, rax
je 0x180032531
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1fd8], r15
mov rcx, qword [rbx + 0x1fe8]
test rcx, rcx
je 0x180032570
mov qword [rbx + 0x1fe0], r15
mov rax, qword [0x1800d9728]
test rax, rax
je 0x180032563
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1fe8], r15
mov rcx, qword [rbx + 0x2f50]
test rcx, rcx
je 0x1800325a2
mov qword [rbx + 0x2f48], r15
mov rax, qword [0x1800d9728]
test rax, rax
je 0x180032595
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2f50], r15
mov rcx, qword [rbx + 0x2f60]
test rcx, rcx
je 0x1800325d4
mov qword [rbx + 0x2f58], r15
mov rax, qword [0x1800d9728]
test rax, rax
je 0x1800325c7
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2f60], r15
mov rcx, qword [rbx + 0x2010]
test rcx, rcx
je 0x180032606
mov qword [rbx + 0x2008], r15
mov rax, qword [0x1800d9728]
test rax, rax
je 0x1800325f9
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2010], r15
mov rcx, qword [rbx + 0x2020]
test rcx, rcx
je 0x180032638
mov qword [rbx + 0x2018], r15
mov rax, qword [0x1800d9728]
test rax, rax
je 0x18003262b
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2020], r15
mov rcx, qword [rbx + 0x2030]
test rcx, rcx
je 0x18003266a
mov qword [rbx + 0x2028], r15
mov rax, qword [0x1800d9728]
test rax, rax
je 0x18003265d
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2030], r15
mov rcx, qword [rbx + 0x2ff0]
test rcx, rcx
je 0x18003269c
mov qword [rbx + 0x2fe8], r15
mov rax, qword [0x1800d9728]
test rax, rax
je 0x18003268f
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2ff0], r15
mov rcx, qword [rbx + 0x2fe0]
test rcx, rcx
je 0x1800326ce
mov qword [rbx + 0x2fd8], r15
mov rax, qword [0x1800d9728]
test rax, rax
je 0x1800326c1
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2fe0], r15
cmp qword [rbx + 0x3010], 0
je 0x1800326ff
mov rdi, qword [rbx + 0x3010]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x1800326f8
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x3010], r15
mov rcx, qword [rbx + 0x3020]
test rcx, rcx
je 0x180032731
mov qword [rbx + 0x3018], r15
mov rax, qword [0x1800d9728]
test rax, rax
je 0x180032724
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3020], 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