Function at 0x1400103f0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push rsi
push rdi
sub rsp, 0x38
cmp byte [0x140136c40], 0
mov edi, edx
mov rsi, rcx
jne 0x14001040e
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x30], rbp
mov ebp, dword gs:[0x48]
cmp dword [0x140136030], ebp
je 0x140010435
mov rcx, qword [0x140136038]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp word [rsi], 0
jne 0x14001043f
xor ebx, ebx
jmp 0x140010497
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
mov rdx, rsi
mov dword [rsp + 0x20], 3
lea rcx, [0x140136060]
call fcn.140052120
mov rbx, rax
test rax, rax
jne 0x140010497
cmp byte [rsp + 0x60], bl
lea rcx, [0x140136060]
mov r9d, dword [rsp + 0x68]
mov rdx, rsi
setne bl
xor r8d, r8d
inc ebx
mov dword [rsp + 0x20], ebx
call fcn.1400526b0
mov rbx, rax
movzx ecx, byte [rbx + 0x23]
test edi, edi
je 0x14001057b
cmp cl, 4
je 0x1400106fb
mov rcx, qword [0x1401328d8]
mov edx, reloc.OLEAUT32.dll_SafeArrayLock
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov rdi, rax
test rax, rax
je 0x1400106e5
cmp dword [0x140136030], ebp
mov qword [0x1401328d8], rax
je 0x1400104ed
mov rcx, qword [0x140136038]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rdi, qword [0x1401328d8]
mov rax, qword [0x14012f240]
cmp byte [rax + 0x135], 0x44
jne 0x140010520
mov r8d, 0xa
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__i64tow]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, rdi
test rbx, rbx
jns 0x140010534
mov word [rdi], 0x2d
lea rsi, [rdi + 2]
neg rbx
mov r8d, reloc.WSOCK32.dll_recv
mov dword [rsi], 0x780030
lea rdx, [rsi + 4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__i64tow]
mov rax, qword [0x14012f240]
cmp byte [rax + 0x135], 0x48
jne 0x140010567
lea rcx, [rsi + 4]
call qword [sym.imp.USER32.dll_CharUpperW]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
pop rdi
pop rsi
ret
cmp cl, 4
je 0x14001059e
test cl, cl
jne 0x14001058a
mov rax, qword [rbx + 0x10]
jmp 0x14001058d
mov rax, rbx
test byte [rax + 0x21], 0xa
jne 0x14001059e
cmp qword [rax + 0x10], 0
je 0x1400106fb
mov rax, qword [rbx + 8]
cmp word [rax], 0
jne 0x1400106b9
mov rdi, qword [rbx + 0x18]
cmp cl, 4
jne 0x1400105c1
mov rdx, rsi
xor ecx, ecx
call rdi
mov rdi, rax
jmp 0x1400105ca
test rdi, rdi
jne 0x1400105ca
mov rdi, qword [rbx + 0x10]
mov rcx, qword [0x1401328d8]
lea rdx, [rdi + 0x101]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov rdi, rax
test rax, rax
je 0x1400106e5
mov qword [0x1401328d8], rax
movzx eax, byte [rbx + 0x23]
cmp al, 4
jne 0x140010633
mov rax, qword [rbx + 0x18]
lea rcx, [0x14007e930]
cmp rax, rcx
mov rdx, rsi
mov rcx, rdi
jne 0x14001062c
add qword [0x14012f240], 0x150
call rax
sub qword [0x14012f240], 0x150
jmp 0x140010765
call rax
jmp 0x140010765
test al, al
jne 0x140010640
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax]
jmp 0x14001064b
cmp al, 1
jne 0x140010765
mov rcx, qword [rbx]
mov rax, qword [0x14012f240]
cmp byte [rax + 0x135], 0x44
jne 0x14001066f
mov r8d, 0xa
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__i64tow]
jmp 0x140010765
test rcx, rcx
jns 0x140010680
mov word [rdi], 0x2d
add rdi, 2
neg rcx
mov r8d, reloc.WSOCK32.dll_recv
mov dword [rdi], 0x780030
lea rdx, [rdi + 4]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__i64tow]
mov rax, qword [0x14012f240]
cmp byte [rax + 0x135], 0x48
jne 0x140010765
lea rcx, [rdi + 4]
call qword [sym.imp.USER32.dll_CharUpperW]
jmp 0x140010765
cmp cl, 4
jne 0x1400106c8
mov rdx, rsi
xor ecx, ecx
call qword [rbx + reloc.OLEAUT32.dll_SafeArrayGetElement]
jmp 0x1400106d0
mov rax, qword [rbx + 0x10]
add rax, 2
mov rcx, qword [0x1401328d8]
mov rdx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
jne 0x140010728
mov r8, rsi
lea rdx, str.Out_of_memory.
lea rcx, [0x140136060]
call fcn.140064aa0
cmp dword [0x140136030], ebp
je 0x140010710
mov rcx, qword [0x140136038]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rsp + 0x50]
lea rax, [0x1400f97e4]
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
pop rdi
pop rsi
ret
movzx ecx, byte [rbx + 0x23]
mov qword [0x1401328d8], rax
test cl, cl
jne 0x140010745
mov rcx, qword [rbx + 0x10]
mov rdx, rax
call fcn.1400dce80
jmp 0x140010765
cmp cl, 1
jne 0x140010757
mov rdx, rax
mov rcx, rbx
call fcn.1400dce80
jmp 0x140010765
cmp cl, 4
jne 0x140010765
mov rdx, rsi
mov rcx, rax
call qword [rbx + reloc.OLEAUT32.dll_SafeArrayGetElement]
cmp dword [0x140136030], ebp
je 0x14001077a
mov rcx, qword [0x140136038]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [0x1401328d8]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
pop rdi
pop rsi
ret