Function at 0x140007a00
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 [0x1401b6f70]
mov rdi, rax
mov rcx, qword [rax + 0x58]
test rcx, rcx
je 0x140007a66
cmp byte [rax + 1], 0
je 0x140007a66
mov byte [rcx + 0x18], 0
mov rbx, qword [rax + 0x58]
test rbx, rbx
je 0x140007a66
mov rcx, rbx
call fcn.14002efb0
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x140007a56
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x1401b6f70]
xor r12d, r12d
mov qword [rdi + 0x58], r12
mov rcx, qword [rdi + 0x3c70]
test rcx, rcx
je 0x140007a9f
mov qword [rdi + 0x3c68], r12
test rax, rax
je 0x140007a8b
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3c70], r12
mov rax, qword [0x1401b6f70]
cmp byte [rdi], r12b
je 0x140008298
cmp byte [rdi + 0x5bb1], r12b
je 0x140007b09
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x140007b09
mov dword [rax + 0x5bb4], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.14001dba0
mov rsi, rax
lea rdx, [0x1400fd3bc]
mov rcx, rbx
call fcn.140005190
mov rbx, rax
test rax, rax
je 0x140007b09
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.1400082b0
mov esi, r12d
cmp dword [rdi + 0x3e80], r12d
jle 0x140007b71
mov r14, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x3e88]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140007b63
mov rcx, rbx
call fcn.1400088b0
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x140007b5a
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 + 0x3e80]
jl 0x140007b30
mov rcx, qword [rdi + 0x3e88]
test rcx, rcx
je 0x140007ba3
mov qword [rdi + 0x3e80], r12
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x140007b96
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e88], r12
mov rcx, qword [rdi + 0x3e98]
test rcx, rcx
je 0x140007bd5
mov qword [rdi + 0x3e90], r12
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x140007bc8
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e98], r12
mov rcx, qword [rdi + 0x3ea8]
test rcx, rcx
je 0x140007c07
mov qword [rdi + 0x3ea0], r12
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x140007bfa
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ea8], r12
mov qword [rdi + 0x3ee0], r12
mov rcx, qword [rdi + 0x3eb8]
test rcx, rcx
je 0x140007c40
mov qword [rdi + 0x3eb0], r12
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x140007c33
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3eb8], r12
mov rcx, qword [rdi + 0x3ec8]
test rcx, rcx
je 0x140007c72
mov qword [rdi + 0x3ec0], r12
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x140007c65
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ec8], r12
mov qword [rdi + 0x48c0], r12
mov qword [rdi + 0x3ef0], r12
mov qword [rdi + 0x3ee8], r12
mov qword [rdi + 0x3f78], r12
mov qword [rdi + 0x3f60], r12
mov qword [rdi + 0x3ef8], r12
lea rcx, [rdi + 0x4618]
call fcn.140003180
mov rcx, qword [rdi + 0x4830]
test rcx, rcx
je 0x140007cda
mov qword [rdi + 0x4828], r12
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x140007ccd
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4830], r12
mov rcx, qword [rdi + 0x4840]
test rcx, rcx
je 0x140007d0c
mov qword [rdi + 0x4838], r12
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x140007cff
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4840], r12
mov rcx, qword [rdi + 0x4850]
test rcx, rcx
je 0x140007d3e
mov qword [rdi + 0x4848], r12
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x140007d31
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4850], r12
mov rcx, qword [rdi + 0x4890]
test rcx, rcx
je 0x140007d70
mov qword [rdi + 0x4888], r12
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x140007d63
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4890], r12
mov rcx, qword [rdi + 0x48a0]
test rcx, rcx
je 0x140007da2
mov qword [rdi + 0x4898], r12
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x140007d95
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x48a0], r12
mov ebp, r12d
cmp dword [rdi + 0x48b0], r12d
jle 0x140007e76
mov r14, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x48b8]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140007e64
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x140007e00
mov rcx, rsi
call fcn.140002f80
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x140007df7
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 0x140007e2d
mov rcx, rsi
call fcn.140002f80
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x140007e23
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, [0x14001ec00]
mov edx, reloc.WS2_32.dll_recv
mov r8d, 2
call fcn.1400db738
nop
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x140007e5b
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 + 0x48b0]
jl 0x140007dc0
mov rcx, qword [rdi + 0x48b8]
test rcx, rcx
je 0x140007ea8
mov qword [rdi + 0x48b0], r12
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x140007e9b
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x48b8], r12
lea rcx, [rdi + 0x4b98]
call fcn.14001ecd0
mov rcx, qword [rdi + 0x4bc8]
test rcx, rcx
je 0x140007ee6
mov qword [rdi + 0x4bc0], r12
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x140007ed9
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4bc8], r12
mov rcx, qword [rdi + 0x4bd8]
test rcx, rcx
je 0x140007f18
mov qword [rdi + 0x4bd0], r12
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x140007f0b
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4bd8], r12
mov ebx, r12d
cmp dword [rdi + 0x4b18], r12d
jle 0x140007f68
mov rsi, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x4b20]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x140007f5a
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x140007f53
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4b18]
jl 0x140007f30
mov rcx, qword [rdi + 0x4b20]
test rcx, rcx
je 0x140007f9a
mov qword [rdi + 0x4b18], r12
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x140007f8d
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4b20], r12
lea rcx, [rdi + 0x4b48]
call fcn.14001ef40
mov esi, r12d
cmp dword [rdi + 0x4b38], r12d
jle 0x140008005
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x4b40]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.14002e390
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x140007ff7
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x140007ff0
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4b38]
jl 0x140007fc0
mov rcx, qword [rdi + 0x4b40]
test rcx, rcx
je 0x140008037
mov qword [rdi + 0x4b38], r12
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x14000802a
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4b40], r12
mov rcx, qword [rdi + 0x4b88]
test rcx, rcx
je 0x140008069
mov qword [rdi + 0x4b80], r12
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x14000805c
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4b88], r12
mov rcx, qword [rdi + 0x5b78]
test rcx, rcx
je 0x14000809b
mov qword [rdi + 0x5b70], r12
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x14000808e
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5b78], r12
mov rcx, qword [rdi + 0x5b88]
test rcx, rcx
je 0x1400080cd
mov qword [rdi + 0x5b80], r12
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x1400080c0
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5b88], r12
mov rcx, qword [rdi + 0x4c18]
test rcx, rcx
je 0x1400080ff
mov qword [rdi + 0x4c10], r12
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x1400080f2
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c18], r12
mov rcx, qword [rdi + 0x4c28]
test rcx, rcx
je 0x140008131
mov qword [rdi + 0x4c20], r12
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x140008124
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c28], r12
mov rcx, qword [rdi + 0x4c38]
test rcx, rcx
je 0x140008163
mov qword [rdi + 0x4c30], r12
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x140008156
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c38], r12
mov rcx, qword [rdi + 0x5be0]
test rcx, rcx
je 0x140008195
mov qword [rdi + 0x5bd8], r12
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x140008188
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5be0], r12
mov rcx, qword [rdi + 0x5bd0]
test rcx, rcx
je 0x1400081c7
mov qword [rdi + 0x5bc8], r12
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x1400081ba
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5bd0], r12
cmp qword [rdi + 0x5c50], 0
je 0x1400081f8
mov rbx, qword [rdi + 0x5c50]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x1400081f1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5c50], r12
mov rcx, qword [rdi + 0x5c60]
test rcx, rcx
je 0x14000822a
mov qword [rdi + 0x5c58], r12
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x14000821d
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c60], r12
mov rcx, qword [rdi + 0x5c98]
test rcx, rcx
je 0x14000825c
mov qword [rdi + 0x5c90], r12
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x14000824f
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c98], r12
mov rcx, qword [rdi + 0x5ca8]
test rcx, rcx
je 0x14000828e
mov qword [rdi + 0x5ca0], r12
mov rax, qword [0x1401b6f70]
test rax, rax
je 0x140008281
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ca8], r12
mov dword [rdi + 0x5cb0], 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