Function at 0x1800d47b0
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 [0x1801fbf58]
mov rax, qword [rdi + 0x58]
test rax, rax
je 0x1800d480c
cmp byte [rdi + 1], 0
je 0x1800d480c
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x58]
test rbx, rbx
je 0x1800d480c
mov rcx, rbx
call fcn.180100c30
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d4803
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 + 0x3c40]
test rcx, rcx
je 0x1800d4845
mov qword [rdi + 0x3c38], r12
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d4838
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3c40], r12
cmp byte [rdi], r12b
je 0x1800d5066
cmp byte [rdi + 0x5391], r12b
je 0x1800d48b6
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x1800d48b6
mov rax, qword [0x1801fbf58]
mov dword [rax + 0x5394], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.1800e5650
mov rsi, rax
lea rdx, [0x180190d90]
mov rcx, rbx
call fcn.1800cdf80
mov rbx, rax
test rax, rax
je 0x1800d48b6
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 + 0x53d8], r12d
jle 0x1800d48fd
mov rsi, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x53e0]
cmp dword [rsi + rax + 4], 6
jne 0x1800d48ef
movsxd rdx, ebx
shl rdx, 5
add rdx, rax
mov rcx, rdi
call qword [rsi + rax + 0x10]
inc ebx
add rsi, 0x20
cmp ebx, dword [rdi + 0x53d8]
jl 0x1800d48d0
mov esi, r12d
cmp dword [rdi + 0x3e40], r12d
jle 0x1800d4951
mov r14, r12
nop dword [rax]
mov rax, qword [rdi + 0x3e48]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x1800d4943
mov rcx, rbx
call fcn.1800d0fb0
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d493a
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 + 0x3e40]
jl 0x1800d4910
mov rcx, qword [rdi + 0x3e48]
test rcx, rcx
je 0x1800d4983
mov qword [rdi + 0x3e40], r12
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d4976
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e48], r12
mov rcx, qword [rdi + 0x3e58]
test rcx, rcx
je 0x1800d49b5
mov qword [rdi + 0x3e50], r12
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d49a8
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e58], r12
mov rcx, qword [rdi + 0x3e68]
test rcx, rcx
je 0x1800d49e7
mov qword [rdi + 0x3e60], r12
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d49da
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e68], r12
mov qword [rdi + 0x3ea0], r12
mov rcx, qword [rdi + 0x3e78]
test rcx, rcx
je 0x1800d4a20
mov qword [rdi + 0x3e70], r12
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d4a13
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e78], r12
mov rcx, qword [rdi + 0x3e88]
test rcx, rcx
je 0x1800d4a52
mov qword [rdi + 0x3e80], r12
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d4a45
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e88], r12
mov qword [rdi + 0x40b0], r12
mov qword [rdi + 0x3eb0], r12
mov qword [rdi + 0x3ea8], r12
mov qword [rdi + 0x3f20], r12
mov qword [rdi + 0x3f08], r12
mov qword [rdi + 0x3eb8], r12
mov rcx, qword [rdi + 0x4020]
test rcx, rcx
je 0x1800d4aae
mov qword [rdi + 0x4018], r12
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d4aa1
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4020], r12
mov rcx, qword [rdi + 0x4030]
test rcx, rcx
je 0x1800d4ae0
mov qword [rdi + 0x4028], r12
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d4ad3
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4030], r12
mov rcx, qword [rdi + 0x4040]
test rcx, rcx
je 0x1800d4b12
mov qword [rdi + 0x4038], r12
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d4b05
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4040], r12
mov rcx, qword [rdi + 0x4080]
test rcx, rcx
je 0x1800d4b44
mov qword [rdi + 0x4078], r12
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d4b37
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4080], r12
mov rcx, qword [rdi + 0x4090]
test rcx, rcx
je 0x1800d4b76
mov qword [rdi + 0x4088], r12
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d4b69
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4090], r12
mov ebp, r12d
cmp dword [rdi + 0x40a0], r12d
jle 0x1800d4c46
mov r14, r12
nop dword [rax]
mov rax, qword [rdi + 0x40a8]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x1800d4c34
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x1800d4bd0
mov rcx, rsi
call fcn.1800cc3c0
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d4bc7
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 0x1800d4bfd
mov rcx, rsi
call fcn.1800cc3c0
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d4bf3
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, [0x180068c50]
mov edx, 0x10
mov r8d, 2
call fcn.180111318
nop
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d4c2b
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 + 0x40a0]
jl 0x1800d4b90
mov rcx, qword [rdi + 0x40a8]
test rcx, rcx
je 0x1800d4c78
mov qword [rdi + 0x40a0], r12
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d4c6b
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x40a8], r12
lea rcx, [rdi + 0x4380]
call fcn.1800e6c00
mov rcx, qword [rdi + 0x43b0]
test rcx, rcx
je 0x1800d4cb6
mov qword [rdi + 0x43a8], r12
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d4ca9
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x43b0], r12
mov rcx, qword [rdi + 0x43c0]
test rcx, rcx
je 0x1800d4ce8
mov qword [rdi + 0x43b8], r12
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d4cdb
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x43c0], r12
mov ebx, r12d
cmp dword [rdi + 0x4300], r12d
jle 0x1800d4d37
mov rsi, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x4308]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x1800d4d29
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d4d23
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4300]
jl 0x1800d4d00
mov rcx, qword [rdi + 0x4308]
test rcx, rcx
je 0x1800d4d69
mov qword [rdi + 0x4300], r12
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d4d5c
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4308], r12
lea rcx, [rdi + 0x4330]
call fcn.1800e6d70
mov esi, r12d
cmp dword [rdi + 0x4320], r12d
jle 0x1800d4dd3
mov rbp, r12
nop dword [rax]
nop dword [rax + rax]
mov rbx, qword [rdi + 0x4328]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.180100490
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x1800d4dc5
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d4dbf
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4320]
jl 0x1800d4d90
mov rcx, qword [rdi + 0x4328]
test rcx, rcx
je 0x1800d4e05
mov qword [rdi + 0x4320], r12
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d4df8
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4328], r12
mov rcx, qword [rdi + 0x4370]
test rcx, rcx
je 0x1800d4e37
mov qword [rdi + 0x4368], r12
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d4e2a
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4370], r12
mov rcx, qword [rdi + 0x5358]
test rcx, rcx
je 0x1800d4e69
mov qword [rdi + 0x5350], r12
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d4e5c
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5358], r12
mov rcx, qword [rdi + 0x5368]
test rcx, rcx
je 0x1800d4e9b
mov qword [rdi + 0x5360], r12
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d4e8e
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5368], r12
mov rcx, qword [rdi + 0x43f8]
test rcx, rcx
je 0x1800d4ecd
mov qword [rdi + 0x43f0], r12
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d4ec0
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x43f8], r12
mov rcx, qword [rdi + 0x4408]
test rcx, rcx
je 0x1800d4eff
mov qword [rdi + 0x4400], r12
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d4ef2
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4408], r12
mov rcx, qword [rdi + 0x4418]
test rcx, rcx
je 0x1800d4f31
mov qword [rdi + 0x4410], r12
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d4f24
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4418], r12
mov rcx, qword [rdi + 0x53c0]
test rcx, rcx
je 0x1800d4f63
mov qword [rdi + 0x53b8], r12
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d4f56
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x53c0], r12
mov rcx, qword [rdi + 0x53b0]
test rcx, rcx
je 0x1800d4f95
mov qword [rdi + 0x53a8], r12
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d4f88
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x53b0], r12
cmp qword [rdi + 0x53f8], 0
je 0x1800d4fc6
mov rbx, qword [rdi + 0x53f8]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x1800d4fbf
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x53f8], r12
mov rcx, qword [rdi + 0x5408]
test rcx, rcx
je 0x1800d4ff8
mov qword [rdi + 0x5400], r12
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d4feb
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5408], r12
mov rcx, qword [rdi + 0x5440]
test rcx, rcx
je 0x1800d502a
mov qword [rdi + 0x5438], r12
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d501d
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5440], r12
mov rcx, qword [rdi + 0x5450]
test rcx, rcx
je 0x1800d505c
mov qword [rdi + 0x5448], r12
mov rax, qword [0x1801fbf58]
test rax, rax
je 0x1800d504f
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5450], r12
mov dword [rdi + 0x5458], 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