Function at 0x403e20
Capabilities:
Create thread
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x438170]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push str.Listen_...
push edi
mov dword [ebp - 0x12c], edi
mov dword [ebp - 0x130], 5
mov dword [edi + 0xeb3c], 0
call fcn.00401a80
push 0x10114
call fcn.00414cfb
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x403eb1
push 0x10114
push 0
push ebx
call fcn.0041e930
mov byte [ebx + 8], 0
add esp, 0xc
mov dword [ebx + 0x108], 0
mov dword [ebx + 0x10c], 0
mov dword [ebx + 0x110], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0x4352dc
jmp 0x403eb3
xor ebx, ebx
push str.Accepting_...
push edi
call fcn.00401a80
mov eax, dword [ebp + 8]
add esp, 8
mov ecx, ebx
mov dword [ebx + 0x108], eax
call fcn.0040cf90
mov esi, eax
test esi, esi
je 0x40419c
mov eax, dword [ebx + 0x108]
push eax
push eax
push esi
mov ecx, ebx
call fcn.0040d040
test eax, eax
jns 0x403f04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [ebx + 4], eax
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x40419c
push 0xa
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
js 0x403eef
mov dword [ebx + 0x110], esi
mov ecx, ebx
xor esi, esi
call fcn.0040cae0
test eax, eax
jne 0x403f63
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 0x66666667
imul esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
shl ecx, 3
mov eax, esi
sub eax, ecx
jne 0x403f57
push 0x434280
push edi
call fcn.00401a80
add esp, 8
mov ecx, ebx
inc esi
call fcn.0040cae0
test eax, eax
je 0x403f24
mov esi, dword [ebx + 0x110]
test esi, esi
je 0x403f87
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 0x110], 0
push 0x434284
push edi
call fcn.00401a80
push 0x10
lea eax, [ebp - 0x1c]
push 0x44a460
push eax
call fcn.004154d0
mov eax, dword [edi + 0x2dc]
add esp, 0x14
mov byte [ebp - 0xd], 0
push str.Auth_...
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 1
call fcn.00401a80
mov eax, dword [ebx]
add esp, 8
lea ecx, [ebp - 0x1c]
push 0x18
push ecx
push 2
mov ecx, ebx
call dword [eax + 0x10]
test eax, eax
jle 0x40419c
push str.Wait_Authack_...
push edi
call fcn.00401a80
mov eax, dword [ebx + 0x10c]
add esp, 8
lea ecx, [ebp - 0x144]
push ecx
push 0
push 0
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x124], eax
push ecx
inc eax
push eax
mov dword [ebp - 0x128], 1
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0x4c4b40
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 4], eax
test esi, esi
jle 0x40419c
push str.Read_Authack_...
push edi
call fcn.00401a80
mov eax, dword [ebx]
add esp, 8
lea ecx, [ebp - 0x134]
push ecx
lea ecx, [ebp - 0x13c]
push ecx
lea ecx, [ebp - 0x138]
push ecx
mov ecx, ebx
call dword [eax + 0x14]
test eax, eax
jle 0x40419c
cmp dword [ebp - 0x138], 2
jne 0x40419c
cmp dword [ebp - 0x134], 0xac
jb 0x40419c
push 0x434240
push edi
call fcn.00401a80
mov edx, dword [ebp - 0x13c]
mov eax, dword [ebx]
add esp, 8
mov esi, edx
mov ecx, 0x2b
lea edi, [ebp - 0xd0]
rep movsd dword es:[edi], dword [esi]
push edx
mov ecx, ebx
call dword [eax + 0x18]
mov edi, dword [ebp - 0x12c]
add edi, 0x2e0
cmp dword [ebp - 0xd0], 0
mov ecx, 0x2a
lea esi, [ebp - 0xcc]
rep movsd dword es:[edi], dword [esi]
je 0x404192
mov ecx, dword [ebp - 0x12c]
push 0
mov edx, dword [ecx + 0x2dc]
mov eax, edx
imul eax, eax, 0xa8
lea edi, [ecx + 0x2e0]
add edi, eax
lea eax, [edx + 1]
mov dword [ecx + 0x2dc], eax
push 0
mov ecx, 0x2a
lea esi, [ebp - 0xcc]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x12c]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
push 0x4014a0
push 0
push 0
call esi
mov dword [edi + 0xeb90], eax
push 0
push 0
push edi
push 0x4014c0
push 0
push 0
call esi
mov dword [edi + 0xeb94], eax
push 0x80
lea eax, [edi + 0x10]
push 0x432642
push eax
mov dword [edi + 4], ebx
call fcn.004154d0
mov eax, dword [ebp + 8]
mov byte [edi + 0x8f], 0
add esp, 0xc
mov dword [edi + 0x90], eax
mov dword [edi + 0xc], 6
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004144c7
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x130], 0x56
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x130]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004144c7
mov esp, ebp
pop ebp
ret 8