Function at 0x140005040
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 0x14000509c
mov ebx, 0x410
lea rcx, [0x140063a90]
lea rdx, [0x140064ad0]
mov r8d, ebx
call fcn.1400211b0
lea rcx, [0x140063ea0]
lea rdx, [0x140064ee0]
mov r8d, ebx
call fcn.1400211b0
mov r11d, dword [0x140061010]
jmp 0x1400050e1
cmp dword [0x1400652f0], 0
jne 0x1400054ed
mov ebx, 0x410
lea rcx, [0x140063a90]
lea rdx, [0x1400642b0]
mov r8d, ebx
call fcn.1400211b0
lea rcx, [0x140063ea0]
lea rdx, [0x1400646c0]
mov r8d, ebx
call fcn.1400211b0
mov r11d, dword [0x14006100c]
movzx ecx, byte [r12]
mov dword [0x140061008], r11d
cmp ecx, 7
jg 0x14000541c
je 0x140005409
test ecx, ecx
je 0x1400053ec
dec ecx
je 0x1400052d7
dec ecx
je 0x1400051c4
sub ecx, 2
je 0x14000514c
dec ecx
je 0x14000512a
dec ecx
jne 0x1400054ed
jmp 0x1400053fc
call fcn.140005500
lea r8, [0x14004a710]
lea rdx, [0x14004aad8]
mov ecx, 2
call fcn.140006594
jmp 0x1400054ed
mov r13d, 0x20470
mov ecx, r13d
call fcn.140021540
mov r8d, r13d
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.140025070
lea r11d, [rbp - 1]
mov ecx, r11d
mov ebx, r11d
call fcn.1400217a8
lea rdx, [r12 + 1]
mov r8d, ebx
mov rcx, rax
mov rdi, rax
call fcn.1400211b0
mov ecx, reloc.WS2_32.dll_recv
call fcn.140021540
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, [0x140004c0c]
jmp 0x1400054d6
mov r13d, 0x20470
mov ecx, r13d
call fcn.140021540
mov r8d, r13d
xor edx, edx
mov rcx, rax
mov rbp, rax
call fcn.140025070
lea rdx, [r12 + 1]
mov r8d, r13d
mov rcx, rbp
call fcn.1400211b0
movsxd rsi, dword [r12 + 0x20471]
mov rcx, rsi
call fcn.1400217a8
lea rdx, [r12 + 0x20475]
mov r8, rsi
mov rcx, rax
mov rdi, rax
call fcn.1400211b0
mov ecx, reloc.WS2_32.dll_recv
call fcn.140021540
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 [0x140065300]
lea rax, [rsp + 0x78]
cmp rax, rcx
jae 0x140005299
mov rax, qword [0x1400652f8]
lea rdx, [rsp + 0x78]
cmp rax, rdx
ja 0x140005299
lea rbx, [rsp + 0x78]
sub rbx, rax
sar rbx, 3
cmp rcx, qword [0x140065308]
jne 0x14000528b
lea rcx, [0x1400652f8]
call fcn.140006418
mov rcx, qword [0x140065300]
mov rax, qword [0x1400652f8]
test rcx, rcx
je 0x1400052c4
mov rax, qword [rax + rbx*8]
mov qword [rcx], rax
jmp 0x1400052bd
cmp rcx, qword [0x140065308]
jne 0x1400052b5
lea rcx, [0x1400652f8]
call fcn.140006418
mov rcx, qword [0x140065300]
test rcx, rcx
je 0x1400052c4
mov qword [rcx], r12
mov rcx, qword [0x140065300]
add rcx, 8
mov r9, r12
mov qword [0x140065300], rcx
jmp 0x1400051b2
mov r13d, 0x20470
mov ecx, r13d
call fcn.140021540
mov r8d, r13d
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.140025070
lea rdx, [r12 + 1]
mov r8d, r13d
mov rcx, rsi
call fcn.1400211b0
mov rbx, qword [0x1400652f8]
mov r9, qword [0x140065300]
jmp 0x140005342
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 0x14000533a
add rcx, 2
test edx, edx
jne 0x140005326
test eax, eax
je 0x140005399
add rbx, 8
cmp rbx, r9
jne 0x140005315
mov ebp, 0x20471
mov ecx, ebp
call fcn.1400217a8
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.1400211b0
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.140021190
mov rcx, rbx
call fcn.140021190
jmp 0x1400054ed
mov rax, qword [rbx]
lea r8, [rsi + 0x202]
mov edx, 0xff
mov rcx, qword [rax]
add rcx, 0x202
call fcn.140021890
mov r9, qword [rbx]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x140004c0c]
xor edx, edx
xor ecx, ecx
call fcn.140021fe8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x1400054ed
mov rcx, rsi
jmp 0x14000538f
mov eax, 1
xchg dword [rdi + 0x234], eax
call fcn.140005500
mov rcx, rdi
call fcn.140005608
jmp 0x1400054ed
mov r8d, ebp
mov rdx, r12
mov rcx, rdi
call fcn.140005718
jmp 0x1400054ed
sub ecx, 8
je 0x1400054bb
dec ecx
je 0x140005486
dec ecx
je 0x140005455
sub ecx, 0x5a
je 0x140005445
dec ecx
jne 0x1400054ed
and dword [0x1400652f0], ecx
jmp 0x1400054ed
mov eax, 1
mov dword [0x1400652f0], eax
jmp 0x1400054ed
movzx ecx, byte [r12 + 1]
test ecx, ecx
je 0x140005470
dec ecx
jne 0x1400054ed
lea rdx, str.BEIZHU
jmp 0x140005477
lea rdx, str.FENZU
lea r8, [r12 + 2]
mov rcx, rdi
call fcn.140006020
jmp 0x1400054ed
mov edx, dword [r12 + 1]
mov rcx, rdi
call fcn.140005d78
lea r8, [0x14004a710]
mov ecx, 2
test eax, eax
je 0x1400054af
lea rdx, [0x14004aae8]
jmp 0x140005142
lea rdx, [0x14004aaf8]
jmp 0x140005142
and dword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
lea r9, [r12 + 1]
mov qword [rsp + 0x28], rax
lea r8, [0x1400060fc]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call fcn.140021fe8
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