Function at 0x140007a10
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 [0x1401b3f70]
mov rdi, rax
mov rcx, qword [rax + 0x58]
test rcx, rcx
je 0x140007a76
cmp byte [rax + 1], 0
je 0x140007a76
mov byte [rcx + 0x18], 0
mov rbx, qword [rax + 0x58]
test rbx, rbx
je 0x140007a76
mov rcx, rbx
call fcn.14002eeb0
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x140007a66
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x1401b3f70]
xor r12d, r12d
mov qword [rdi + 0x58], r12
mov rcx, qword [rdi + 0x3c70]
test rcx, rcx
je 0x140007aaf
mov qword [rdi + 0x3c68], r12
test rax, rax
je 0x140007a9b
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 [0x1401b3f70]
cmp byte [rdi], r12b
je 0x1400082a8
cmp byte [rdi + 0x5bb1], r12b
je 0x140007b19
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x140007b19
mov dword [rax + 0x5bb4], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.14001daa0
mov rsi, rax
lea rdx, [0x1400fa3dc]
mov rcx, rbx
call fcn.1400051a0
mov rbx, rax
test rax, rax
je 0x140007b19
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.1400082c0
mov esi, r12d
cmp dword [rdi + 0x3e80], r12d
jle 0x140007b81
mov r14, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x3e88]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140007b73
mov rcx, rbx
call fcn.1400088c0
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x140007b6a
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 0x140007b40
mov rcx, qword [rdi + 0x3e88]
test rcx, rcx
je 0x140007bb3
mov qword [rdi + 0x3e80], r12
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x140007ba6
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 0x140007be5
mov qword [rdi + 0x3e90], r12
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x140007bd8
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 0x140007c17
mov qword [rdi + 0x3ea0], r12
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x140007c0a
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 0x140007c50
mov qword [rdi + 0x3eb0], r12
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x140007c43
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 0x140007c82
mov qword [rdi + 0x3ec0], r12
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x140007c75
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.140003170
mov rcx, qword [rdi + 0x4830]
test rcx, rcx
je 0x140007cea
mov qword [rdi + 0x4828], r12
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x140007cdd
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 0x140007d1c
mov qword [rdi + 0x4838], r12
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x140007d0f
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 0x140007d4e
mov qword [rdi + 0x4848], r12
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x140007d41
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 0x140007d80
mov qword [rdi + 0x4888], r12
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x140007d73
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 0x140007db2
mov qword [rdi + 0x4898], r12
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x140007da5
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 0x140007e86
mov r14, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x48b8]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140007e74
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x140007e10
mov rcx, rsi
call fcn.140002f70
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x140007e07
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 0x140007e3d
mov rcx, rsi
call fcn.140002f70
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x140007e33
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, [0x14001eb00]
mov edx, reloc.WS2_32.dll_recv
mov r8d, 2
call fcn.1400d9338
nop
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x140007e6b
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 0x140007dd0
mov rcx, qword [rdi + 0x48b8]
test rcx, rcx
je 0x140007eb8
mov qword [rdi + 0x48b0], r12
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x140007eab
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.14001ebd0
mov rcx, qword [rdi + 0x4bc8]
test rcx, rcx
je 0x140007ef6
mov qword [rdi + 0x4bc0], r12
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x140007ee9
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 0x140007f28
mov qword [rdi + 0x4bd0], r12
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x140007f1b
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 0x140007f78
mov rsi, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x4b20]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x140007f6a
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x140007f63
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 0x140007f40
mov rcx, qword [rdi + 0x4b20]
test rcx, rcx
je 0x140007faa
mov qword [rdi + 0x4b18], r12
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x140007f9d
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.14001ee40
mov esi, r12d
cmp dword [rdi + 0x4b38], r12d
jle 0x140008015
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x4b40]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.14002e290
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x140008007
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x140008000
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 0x140007fd0
mov rcx, qword [rdi + 0x4b40]
test rcx, rcx
je 0x140008047
mov qword [rdi + 0x4b38], r12
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x14000803a
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 0x140008079
mov qword [rdi + 0x4b80], r12
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x14000806c
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 0x1400080ab
mov qword [rdi + 0x5b70], r12
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x14000809e
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 0x1400080dd
mov qword [rdi + 0x5b80], r12
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x1400080d0
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 0x14000810f
mov qword [rdi + 0x4c10], r12
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x140008102
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 0x140008141
mov qword [rdi + 0x4c20], r12
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x140008134
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 0x140008173
mov qword [rdi + 0x4c30], r12
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x140008166
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 0x1400081a5
mov qword [rdi + 0x5bd8], r12
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x140008198
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 0x1400081d7
mov qword [rdi + 0x5bc8], r12
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x1400081ca
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 0x140008208
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 0x140008201
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 0x14000823a
mov qword [rdi + 0x5c58], r12
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x14000822d
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 0x14000826c
mov qword [rdi + 0x5c90], r12
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x14000825f
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 0x14000829e
mov qword [rdi + 0x5ca0], r12
mov rax, qword [0x1401b3f70]
test rax, rax
je 0x140008291
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