Function at 0x4491c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x5b706c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 0x38], ebx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x40], esi
mov ecx, ebx
mov dword [ebp - 0x3c], eax
mov dword [eax], 0
call fcn.00453a50
test eax, eax
jle 0x44921d
push esi
push ebx
lea edx, [ebp - 0x14]
mov ecx, 2
call fcn.004541d0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x50]
mov ecx, ebx
call fcn.00453b30
test eax, eax
jle 0x44924e
push esi
push ebx
lea edx, [ebp - 0x50]
mov ecx, 0x17
call fcn.004541d0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x350]
sub eax, 1
je 0x449287
sub eax, 1
je 0x449271
xor esi, esi
call fcn.0044a5d0
test eax, eax
mov ecx, 2
cmove esi, ecx
jmp 0x44928c
mov esi, 0x17
call fcn.0044a5d0
test eax, eax
mov ecx, 2
cmove esi, ecx
jmp 0x44928c
mov esi, 2
mov eax, dword [edi + 0x94]
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x30], esi
mov esi, dword [ebp - 0x40]
push esi
push 0x587f9c
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x10]
push 0xc
push eax
movups xmmword [ebp - 0x24], xmm0
call fcn.0043c730
push 0x50
push 1
call dword [0x5b7b78]
mov ebx, eax
mov dword [ebp - 0x14], 0xc
add esp, 0x18
mov dword [edi + 0x4d4], ebx
test ebx, ebx
je 0x44944d
mov dword [edi + 0x4c4], esi
lea esi, [ebx + 0x10]
push 0x3c
push 0
mov dword [edi + 0x4cc], 0
mov dword [edi + 0x4d0], 0
mov dword [edi + 0x4c8], 0
push esi
mov dword [ebx], 0
call fcn.00525340
mov eax, dword [ebp - 0x40]
add esp, 0xc
mov dword [esi + 0x38], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 4], 1
movups xmm0, xmmword [ebp - 0x34]
push 0x18
movups xmmword [esi + 0x18], xmm0
movups xmm0, xmmword [ebp - 0x24]
movups xmmword [esi + 0x28], xmm0
call dword [0x5b7b68]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x4493fc
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push dword [ebp - 0x38]
mov dword [esi + 0x10], 0
call dword [0x5b7b74]
add esp, 4
mov dword [esi + 8], eax
test eax, eax
je 0x4493fc
push dword [edi + 0x4c0]
call dword [0x5b7b6c]
add esp, 4
push dword [ebp - 0x38]
call dword [0x5b7b74]
add esp, 4
mov dword [edi + 0x4c0], eax
test eax, eax
je 0x4493d3
push 0
push 0
push esi
push 0x448dc0
push 0
push 0
mov dword [ebx + 0x14], 0
call fcn.0052f687
add esp, 0x18
test eax, eax
je 0x4493ba
cmp eax, 0xffffffff
jne 0x4493bc
xor eax, eax
mov dword [ebx], eax
test eax, eax
jne 0x4493e0
mov dword [ebx + 0x14], 1
call fcn.005281f2
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
lea ecx, [edi + 0x4c0]
call fcn.00448eb0
jmp 0x44944d
mov eax, dword [ebp - 0x3c]
mov dword [eax], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
test eax, eax
je 0x449414
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [esi]
call dword [0x5b7b6c]
add esp, 4
push dword [esi + 8]
call dword [0x5b7b6c]
mov ecx, dword [esi + 0x14]
add esp, 4
test ecx, ecx
je 0x44942c
call fcn.00453ff0
push 0x3c
push 0
push esi
call fcn.00525340
add esp, 0xc
mov dword [edi + 0x4d4], 0
push ebx
call dword [0x5b7b6c]
add esp, 4
call fcn.005281f2
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
call fcn.005281f2
mov ecx, edi
mov edx, dword [eax]
call fcn.00453870
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x10]
call fcn.00454030
add esp, 8
test eax, eax
je 0x4494a1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, edi
call fcn.00453870
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x3c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret