Function at 0x140063b10
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
mov rbp, rsp
mov esi, edx
mov rdi, rcx
mov eax, dword [0x1400c5398]
lea ecx, [rax + 1]
imul ecx, eax
test cl, 1
sete al
cmp dword [0x1400c539c], 0xa
setl cl
or cl, al
mov eax, 0x20
call fcn.14008c4b0
sub rsp, rax
mov r14, rsp
mov eax, reloc.WS2_32.dll_recv
call fcn.14008c4b0
sub rsp, rax
mov rbx, rsp
mov eax, reloc.WS2_32.dll_recv
call fcn.14008c4b0
sub rsp, rax
mov r12, rsp
mov eax, reloc.WS2_32.dll_recv
call fcn.14008c4b0
sub rsp, rax
mov r15, rsp
test cl, cl
je 0x140063b40
cmp esi, 0xffffffff
je 0x140063cb9
mov rax, qword [rdi + 0x40]
cmp qword [rax], 0
je 0x140063bbb
mov rax, qword [rdi + 0x58]
mov ecx, dword [rax]
test ecx, ecx
jle 0x140063bbb
dec ecx
mov dword [rax], ecx
mov rax, qword [rdi + 0x40]
mov rcx, qword [rax]
lea rdx, [rcx + 1]
mov qword [rax], rdx
mov byte [rcx], sil
jmp 0x140063ee2
cmp qword [rdi + 0x80], 0
je 0x140063edd
mov rax, qword [rdi + 0x18]
lea rcx, [rdi + 0x70]
cmp qword [rax], rcx
je 0x140063c14
mov eax, dword [0x1400c5398]
lea ecx, [rax + 1]
imul ecx, eax
test cl, 1
sete dl
cmp dword [0x1400c539c], 0xa
mov rcx, qword [rdi + 0x68]
setl al
or al, dl
test rcx, rcx
je 0x140063cc0
test al, al
jne 0x140063d63
jmp 0x140063db6
mov rax, qword [rdi + 0x18]
mov ecx, dword [rdi + 0x90]
mov rdx, qword [rdi + 0x88]
mov qword [rax], rdx
mov rax, qword [rdi + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rdi + 0x50]
mov dword [rax], ecx
cmp dword [0x1400c5370], 0xa
jl 0x140063bd6
mov eax, dword [0x1400c5374]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
je 0x140063bd6
nop dword [rax]
mov eax, dword [rdi + 0x90]
mov rcx, qword [rdi + 0x18]
mov rdx, qword [rdi + 0x88]
mov qword [rcx], rdx
mov rcx, qword [rdi + 0x38]
mov qword [rcx], rdx
sub eax, edx
mov rcx, qword [rdi + 0x50]
mov dword [rcx], eax
mov eax, dword [rdi + 0x90]
mov rcx, qword [rdi + 0x18]
mov rdx, qword [rdi + 0x88]
mov qword [rcx], rdx
mov rcx, qword [rdi + 0x38]
mov qword [rcx], rdx
sub eax, edx
mov rcx, qword [rdi + 0x50]
mov dword [rcx], eax
cmp dword [0x1400c5370], 0xa
jl 0x140063c10
mov eax, dword [0x1400c5374]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
jne 0x140063c50
jmp 0x140063c10
xor esi, esi
jmp 0x140063ee2
test al, al
je 0x140063cf7
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
sub rsp, 0x20
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add rsp, 0x20
cmp dword [0x1400c539c], 0xa
jl 0x140063d58
mov ecx, dword [0x1400c5398]
lea edx, [rcx + 1]
imul edx, ecx
and edx, 1
je 0x140063d58
movsx ebx, sil
mov rdx, qword [rdi + 0x80]
sub rsp, 0x20
mov r14, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
nop dword [rax]
mov ecx, ebx
call r14
add rsp, 0x20
mov rdx, qword [rdi + 0x80]
sub rsp, 0x20
mov ecx, ebx
call r14
add rsp, 0x20
cmp dword [0x1400c539c], 0xa
jl 0x140063cc4
mov eax, dword [0x1400c5398]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
je 0x140063cc4
mov rdx, qword [rdi + 0x80]
sub rsp, 0x20
jmp 0x140063d10
cmp eax, 0xffffffff
cmove esi, eax
jmp 0x140063ee2
mov byte [rbx], sil
lea rax, [r14 + 0x20]
lea r9, [rbx + 1]
lea rdx, [rdi + 0x74]
mov r10, qword [rcx]
sub rsp, 0x40
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r12
mov r8, rbx
call qword [r10 + 0x38]
add rsp, 0x40
cmp dword [0x1400c539c], 0xa
jl 0x140063df4
mov ecx, dword [0x1400c5398]
lea edx, [rcx + 1]
imul edx, ecx
and edx, 1
je 0x140063df4
mov rcx, qword [rdi + 0x68]
mov byte [rbx], sil
lea rax, [r14 + 0x20]
lea r9, [rbx + 1]
lea rdx, [rdi + 0x74]
mov r10, qword [rcx]
sub rsp, 0x40
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r12
mov r8, rbx
call qword [r10 + 0x38]
add rsp, 0x40
mov rcx, qword [rdi + 0x68]
jmp 0x140063d63
cmp eax, 2
jae 0x140063e3d
mov r15, qword [r15]
sub r15, r14
je 0x140063e2a
mov r9, qword [rdi + 0x80]
sub rsp, 0x20
mov edx, 1
mov rcx, r14
mov r8, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add rsp, 0x20
cmp r15, rax
jne 0x140063edd
mov byte [rdi + 0x71], 1
cmp qword [r12], rbx
jne 0x140063ee2
jmp 0x140063edd
cmp eax, 3
jne 0x140063edd
mov rdx, qword [rdi + 0x80]
movsx ecx, byte [rbx]
sub rsp, 0x20
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add rsp, 0x20
cmp dword [0x1400c539c], 0xa
jl 0x140063d58
mov ecx, dword [0x1400c5398]
lea edx, [rcx + 1]
imul edx, ecx
and edx, 1
je 0x140063d58
mov r14, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
nop word [rax + rax]
mov rdx, qword [rdi + 0x80]
movsx ecx, byte [rbx]
sub rsp, 0x20
call r14
add rsp, 0x20
mov rdx, qword [rdi + 0x80]
movsx ecx, byte [rbx]
sub rsp, 0x20
call r14
add rsp, 0x20
cmp dword [0x1400c539c], 0xa
jl 0x140063d58
mov ecx, dword [0x1400c5398]
lea edx, [rcx + 1]
imul edx, ecx
and edx, 1
jne 0x140063e90
jmp 0x140063d58
mov esi, 0xffffffff
mov eax, esi
mov rsp, rbp
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret