Function at 0x402d90
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x30c
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0
push 0
push 0
lea esi, [ebx + 0x2404]
push 0
push 0x68
push esi
call fcn.004022e0
lea edi, [ebx + 0x2410]
push 0x20
push edi
push esi
call fcn.00402280
mov eax, dword [ebx + 0x2844]
add esp, 0x24
cmp eax, 9
jl 0x402ddb
mov dword [ebx + 0x2844], 1
jmp 0x402de2
inc eax
mov dword [ebx + 0x2844], eax
mov edx, dword [esp + 0x320]
test edx, edx
je 0x402e32
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebp, [ebx + 0x2430]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x400
push ecx
push ebp
push edx
call fcn.00401bb0
add esp, 0x10
lea eax, [ebx + 0x2410]
lea esi, [ebx + 4]
push ebp
push eax
mov eax, dword [ebx + 0x2844]
push eax
push str._d_s_s_
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
jmp 0x402e4c
mov ecx, dword [ebx + 0x2844]
push edi
lea esi, [ebx + 4]
push ecx
push str._d_s_
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov edx, dword [ebx + 0x2854]
cmp edx, 0xffffffff
je 0x402e8a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x402e8a
mov edx, dword [ebx + 0x2854]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 0x2854], 0xffffffff
push 0x12c
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [ebx + 0x2854]
lea esi, [ebx + 0x404]
push 0
push 0x2000
push esi
push eax
call dword [sym.imp.WS2_32.dll_recv]
push 0x23
push esi
mov esi, dword [sym.imp.MSVCRT.dll_strchr]
mov byte [eax + ebx + 0x404], 0
call esi
mov edi, eax
add esp, 8
test edi, edi
je case.0x402f15.501
push 0x21
push edi
call esi
add esp, 8
test eax, eax
je case.0x402f15.501
lea ebp, [edi + 1]
lea ecx, [esp + 0x10]
push ebp
push ecx
mov byte [eax], 0
call fcn.004022c0
mov edx, dword [esp + 0x1c]
add esp, 8
and edx, 0xffff
lea eax, [edx - 0x1f5]
cmp eax, 0x1d
ja case.0x402f15.501
xor ecx, ecx
mov cl, byte [eax + 0x403050]
jmp dword [ecx*4 + 0x403040]
lea edx, [esp + 0x1c]
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x1c]
push 0x100
add ebp, 0x10
push edx
push ebp
rep stosd dword es:[edi], eax
call fcn.00402190
lea eax, [esp + 0x28]
push 0x2f
push eax
call esi
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x402fa3
mov byte [ebp], 0
inc ebp
push 0x2f
push ebp
call esi
add esp, 8
test eax, eax
je 0x402fa3
mov byte [eax], 0
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 0x2830]
mov eax, ecx
mov esi, edi
mov edi, edx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ebx + 0x2840], eax
mov dword [ebx + 0x2860], ecx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x30c
ret 4
lea edx, [esp + 0x11c]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x11c]
push 0x200
add ebp, 0x10
push edx
push ebp
rep stosd dword es:[edi], eax
call fcn.00402190
lea eax, [esp + 0x128]
push 0x2f
push eax
call esi
mov edx, eax
add esp, 0x14
test edx, edx
je case.0x402f15.501
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
mov byte [edx], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [ebx + 0x2830]
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc edx
rep movsb byte es:[edi], byte [esi]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebx + 0x2840], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30c
ret 4