Function at 0x40e170
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475200
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x487080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x3c], esi
sub esp, 0x18
mov dword [ebp - 4], 0
lea eax, [ebx + 8]
mov ecx, esp
push eax
call fcn.0041c2c0
lea ecx, [ebp - 0x30]
call fcn.0040a330
add esp, 0x18
mov byte [ebp - 4], 1
mov eax, closesocket
mov edx, dword [esi + 0x2ac]
sub eax, edx
mov edi, dword [ebp - 0x20]
cmp eax, edi
jb 0x40e4ba
cmp dword [esi + 0x2b0], 0xf
lea ecx, [esi + 0x29c]
jbe 0x40e204
mov ecx, dword [esi + 0x29c]
cmp dword [ebp - 0x1c], 0xf
lea eax, [ebp - 0x30]
push edi
cmova eax, dword [ebp - 0x30]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x54]
call fcn.004213e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
mov edi, dword [ebp - 0x40]
mov eax, edi
mov edx, dword [ebp - 0x44]
sub eax, edx
cmp eax, 1
jb 0x40e254
cmp edi, 0xf
lea eax, [edx + 1]
mov dword [ebp - 0x44], eax
cmova ecx, dword [ebp - 0x54]
mov al, byte [0x4787d4]
mov byte [ecx + edx], al
lea eax, [ebp - 0x54]
mov byte [ecx + edx + 1], 0
jmp 0x40e269
push 1
push 0x4787d4
mov byte [ebp - 0x18], 0
push dword [ebp - 0x18]
push 1
call fcn.00420270
movups xmm0, xmmword [eax]
lea ecx, [esi + 0x29c]
movups xmmword [ebp - 0x6c], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x6c]
push eax
movq qword [ebp - 0x5c], xmm0
call fcn.0041c100
mov ecx, dword [ebp - 0x58]
cmp ecx, 0xf
jbe 0x40e2ca
mov edx, dword [ebp - 0x6c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e2c0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e2f4
push ecx
push edx
call fcn.00473531
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x40]
cmp ecx, 0xf
jbe 0x40e304
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e2fa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40e2fa
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00473531
add esp, 8
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x30]
mov esi, dword [ebp - 0x30]
cmp edi, 0xf
mov edx, dword [ebp - 0x20]
push 4
push str._SB_
cmova ecx, esi
push 0
call fcn.0041f950
add esp, 0xc
cmp eax, 0xffffffff
je 0x40e370
mov ecx, dword [ebp - 0x3c]
cmp byte [ecx + 0x144], 0
je 0x40e370
push dword [ecx + 0x240]
xorps xmm0, xmm0
sub esp, 0x18
mov ecx, esp
push 0x16
movups xmmword [ecx], xmm0
push str.actioninput_ntext_go
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.0041fb70
push 2
call fcn.00402fc0
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x30]
push 4
cmp edi, 0xf
push str._SB_
cmova ecx, esi
push 0
call fcn.0041f950
add esp, 0xc
cmp eax, 0xffffffff
je 0x40e411
cmp byte [0x4896aa], 0
jne 0x40e411
mov eax, dword [ebp - 0x3c]
cmp byte [eax + 0x224], 0
je 0x40e411
cmp byte [eax + 0xe0], 0
jne 0x40e411
push 8
call fcn.0047319b
mov ecx, dword [ebp - 0x3c]
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [eax], ecx
mov dword [eax + 4], 0x40e110
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
push ecx
push 0
push eax
push 0x4241f0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 0x38], eax
test eax, eax
je 0x40e481
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x40e479
push ecx
push eax
call dword [sym.imp.MSVCP140.dll__Thrd_detach]
add esp, 8
test eax, eax
jne 0x40e479
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
cmp edi, 0xf
jbe 0x40e43b
inc edi
mov eax, esi
cmp edi, 0x1000
jb 0x40e431
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e473
push edi
push esi
call fcn.00473531
add esp, 8
mov ecx, dword [ebx + 0x1c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp ecx, 0xf
jbe 0x40e49a
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e490
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40e490
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 6
mov dword [ebp - 0x34], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push ecx
push edx
call fcn.00473531
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00472ead
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18
call fcn.004013c0
int3