Function at 0x401d60
Capabilities:
Create thread
Initialize winsock library
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402f58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b0
push ebx
push esi
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], esp
call fcn.00402a00
xor ebx, ebx
or esi, 0xffffffff
push ebx
push esi
push 0x405550
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], 0x64
mov dword [ebp - 0x18], 0xc8
call fcn.00401110
add esp, 0xc
lea eax, [ebp - 0x1bc]
mov byte [ebp - 4], 1
push eax
push 0x101
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x401df8
push 1
push esi
push 0x405534
call fcn.00401110
add esp, 0xc
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push 1
push 2
call sub.WS2_32.dll_socket
push 0x13fd
mov dword [0x40571c], eax
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x2c], 2
call sub.WS2_32.dll_htons
mov edx, dword [0x40571c]
lea ecx, [ebp - 0x2c]
push 0x10
push ecx
push edx
mov word [ebp - 0x2a], ax
call sub.WS2_32.dll_bind
cmp eax, esi
jne 0x401e62
push 1
push esi
push 0x405518
call fcn.00401110
add esp, 0xc
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x40571c]
push 0xa
push eax
call sub.WS2_32.dll_listen
test eax, eax
je 0x401ea1
push 1
push esi
push 0x4054f4
call fcn.00401110
add esp, 0xc
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x4054d4
call fcn.00401110
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push ebx
push 0x4016d0
push 0x1000
push ebx
call edi
mov esi, eax
cmp esi, ebx
je 0x401fa6
push esi
lea edx, [ebp - 0x14]
push 0x4054ac
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp - 0x14]
add esp, 0xc
push ebx
push 0xffffffffffffffff
push eax
call fcn.00401110
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
push esi
call ebx
lea ecx, [ebp - 0x18]
push ecx
push 4
push 0
push 0x401a80
push 0x1000
push 0
call edi
mov esi, eax
test esi, esi
je 0x401f73
push esi
lea edx, [ebp - 0x14]
push 0x405484
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp - 0x14]
add esp, 0xc
push 0
push 0xffffffffffffffff
push eax
call fcn.00401110
add esp, 0xc
push 0xfffffffffffffff1
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push 0xffffffffffffffff
push 0x405464
call fcn.00401110
add esp, 0xc
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push 0xffffffffffffffff
push 0x405450
jmp 0x401f7c