Function at 0x409aa8
Capabilities:
Create thread
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x42a43c]
xor eax, ebp
mov dword [ebp + 0x19c], eax
push ebx
push edi
mov edi, dword [0x43f758]
xor ebx, ebx
mov eax, edi
xor ecx, ecx
cmp eax, ebx
je 0x409b2f
mov eax, dword [eax + 0x450c]
inc ecx
cmp eax, ebx
jne 0x409ad5
cmp ecx, 0x64
jl 0x409b2f
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push 0x204
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 0x1a8]
mov dword [ebp - 0x7c], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jle 0x409b27
push dword [ebp - 0x74]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.max_number_of_threads_reached__connection_from__s_dropped
push 1
call fcn.004010eb
add esp, 0xc
or eax, 0xffffffff
jmp 0x409d0d
push esi
mov esi, edi
jmp 0x409b43
cmp dword [esi + 4], ebx
je 0x409b3d
cmp dword [esi], ebx
je 0x409b47
mov esi, dword [esi + 0x450c]
cmp esi, ebx
jne 0x409b34
xor eax, eax
cmp esi, ebx
sete al
mov dword [ebp - 0x80], eax
cmp eax, ebx
je 0x409b9c
cmp edi, ebx
je 0x409b6d
mov eax, dword [edi + 0x450c]
cmp eax, ebx
je 0x409b69
mov edi, eax
cmp edi, ebx
jne 0x409b59
cmp edi, ebx
jne 0x409b80
push 0x4510
push 1
call fcn.0040f658
mov dword [0x43f758], eax
jmp 0x409b92
push 0x4510
push 1
call fcn.0040f658
mov dword [edi + 0x450c], eax
pop ecx
mov esi, eax
pop ecx
mov dword [esi + 0x450c], ebx
push esi
call fcn.004098b7
pop ecx
lea ecx, [ebp - 0x7c]
push ecx
lea edi, [esi + 0x4268]
push edi
push 0
mov eax, 0x204
push eax
lea ebx, [esi + 0x4278]
push ebx
push dword [ebp + 0x1a8]
mov dword [ebp - 0x7c], eax
call dword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jge 0x409c0b
call fcn.0040c636
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Error_:_RecvFrom_returns__d:___s_
push 0
call fcn.004010eb
add esp, 0x10
cmp dword [esi + 4], 0
jne 0x409d09
mov eax, dword [0x43f758]
jmp 0x409bff
mov eax, ecx
mov ecx, dword [eax + 0x450c]
cmp ecx, esi
jne 0x409bfd
jmp 0x409c53
push eax
push ebx
push edi
call fcn.004099ec
add esp, 0xc
test eax, eax
je 0x409c6b
push dword [esi + 0x426c]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.Warning_:_Unaccepted_request_received_from__s
push 1
call fcn.004010eb
add esp, 0xc
cmp dword [esi + 4], 0
jne 0x409d09
mov eax, dword [0x43f758]
jmp 0x409c49
mov eax, ecx
mov ecx, dword [eax + 0x450c]
cmp ecx, esi
jne 0x409c47
mov ecx, dword [esi + 0x450c]
push esi
mov dword [eax + 0x450c], ecx
call fcn.0040e696
pop ecx
jmp 0x409d09
movzx eax, word [esi + 0x426a]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
push dword [esi + 0x426c]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
xor edi, edi
push str.Connection_received_from__s_on_port__d
inc edi
push edi
call fcn.004010eb
xor ebx, ebx
add esp, 0x10
mov dword [esi], edi
cmp dword [ebp - 0x80], ebx
je 0x409ce8
lea edi, [esi + 0xc]
push edi
push ebx
push esi
push 0x40b379
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
mov dword [esi + 8], eax
push dword [0x43f758]
push dword [esi + 0x18]
push dword [edi]
push str.Thread__d_transfer__d_started__records__p__p__n
call fcn.0040c69d
push dword [esi + 8]
push str.thread__d_started
push 9
call fcn.004010eb
add esp, 0x20
jmp 0x409d09
push dword [esi + 0x18]
push dword [esi + 0xc]
push str.waking_up_thread__d_for_transfer__d_n
call fcn.0040c69d
mov esi, dword [esi + 0x10]
add esp, 0xc
cmp esi, ebx
je 0x409d09
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
inc eax
pop esi
mov ecx, dword [ebp + 0x19c]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040e208
add ebp, 0x1a0
leave
ret