Function at 0x140005140
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x30
cmp dword [rcx + 0x230], 0
mov ebp, r8d
mov r12, rdx
mov rdi, rcx
je 0x14000519c
mov ebx, 0x410
lea rcx, [0x1400661f0]
lea rdx, [0x140067230]
mov r8d, ebx
call fcn.1400211a0
lea rcx, [0x140066600]
lea rdx, [0x140067640]
mov r8d, ebx
call fcn.1400211a0
mov r11d, dword [0x14006360c]
jmp 0x1400051e1
cmp dword [0x140067a50], 0
jne 0x1400055f4
mov ebx, 0x410
lea rcx, [0x1400661f0]
lea rdx, [0x140066a10]
mov r8d, ebx
call fcn.1400211a0
lea rcx, [0x140066600]
lea rdx, [0x140066e20]
mov r8d, ebx
call fcn.1400211a0
mov r11d, dword [0x140063608]
movzx ecx, byte [r12]
mov dword [0x1400626dc], r11d
cmp ecx, 7
jg 0x14000551c
je 0x140005509
test ecx, ecx
je 0x1400054ec
dec ecx
je 0x1400053d7
dec ecx
je 0x1400052c4
sub ecx, 2
je 0x14000524c
dec ecx
je 0x14000522a
dec ecx
jne 0x1400055f4
jmp 0x1400054fc
call fcn.140005608
lea r8, [0x14004ab14]
lea rdx, [0x14004ace0]
mov ecx, 2
call fcn.1400066a0
jmp 0x1400055f4
mov r13d, 0x20470
mov ecx, r13d
call fcn.140021530
mov r8d, r13d
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.140024cd0
lea r11d, [rbp - 1]
mov ecx, r11d
mov ebx, r11d
call fcn.1400217e8
lea rdx, [r12 + 1]
mov r8d, ebx
mov rcx, rax
mov rdi, rax
call fcn.1400211a0
mov ecx, reloc.WS2_32.dll_recv
call fcn.140021530
lea ecx, [rbp - 1]
mov qword [rax], rsi
mov qword [rax + 8], rdi
mov dword [rsi + 0x404], ecx
mov rcx, qword [rax]
mov r9, rax
mov dword [rcx], 2
and qword [rsp + 0x28], 0
lea r8, [0x140004d04]
jmp 0x1400055dd
mov r13d, 0x20470
mov ecx, r13d
call fcn.140021530
mov r8d, r13d
xor edx, edx
mov rcx, rax
mov rbp, rax
call fcn.140024cd0
lea rdx, [r12 + 1]
mov r8d, r13d
mov rcx, rbp
call fcn.1400211a0
movsxd rsi, dword [r12 + 0x20471]
mov rcx, rsi
call fcn.1400217e8
lea rdx, [r12 + 0x20475]
mov r8, rsi
mov rcx, rax
mov rdi, rax
call fcn.1400211a0
mov ecx, reloc.WS2_32.dll_recv
call fcn.140021530
mov r12, rax
mov qword [rsp + 0x78], rax
mov qword [rax], rbp
mov qword [rax + 8], rdi
mov rcx, qword [rax]
mov dword [rcx + 0x404], esi
mov rcx, qword [0x140067a60]
lea rax, [rsp + 0x78]
cmp rax, rcx
jae 0x140005399
mov rax, qword [0x140067a58]
lea rdx, [rsp + 0x78]
cmp rax, rdx
ja 0x140005399
lea rbx, [rsp + 0x78]
sub rbx, rax
sar rbx, 3
cmp rcx, qword [0x140067a68]
jne 0x14000538b
lea rcx, [0x140067a58]
call fcn.140006524
mov rcx, qword [0x140067a60]
mov rax, qword [0x140067a58]
test rcx, rcx
je 0x1400053c4
mov rax, qword [rax + rbx*8]
mov qword [rcx], rax
jmp 0x1400053bd
cmp rcx, qword [0x140067a68]
jne 0x1400053b5
lea rcx, [0x140067a58]
call fcn.140006524
mov rcx, qword [0x140067a60]
test rcx, rcx
je 0x1400053c4
mov qword [rcx], r12
mov rcx, qword [0x140067a60]
add rcx, 8
mov r9, r12
mov qword [0x140067a60], rcx
jmp 0x1400052b2
mov r13d, 0x20470
mov ecx, r13d
call fcn.140021530
mov r8d, r13d
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.140024cd0
lea rdx, [r12 + 1]
mov r8d, r13d
mov rcx, rsi
call fcn.1400211a0
mov rbx, qword [0x140067a58]
mov r9, qword [0x140067a60]
jmp 0x140005442
mov rax, qword [rbx]
lea r8, [rsi + 4]
mov rcx, qword [rax]
add rcx, 4
sub r8, rcx
movzx eax, word [rcx]
movzx edx, word [rcx + r8]
sub eax, edx
jne 0x14000543a
add rcx, 2
test edx, edx
jne 0x140005426
test eax, eax
je 0x140005499
add rbx, 8
cmp rbx, r9
jne 0x140005415
mov ebp, 0x20471
mov ecx, ebp
call fcn.1400217e8
mov r8, r13
mov rdx, rsi
mov rbx, rax
mov byte [rax], 5
mov eax, 1
lea rcx, [rbx + 1]
mov dword [rsi + 0x400], eax
call fcn.1400211a0
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov r9, qword [rcx]
mov rdx, rbx
call qword [r9 + reloc.WS2_32.dll_recv]
mov rcx, rsi
call fcn.140021180
mov rcx, rbx
call fcn.140021180
jmp 0x1400055f4
mov rax, qword [rbx]
lea r8, [rsi + 0x202]
mov edx, 0xff
mov rcx, qword [rax]
add rcx, 0x202
call fcn.1400218d0
mov r9, qword [rbx]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x140004d04]
xor edx, edx
xor ecx, ecx
call fcn.140022028
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x1400055f4
mov rcx, rsi
jmp 0x14000548f
mov eax, 1
xchg dword [rdi + 0x234], eax
call fcn.140005608
mov rcx, rdi
call fcn.140005710
jmp 0x1400055f4
mov r8d, ebp
mov rdx, r12
mov rcx, rdi
call fcn.140005820
jmp 0x1400055f4
sub ecx, 8
je 0x1400055c2
dec ecx
je 0x140005586
dec ecx
je 0x140005555
sub ecx, 0x5a
je 0x140005545
dec ecx
jne 0x1400055f4
and dword [0x140067a50], ecx
jmp 0x1400055f4
mov eax, 1
mov dword [0x140067a50], eax
jmp 0x1400055f4
movzx ecx, byte [r12 + 1]
test ecx, ecx
je 0x140005570
dec ecx
jne 0x1400055f4
lea rdx, [0x14004ad20]
jmp 0x140005577
lea rdx, [0x14004ad10]
lea r8, [r12 + 2]
mov rcx, rdi
call fcn.140006128
jmp 0x1400055f4
mov edx, dword [r12 + 1]
mov rcx, rdi
call fcn.140005e80
mov ecx, 2
test eax, eax
je 0x1400055af
lea r8, [0x14004ab3c]
lea rdx, [0x14004acf0]
jmp 0x140005242
lea r8, [0x14004ab5c]
lea rdx, [0x14004ad00]
jmp 0x140005242
and dword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
lea r9, [r12 + 1]
mov qword [rsp + 0x28], rax
lea r8, [0x140006208]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call fcn.140022028
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret