Function at 0x140005e30
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 rax, qword [0x14044b000]
mov rdi, rax
mov rcx, qword [rax + 0x58]
test rcx, rcx
je 0x140005e9e
cmp byte [rax + 1], 0
je 0x140005e9e
mov byte [rcx + 0x18], 0
mov rbx, qword [rax + 0x58]
test rbx, rbx
je 0x140005e9e
mov rcx, rbx
call fcn.14002e330
mov rax, qword [0x14044b000]
test rax, rax
je 0x140005e88
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rax, qword [0x14044b000]
xor r15d, r15d
mov qword [rdi + 0x58], r15
mov rcx, qword [rdi + 0x3c60]
test rcx, rcx
je 0x140005edd
mov qword [rdi + 0x3c58], r15
test rax, rax
je 0x140005ec3
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3c60], r15
mov rax, qword [0x14044b000]
cmp byte [rdi], r15b
je 0x1400067c6
cmp byte [rdi + 0x5be9], r15b
je 0x140005f47
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x140005f47
mov dword [rax + 0x5bec], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.14001d440
mov rsi, rax
lea rdx, [0x1401515ac]
mov rcx, rbx
call fcn.140003b00
mov rbx, rax
test rax, rax
je 0x140005f47
mov r9, rax
mov r8, qword [rsp + 0x40]
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.1400067e0
mov esi, r15d
cmp dword [rdi + 0x3e98], r15d
jle 0x140005fb7
mov r14, r15
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdi + 0x3ea0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140005fa9
mov rcx, rbx
call fcn.140006e40
mov rax, qword [0x14044b000]
test rax, rax
je 0x140005f9a
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc esi
add r14, 8
cmp esi, dword [rdi + 0x3e98]
jl 0x140005f70
mov rcx, qword [rdi + 0x3ea0]
test rcx, rcx
je 0x140005fef
mov qword [rdi + 0x3e98], r15
mov rax, qword [0x14044b000]
test rax, rax
je 0x140005fdc
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3ea0], r15
mov rcx, qword [rdi + 0x3eb0]
test rcx, rcx
je 0x140006027
mov qword [rdi + 0x3ea8], r15
mov rax, qword [0x14044b000]
test rax, rax
je 0x140006014
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3eb0], r15
mov rcx, qword [rdi + 0x3ec0]
test rcx, rcx
je 0x14000605f
mov qword [rdi + 0x3eb8], r15
mov rax, qword [0x14044b000]
test rax, rax
je 0x14000604c
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3ec0], r15
mov qword [rdi + 0x3ef8], r15
mov rcx, qword [rdi + 0x3ed0]
test rcx, rcx
je 0x14000609e
mov qword [rdi + 0x3ec8], r15
mov rax, qword [0x14044b000]
test rax, rax
je 0x14000608b
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3ed0], r15
mov rcx, qword [rdi + 0x3ee0]
test rcx, rcx
je 0x1400060d6
mov qword [rdi + 0x3ed8], r15
mov rax, qword [0x14044b000]
test rax, rax
je 0x1400060c3
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3ee0], r15
mov qword [rdi + 0x48d8], r15
mov qword [rdi + 0x3f08], r15
mov qword [rdi + 0x3f00], r15
mov qword [rdi + 0x3f90], r15
mov qword [rdi + 0x3f78], r15
mov qword [rdi + 0x3f10], r15
lea rcx, [rdi + 0x4630]
call fcn.140001a40
mov rcx, qword [rdi + 0x4848]
test rcx, rcx
je 0x140006144
mov qword [rdi + 0x4840], r15
mov rax, qword [0x14044b000]
test rax, rax
je 0x140006131
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4848], r15
mov rcx, qword [rdi + 0x4858]
test rcx, rcx
je 0x14000617c
mov qword [rdi + 0x4850], r15
mov rax, qword [0x14044b000]
test rax, rax
je 0x140006169
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4858], r15
mov rcx, qword [rdi + 0x4868]
test rcx, rcx
je 0x1400061b4
mov qword [rdi + 0x4860], r15
mov rax, qword [0x14044b000]
test rax, rax
je 0x1400061a1
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4868], r15
mov rcx, qword [rdi + 0x48a8]
test rcx, rcx
je 0x1400061ec
mov qword [rdi + 0x48a0], r15
mov rax, qword [0x14044b000]
test rax, rax
je 0x1400061d9
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x48a8], r15
mov rcx, qword [rdi + 0x48b8]
test rcx, rcx
je 0x140006224
mov qword [rdi + 0x48b0], r15
mov rax, qword [0x14044b000]
test rax, rax
je 0x140006211
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x48b8], r15
mov ebp, r15d
cmp dword [rdi + 0x48c8], r15d
jle 0x140006306
mov r14, r15
nop word [rax + rax]
mov rax, qword [rdi + 0x48d0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x1400062f4
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x140006286
mov rcx, rsi
call fcn.1400018f0
mov rax, qword [0x14044b000]
test rax, rax
je 0x140006277
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rsi, qword [rbx + 0x40]
test rsi, rsi
je 0x1400062b9
mov rcx, rsi
call fcn.1400018f0
mov rax, qword [0x14044b000]
test rax, rax
je 0x1400062a9
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
lea rcx, [rbx + 0x78]
lea r9, [0x14001e6e0]
mov edx, reloc.WS2_32.dll_recv
lea r8d, [rdx - 0xe]
call fcn.14011def8
nop
mov rax, qword [0x14044b000]
test rax, rax
je 0x1400062e5
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x48c8]
jl 0x140006240
mov rcx, qword [rdi + 0x48d0]
test rcx, rcx
je 0x14000633e
mov qword [rdi + 0x48c8], r15
mov rax, qword [0x14044b000]
test rax, rax
je 0x14000632b
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x48d0], r15
lea rcx, [rdi + 0x4ba8]
call fcn.14001e720
mov rcx, qword [rdi + 0x4bd8]
test rcx, rcx
je 0x140006382
mov qword [rdi + 0x4bd0], r15
mov rax, qword [0x14044b000]
test rax, rax
je 0x14000636f
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4bd8], r15
mov rcx, qword [rdi + 0x4be8]
test rcx, rcx
je 0x1400063ba
mov qword [rdi + 0x4be0], r15
mov rax, qword [0x14044b000]
test rax, rax
je 0x1400063a7
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4be8], r15
mov ebx, r15d
cmp dword [rdi + 0x4b28], r15d
jle 0x14000640e
mov rsi, r15
nop dword [rax]
mov rax, qword [rdi + 0x4b30]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x140006400
mov rax, qword [0x14044b000]
test rax, rax
je 0x1400063f3
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4b28]
jl 0x1400063d0
mov rcx, qword [rdi + 0x4b30]
test rcx, rcx
je 0x140006446
mov qword [rdi + 0x4b28], r15
mov rax, qword [0x14044b000]
test rax, rax
je 0x140006433
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4b30], r15
lea rcx, [rdi + 0x4b58]
call fcn.14001e910
mov esi, r15d
cmp dword [rdi + 0x4b48], r15d
jle 0x1400064ac
mov rbp, r15
mov rbx, qword [rdi + 0x4b50]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.14002dba0
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x14000649e
mov rax, qword [0x14044b000]
test rax, rax
je 0x140006491
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4b48]
jl 0x140006461
mov rcx, qword [rdi + 0x4b50]
test rcx, rcx
je 0x1400064e4
mov qword [rdi + 0x4b48], r15
mov rax, qword [0x14044b000]
test rax, rax
je 0x1400064d1
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4b50], r15
mov rcx, qword [rdi + 0x4b98]
test rcx, rcx
je 0x14000651c
mov qword [rdi + 0x4b90], r15
mov rax, qword [0x14044b000]
test rax, rax
je 0x140006509
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4b98], r15
mov rcx, qword [rdi + 0x5bb0]
test rcx, rcx
je 0x140006554
mov qword [rdi + 0x5ba8], r15
mov rax, qword [0x14044b000]
test rax, rax
je 0x140006541
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5bb0], r15
mov rcx, qword [rdi + 0x5bc0]
test rcx, rcx
je 0x14000658c
mov qword [rdi + 0x5bb8], r15
mov rax, qword [0x14044b000]
test rax, rax
je 0x140006579
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5bc0], r15
mov rcx, qword [rdi + 0x4c28]
test rcx, rcx
je 0x1400065c4
mov qword [rdi + 0x4c20], r15
mov rax, qword [0x14044b000]
test rax, rax
je 0x1400065b1
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4c28], r15
mov rcx, qword [rdi + 0x4c38]
test rcx, rcx
je 0x1400065fc
mov qword [rdi + 0x4c30], r15
mov rax, qword [0x14044b000]
test rax, rax
je 0x1400065e9
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4c38], r15
mov rcx, qword [rdi + 0x4c48]
test rcx, rcx
je 0x140006634
mov qword [rdi + 0x4c40], r15
mov rax, qword [0x14044b000]
test rax, rax
je 0x140006621
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4c48], r15
mov dword [rdi + 0x5a98], r15d
mov rcx, qword [rdi + 0x5aa8]
test rcx, rcx
je 0x140006673
mov qword [rdi + 0x5aa0], r15
mov rax, qword [0x14044b000]
test rax, rax
je 0x140006660
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5aa8], r15
mov rcx, qword [rdi + 0x5c18]
test rcx, rcx
je 0x1400066ab
mov qword [rdi + 0x5c10], r15
mov rax, qword [0x14044b000]
test rax, rax
je 0x140006698
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5c18], r15
mov rcx, qword [rdi + 0x5c08]
test rcx, rcx
je 0x1400066e3
mov qword [rdi + 0x5c00], r15
mov rax, qword [0x14044b000]
test rax, rax
je 0x1400066d0
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5c08], r15
cmp qword [rdi + 0x5c88], 0
je 0x140006714
mov rbx, qword [rdi + 0x5c88]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x14000670d
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5c88], r15
mov rcx, qword [rdi + 0x5c98]
test rcx, rcx
je 0x14000674c
mov qword [rdi + 0x5c90], r15
mov rax, qword [0x14044b000]
test rax, rax
je 0x140006739
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5c98], r15
mov rcx, qword [rdi + 0x5cd0]
test rcx, rcx
je 0x140006784
mov qword [rdi + 0x5cc8], r15
mov rax, qword [0x14044b000]
test rax, rax
je 0x140006771
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5cd0], r15
mov rcx, qword [rdi + 0x5ce0]
test rcx, rcx
je 0x1400067bc
mov qword [rdi + 0x5cd8], r15
mov rax, qword [0x14044b000]
test rax, rax
je 0x1400067a9
dec dword [rax + 0xf4]
mov rdx, qword [0x14044aff0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5ce0], r15
mov dword [rdi + 0x5ce8], r15d
mov byte [rdi], 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