Function at 0x140005ed0
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 rax, qword [0x140323ff8]
mov rdi, rax
mov rcx, qword [rax + 0x60]
test rcx, rcx
je 0x140005f36
cmp byte [rax + 1], 0
je 0x140005f36
mov byte [rcx + 0x18], 0
mov rbx, qword [rax + 0x60]
test rbx, rbx
je 0x140005f36
mov rcx, rbx
call fcn.14002f740
mov rax, qword [0x140323ff8]
test rax, rax
je 0x140005f26
dec dword [rax + 0xfc]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x140323ff8]
xor r12d, r12d
mov qword [rdi + 0x60], r12
mov rcx, qword [rdi + 0x3c78]
test rcx, rcx
je 0x140005f6f
mov qword [rdi + 0x3c70], r12
test rax, rax
je 0x140005f5b
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3c78], r12
mov rax, qword [0x140323ff8]
cmp byte [rdi], r12b
je 0x140006768
cmp byte [rdi + 0x5bf1], r12b
je 0x140005fd9
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x140005fd9
mov dword [rax + 0x5bf4], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.14001dff0
mov rsi, rax
lea rdx, [0x140057e2c]
mov rcx, rbx
call fcn.140003320
mov rbx, rax
test rax, rax
je 0x140005fd9
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 edx, 6
mov rcx, rdi
call fcn.140006780
mov esi, r12d
cmp dword [rdi + 0x3e88], r12d
jle 0x140006041
mov r14, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x3e90]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140006033
mov rcx, rbx
call fcn.140006d80
mov rax, qword [0x140323ff8]
test rax, rax
je 0x14000602a
dec dword [rax + 0xfc]
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 + 0x3e88]
jl 0x140006000
mov rcx, qword [rdi + 0x3e90]
test rcx, rcx
je 0x140006073
mov qword [rdi + 0x3e88], r12
mov rax, qword [0x140323ff8]
test rax, rax
je 0x140006066
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e90], r12
mov rcx, qword [rdi + 0x3ea0]
test rcx, rcx
je 0x1400060a5
mov qword [rdi + 0x3e98], r12
mov rax, qword [0x140323ff8]
test rax, rax
je 0x140006098
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ea0], r12
mov rcx, qword [rdi + 0x3eb0]
test rcx, rcx
je 0x1400060d7
mov qword [rdi + 0x3ea8], r12
mov rax, qword [0x140323ff8]
test rax, rax
je 0x1400060ca
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3eb0], r12
mov qword [rdi + 0x3ee8], r12
mov rcx, qword [rdi + 0x3ec0]
test rcx, rcx
je 0x140006110
mov qword [rdi + 0x3eb8], r12
mov rax, qword [0x140323ff8]
test rax, rax
je 0x140006103
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ec0], r12
mov rcx, qword [rdi + 0x3ed0]
test rcx, rcx
je 0x140006142
mov qword [rdi + 0x3ec8], r12
mov rax, qword [0x140323ff8]
test rax, rax
je 0x140006135
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ed0], r12
mov qword [rdi + 0x48c8], r12
mov qword [rdi + 0x3ef8], r12
mov qword [rdi + 0x3ef0], r12
mov qword [rdi + 0x3f80], r12
mov qword [rdi + 0x3f68], r12
mov qword [rdi + 0x3f00], r12
lea rcx, [rdi + 0x4620]
call fcn.140001300
mov rcx, qword [rdi + 0x4838]
test rcx, rcx
je 0x1400061aa
mov qword [rdi + 0x4830], r12
mov rax, qword [0x140323ff8]
test rax, rax
je 0x14000619d
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4838], r12
mov rcx, qword [rdi + 0x4848]
test rcx, rcx
je 0x1400061dc
mov qword [rdi + 0x4840], r12
mov rax, qword [0x140323ff8]
test rax, rax
je 0x1400061cf
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4848], r12
mov rcx, qword [rdi + 0x4858]
test rcx, rcx
je 0x14000620e
mov qword [rdi + 0x4850], r12
mov rax, qword [0x140323ff8]
test rax, rax
je 0x140006201
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4858], r12
mov rcx, qword [rdi + 0x4898]
test rcx, rcx
je 0x140006240
mov qword [rdi + 0x4890], r12
mov rax, qword [0x140323ff8]
test rax, rax
je 0x140006233
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4898], r12
mov rcx, qword [rdi + 0x48a8]
test rcx, rcx
je 0x140006272
mov qword [rdi + 0x48a0], r12
mov rax, qword [0x140323ff8]
test rax, rax
je 0x140006265
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x48a8], r12
mov ebp, r12d
cmp dword [rdi + 0x48b8], r12d
jle 0x140006346
mov r14, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x48c0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140006334
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x1400062d0
mov rcx, rsi
call fcn.140001100
mov rax, qword [0x140323ff8]
test rax, rax
je 0x1400062c7
dec dword [rax + 0xfc]
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 0x1400062fd
mov rcx, rsi
call fcn.140001100
mov rax, qword [0x140323ff8]
test rax, rax
je 0x1400062f3
dec dword [rax + 0xfc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbx + 0x78]
lea r9, [0x14001f060]
mov edx, 0x10
mov r8d, 2
call fcn.1400502a8
nop
mov rax, qword [0x140323ff8]
test rax, rax
je 0x14000632b
dec dword [rax + 0xfc]
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 + 0x48b8]
jl 0x140006290
mov rcx, qword [rdi + 0x48c0]
test rcx, rcx
je 0x140006378
mov qword [rdi + 0x48b8], r12
mov rax, qword [0x140323ff8]
test rax, rax
je 0x14000636b
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x48c0], r12
lea rcx, [rdi + 0x4bb0]
call fcn.14001f130
mov rcx, qword [rdi + 0x4be0]
test rcx, rcx
je 0x1400063b6
mov qword [rdi + 0x4bd8], r12
mov rax, qword [0x140323ff8]
test rax, rax
je 0x1400063a9
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4be0], r12
mov rcx, qword [rdi + 0x4bf0]
test rcx, rcx
je 0x1400063e8
mov qword [rdi + 0x4be8], r12
mov rax, qword [0x140323ff8]
test rax, rax
je 0x1400063db
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4bf0], r12
mov ebx, r12d
cmp dword [rdi + 0x4b30], r12d
jle 0x140006438
mov rsi, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x4b38]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x14000642a
mov rax, qword [0x140323ff8]
test rax, rax
je 0x140006423
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4b30]
jl 0x140006400
mov rcx, qword [rdi + 0x4b38]
test rcx, rcx
je 0x14000646a
mov qword [rdi + 0x4b30], r12
mov rax, qword [0x140323ff8]
test rax, rax
je 0x14000645d
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4b38], r12
lea rcx, [rdi + 0x4b60]
call fcn.14001f310
mov esi, r12d
cmp dword [rdi + 0x4b50], r12d
jle 0x1400064d5
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x4b58]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.14002ece0
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x1400064c7
mov rax, qword [0x140323ff8]
test rax, rax
je 0x1400064c0
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4b50]
jl 0x140006490
mov rcx, qword [rdi + 0x4b58]
test rcx, rcx
je 0x140006507
mov qword [rdi + 0x4b50], r12
mov rax, qword [0x140323ff8]
test rax, rax
je 0x1400064fa
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4b58], r12
mov rcx, qword [rdi + 0x4ba0]
test rcx, rcx
je 0x140006539
mov qword [rdi + 0x4b98], r12
mov rax, qword [0x140323ff8]
test rax, rax
je 0x14000652c
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4ba0], r12
mov rcx, qword [rdi + 0x5bb8]
test rcx, rcx
je 0x14000656b
mov qword [rdi + 0x5bb0], r12
mov rax, qword [0x140323ff8]
test rax, rax
je 0x14000655e
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5bb8], r12
mov rcx, qword [rdi + 0x5bc8]
test rcx, rcx
je 0x14000659d
mov qword [rdi + 0x5bc0], r12
mov rax, qword [0x140323ff8]
test rax, rax
je 0x140006590
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5bc8], r12
mov rcx, qword [rdi + 0x4c30]
test rcx, rcx
je 0x1400065cf
mov qword [rdi + 0x4c28], r12
mov rax, qword [0x140323ff8]
test rax, rax
je 0x1400065c2
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c30], r12
mov rcx, qword [rdi + 0x4c40]
test rcx, rcx
je 0x140006601
mov qword [rdi + 0x4c38], r12
mov rax, qword [0x140323ff8]
test rax, rax
je 0x1400065f4
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c40], r12
mov rcx, qword [rdi + 0x4c50]
test rcx, rcx
je 0x140006633
mov qword [rdi + 0x4c48], r12
mov rax, qword [0x140323ff8]
test rax, rax
je 0x140006626
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c50], r12
mov rcx, qword [rdi + 0x5c20]
test rcx, rcx
je 0x140006665
mov qword [rdi + 0x5c18], r12
mov rax, qword [0x140323ff8]
test rax, rax
je 0x140006658
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c20], r12
mov rcx, qword [rdi + 0x5c10]
test rcx, rcx
je 0x140006697
mov qword [rdi + 0x5c08], r12
mov rax, qword [0x140323ff8]
test rax, rax
je 0x14000668a
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c10], r12
cmp qword [rdi + 0x5c90], 0
je 0x1400066c8
mov rbx, qword [rdi + 0x5c90]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x1400066c1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5c90], r12
mov rcx, qword [rdi + 0x5ca0]
test rcx, rcx
je 0x1400066fa
mov qword [rdi + 0x5c98], r12
mov rax, qword [0x140323ff8]
test rax, rax
je 0x1400066ed
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ca0], r12
mov rcx, qword [rdi + 0x5cd8]
test rcx, rcx
je 0x14000672c
mov qword [rdi + 0x5cd0], r12
mov rax, qword [0x140323ff8]
test rax, rax
je 0x14000671f
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5cd8], r12
mov rcx, qword [rdi + 0x5ce8]
test rcx, rcx
je 0x14000675e
mov qword [rdi + 0x5ce0], r12
mov rax, qword [0x140323ff8]
test rax, rax
je 0x140006751
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ce8], r12
mov dword [rdi + 0x5cf0], 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