Function at 0x40b540
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410fbd
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x41700c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0
mov byte [ebp - 0x15], 0
call fcn.00408cf0
push eax
mov ecx, 0x41708c
call fcn.00407400
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x40b5c9
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b5bf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40b5bf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040f66d
add esp, 8
push 0
push 0
push 0
push 0x40b4d0
push 0
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0x18
mov dword [ebp - 0x24], eax
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x417868
call fcn.004028b0
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
xorps xmm0, xmm0
push 0x1f
movups xmmword [ecx], xmm0
push str.TEST_RUN:_createt_thread_socket
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00403260
mov cl, byte [0x4177d8]
mov byte [ebp - 4], 1
call fcn.00405fa0
mov ecx, dword [0x41709c]
mov eax, accept
sub eax, ecx
add esp, 0x30
cmp eax, 1
jb 0x40b9ab
cmp dword [0x4170a0], 0x10
mov eax, 0x41708c
push ecx
cmovae eax, dword [0x41708c]
push eax
push 1
push 0x412724
push ecx
push dword [ebp - 0x20]
lea ecx, [ebp - 0x3c]
call fcn.00408090
sub esp, 0x18
mov byte [ebp - 4], 3
mov edi, esp
mov dword [ebp - 0x20], esp
mov dword [ebp - 0x1c], edi
mov edx, dword [ebp - 0x28]
mov eax, edx
mov ecx, dword [ebp - 0x2c]
sub eax, ecx
push 9
push str._TEST_RUN
cmp eax, 9
jb 0x40b6b9
cmp edx, 0x10
lea esi, [ebp - 0x3c]
lea eax, [ecx + 9]
cmovae esi, dword [ebp - 0x3c]
add esi, ecx
mov dword [ebp - 0x2c], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 9], 0
lea eax, [ebp - 0x3c]
jmp 0x40b6ca
mov byte [ebp - 0x1c], 0
lea ecx, [ebp - 0x3c]
push dword [ebp - 0x1c]
push 9
call fcn.00403480
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
sub esp, 0x18
mov byte [ebp - 4], 4
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004028b0
mov byte [ebp - 4], 3
call fcn.0040e780
mov byte [ebp - 4], 1
add esp, 0x30
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x40b757
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b74d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40b74d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040f66d
add esp, 8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x417868
call fcn.004028b0
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
xorps xmm0, xmm0
push 0x12
movups xmmword [ecx], xmm0
push str.TEST_RUN:_test_run
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00403260
mov cl, byte [0x4177d8]
mov byte [ebp - 4], 1
call fcn.00405fa0
add esp, 0x30
mov esi, 0x12c
nop dword [eax]
sub esp, 0x18
lea eax, [ebp + 8]
mov edi, esp
sub esp, 0x18
mov ecx, esp
push eax
call fcn.004028b0
mov ecx, edi
call fcn.00406510
add esp, 0x18
call fcn.0040e3a0
add esp, 0x18
test eax, eax
je 0x40b7e9
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esi, 1
jne 0x40b7b0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x417868
call fcn.004028b0
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
xorps xmm0, xmm0
push 0x13
movups xmmword [ecx], xmm0
push str.TEST_RUN:_end_wait
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00403260
mov cl, byte [0x4177d8]
mov byte [ebp - 4], 1
call fcn.00405fa0
add esp, 0x30
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x417868
call fcn.004028b0
sub esp, 0x18
mov byte [ebp - 4], 7
mov ecx, esp
mov eax, accept
mov dword [ebp - 0x1c], ecx
mov edx, dword [0x4178a8]
sub eax, edx
cmp eax, 0x10
jb 0x40b9b0
cmp dword [0x4178ac], 0x10
mov eax, 0x417898
push edx
cmovae eax, dword [0x417898]
push eax
push 0x10
push str.TEST_RUN:_mess:
push ecx
push dword [ebp - 0x20]
call fcn.00408090
mov cl, byte [0x4177d8]
mov dword [ebp - 0x1c], 0xe
mov byte [ebp - 4], 1
call fcn.00405fa0
mov edx, dword [0x4178a8]
add esp, 0x30
cmp dword [0x4178ac], 0x10
mov ecx, 0x417898
cmovae ecx, dword [0x417898]
push 0
push 0x412570
call fcn.00408ad0
add esp, 8
test al, al
jne 0x40b8f5
mov edx, 0x417898
lea ecx, [ebp - 0x30]
call fcn.004016a0
mov dword [ebp - 0x1c], 0xf
mov eax, dword [eax]
cmp byte [eax], 0x93
jne 0x40b8f5
mov byte [ebp - 0x15], 1
jmp 0x40b8ff
test byte [ebp - 0x1c], 1
mov byte [ebp - 0x15], 0
je 0x40b943
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x40b943
mov edx, dword [ebp - 0x28]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x40b92b
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40b92b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0040f66d
add esp, 8
jmp 0x40b943
mov esi, dword [ebp - 0x24]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x40b98c
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b982
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40b982
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040f66d
add esp, 8
mov al, byte [ebp - 0x15]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040f11c
mov esp, ebp
pop ebp
ret
call fcn.00401420
call fcn.00401420
int3