Function at 0x140007a50
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 [0x1401b7010]
mov rdi, rax
mov rcx, qword [rax + 0x58]
test rcx, rcx
je 0x140007ab6
cmp byte [rax + 1], 0
je 0x140007ab6
mov byte [rcx + 0x18], 0
mov rbx, qword [rax + 0x58]
test rbx, rbx
je 0x140007ab6
mov rcx, rbx
call fcn.14002eef0
mov rax, qword [0x1401b7010]
test rax, rax
je 0x140007aa6
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x1401b7010]
xor r12d, r12d
mov qword [rdi + 0x58], r12
mov rcx, qword [rdi + 0x3c70]
test rcx, rcx
je 0x140007aef
mov qword [rdi + 0x3c68], r12
test rax, rax
je 0x140007adb
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 [0x1401b7010]
cmp byte [rdi], r12b
je 0x1400082e8
cmp byte [rdi + 0x5bb1], r12b
je 0x140007b59
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x140007b59
mov dword [rax + 0x5bb4], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.14001dae0
mov rsi, rax
lea rdx, [0x1400fd42c]
mov rcx, rbx
call fcn.1400051e0
mov rbx, rax
test rax, rax
je 0x140007b59
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.140008300
mov esi, r12d
cmp dword [rdi + 0x3e80], r12d
jle 0x140007bc1
mov r14, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x3e88]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140007bb3
mov rcx, rbx
call fcn.140008900
mov rax, qword [0x1401b7010]
test rax, rax
je 0x140007baa
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 0x140007b80
mov rcx, qword [rdi + 0x3e88]
test rcx, rcx
je 0x140007bf3
mov qword [rdi + 0x3e80], r12
mov rax, qword [0x1401b7010]
test rax, rax
je 0x140007be6
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 0x140007c25
mov qword [rdi + 0x3e90], r12
mov rax, qword [0x1401b7010]
test rax, rax
je 0x140007c18
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 0x140007c57
mov qword [rdi + 0x3ea0], r12
mov rax, qword [0x1401b7010]
test rax, rax
je 0x140007c4a
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 0x140007c90
mov qword [rdi + 0x3eb0], r12
mov rax, qword [0x1401b7010]
test rax, rax
je 0x140007c83
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 0x140007cc2
mov qword [rdi + 0x3ec0], r12
mov rax, qword [0x1401b7010]
test rax, rax
je 0x140007cb5
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.1400031d0
mov rcx, qword [rdi + 0x4830]
test rcx, rcx
je 0x140007d2a
mov qword [rdi + 0x4828], r12
mov rax, qword [0x1401b7010]
test rax, rax
je 0x140007d1d
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 0x140007d5c
mov qword [rdi + 0x4838], r12
mov rax, qword [0x1401b7010]
test rax, rax
je 0x140007d4f
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 0x140007d8e
mov qword [rdi + 0x4848], r12
mov rax, qword [0x1401b7010]
test rax, rax
je 0x140007d81
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 0x140007dc0
mov qword [rdi + 0x4888], r12
mov rax, qword [0x1401b7010]
test rax, rax
je 0x140007db3
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 0x140007df2
mov qword [rdi + 0x4898], r12
mov rax, qword [0x1401b7010]
test rax, rax
je 0x140007de5
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 0x140007ec6
mov r14, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x48b8]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140007eb4
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x140007e50
mov rcx, rsi
call fcn.140002fd0
mov rax, qword [0x1401b7010]
test rax, rax
je 0x140007e47
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 0x140007e7d
mov rcx, rsi
call fcn.140002fd0
mov rax, qword [0x1401b7010]
test rax, rax
je 0x140007e73
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, [0x14001eb40]
mov edx, reloc.WS2_32.dll_recv
mov r8d, 2
call fcn.1400daf48
nop
mov rax, qword [0x1401b7010]
test rax, rax
je 0x140007eab
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 0x140007e10
mov rcx, qword [rdi + 0x48b8]
test rcx, rcx
je 0x140007ef8
mov qword [rdi + 0x48b0], r12
mov rax, qword [0x1401b7010]
test rax, rax
je 0x140007eeb
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.14001ec10
mov rcx, qword [rdi + 0x4bc8]
test rcx, rcx
je 0x140007f36
mov qword [rdi + 0x4bc0], r12
mov rax, qword [0x1401b7010]
test rax, rax
je 0x140007f29
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 0x140007f68
mov qword [rdi + 0x4bd0], r12
mov rax, qword [0x1401b7010]
test rax, rax
je 0x140007f5b
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 0x140007fb8
mov rsi, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x4b20]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x140007faa
mov rax, qword [0x1401b7010]
test rax, rax
je 0x140007fa3
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 0x140007f80
mov rcx, qword [rdi + 0x4b20]
test rcx, rcx
je 0x140007fea
mov qword [rdi + 0x4b18], r12
mov rax, qword [0x1401b7010]
test rax, rax
je 0x140007fdd
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.14001ee80
mov esi, r12d
cmp dword [rdi + 0x4b38], r12d
jle 0x140008055
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x4b40]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.14002e2d0
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x140008047
mov rax, qword [0x1401b7010]
test rax, rax
je 0x140008040
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 0x140008010
mov rcx, qword [rdi + 0x4b40]
test rcx, rcx
je 0x140008087
mov qword [rdi + 0x4b38], r12
mov rax, qword [0x1401b7010]
test rax, rax
je 0x14000807a
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 0x1400080b9
mov qword [rdi + 0x4b80], r12
mov rax, qword [0x1401b7010]
test rax, rax
je 0x1400080ac
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 0x1400080eb
mov qword [rdi + 0x5b70], r12
mov rax, qword [0x1401b7010]
test rax, rax
je 0x1400080de
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 0x14000811d
mov qword [rdi + 0x5b80], r12
mov rax, qword [0x1401b7010]
test rax, rax
je 0x140008110
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 0x14000814f
mov qword [rdi + 0x4c10], r12
mov rax, qword [0x1401b7010]
test rax, rax
je 0x140008142
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 0x140008181
mov qword [rdi + 0x4c20], r12
mov rax, qword [0x1401b7010]
test rax, rax
je 0x140008174
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 0x1400081b3
mov qword [rdi + 0x4c30], r12
mov rax, qword [0x1401b7010]
test rax, rax
je 0x1400081a6
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 0x1400081e5
mov qword [rdi + 0x5bd8], r12
mov rax, qword [0x1401b7010]
test rax, rax
je 0x1400081d8
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 0x140008217
mov qword [rdi + 0x5bc8], r12
mov rax, qword [0x1401b7010]
test rax, rax
je 0x14000820a
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 0x140008248
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 0x140008241
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 0x14000827a
mov qword [rdi + 0x5c58], r12
mov rax, qword [0x1401b7010]
test rax, rax
je 0x14000826d
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 0x1400082ac
mov qword [rdi + 0x5c90], r12
mov rax, qword [0x1401b7010]
test rax, rax
je 0x14000829f
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 0x1400082de
mov qword [rdi + 0x5ca0], r12
mov rax, qword [0x1401b7010]
test rax, rax
je 0x1400082d1
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