Function at 0x459af0
Capabilities:
Create thread
Set socket configuration
Terminate thread

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 0x24c], ebp
jne 0x459d14
mov eax, dword [esi]
call dword [eax + 0x18]
mov edi, 1
mov ecx, esi
mov dword [esi + 0x24c], edi
mov dword [esi + 0x70], ebp
call fcn.00458fe0
cmp dword [esi + 0x294], ebp
jne 0x459b3c
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00458ab0
add esp, 4
mov dword [esi + 0x294], eax
cmp dword [esi + 0x1c], ebp
jne 0x459b67
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x88], eax
mov eax, dword [esi + 0x294]
cmp eax, ebp
mov dword [esi + 0x84], edx
jle 0x459b7f
mov dword [esi + 0x88], eax
jmp 0x459b7f
mov edx, dword [esi + 0x1a4]
lea ecx, [esi + 0x17c]
mov dword [esi + 0x84], ecx
mov dword [esi + 0x88], edx
mov eax, dword [esp + 0x34]
mov ebx, dword [esi + 0x64]
lea ecx, [esp + 0x14]
mov dword [esi + 0x64], eax
push ecx
push ebp
push esi
push 0x459d70
push ebp
push ebp
mov dword [esi + 0x80], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebp
mov dword [esi + 0x68], eax
je 0x459cfd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x80]
cmp eax, edi
jne 0x459be1
mov ecx, dword [esi + 0x250]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.004598a0
test eax, eax
je 0x459c53
cmp dword [esi + 0x80], edi
je 0x459bc2
mov ecx, dword [esi + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x80]
mov dword [esi + 0x68], ebp
cmp eax, 2
jne 0x459cfd
cmp word [0x4dd262], 0x200
mov edi, dword [esi + 0x6c]
jb 0x459c3a
lea ecx, [esp + 0x34]
push 4
push ecx
push 0x80
push 0xffff
push edi
mov word [esp + 0x48], 1
mov word [esp + 0x4a], 5
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x459c3a
call sub.WSOCK32.dll_WSAGetLastError
push 0x3f
push edi
mov ecx, esi
call sub.MFC42.DLL_CAsyncSocket::Attach
test eax, eax
jne 0x459c70
push edi
call sub.WSOCK32.dll_closesocket
jmp 0x459cfd
mov eax, dword [esi + 0x68]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x68], ebp
jmp 0x459cfd
cmp dword [esi + 0x1c], ebp
je 0x459d20
cmp dword [esi + 0x1a8], 4
jne 0x459cd3
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push edx
mov ecx, esi
call fcn.00459130
test eax, eax
jne 0x459d20
mov ecx, esi
call fcn.00459790
test eax, eax
jne 0x459cb0
mov dword [esi + 0x8c], 0x27da
mov ecx, dword [esi + 0x8c]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x38]
mov dword [esi + 0x64], ebx
mov dword [esi + 0x24c], ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 0xc
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
push eax
mov ecx, esi
call fcn.00459260
test eax, eax
jne 0x459d20
mov ecx, esi
call fcn.00459790
test eax, eax
jne 0x459cfd
mov dword [esi + 0x8c], 0x27da
mov eax, dword [esi + 0x8c]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x38]
mov dword [esi + 0x64], ebx
mov dword [esi + 0x24c], ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 0xc
cmp dword [esi + 0x294], ebp
jle 0x459d58
mov ecx, dword [esp + 0x30]
mov edx, dword [esi + 0x298]
mov eax, dword [esi]
mov dword [esp + 0x20], ecx
push ebp
lea ecx, [esp + 0x1c]
push ebp
push ecx
mov ecx, esi
mov dword [esp + 0x24], 0x663
mov dword [esp + 0x28], 8
mov dword [esp + 0x30], edx
call dword [eax + 0x54]
mov dword [esi + 0x64], ebx
mov dword [esi + 0x24c], ebp
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret 0xc