Function at 0x402c20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x431040]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 0x10]
dec eax
cmp eax, 0x1f
ja case.default.0x402c48
movzx eax, byte [eax + 0x4030a4]
push ebx
push esi
push edi
jmp dword [eax*4 + 0x403090]
mov edi, dword [0x4338a8]
xor esi, esi
mov edx, dword [ebp + 0xc]
lea eax, [edi + 0x38]
nop dword [eax]
cmp dword [eax - 0x38], 0
je 0x402c6b
cmp dword [eax - 0x30], edx
je 0x402cbe
cmp dword [eax], 0
je 0x402c75
cmp dword [eax + 8], edx
je 0x402cae
cmp dword [eax + 0x38], 0
je 0x402c80
cmp dword [eax + 0x40], edx
je 0x402cb1
cmp dword [eax + 0x70], 0
je 0x402c8b
cmp dword [eax + 0x78], edx
je 0x402cb6
cmp dword [eax + 0xa8], 0
je 0x402c9c
cmp dword [eax + 0xb0], edx
je 0x402cbb
add esi, 5
add eax, 0x118
cmp esi, 0x15e
jl 0x402c60
jmp 0x402cbe
inc esi
jmp 0x402cbe
add esi, 2
jmp 0x402cbe
add esi, 3
jmp 0x402cbe
add esi, 4
cmp esi, 0x15e
je 0x402e68
lea ebx, [esi*8]
mov eax, 0x186a0
sub ebx, esi
shl ebx, 3
push 0
sub eax, dword [ebx + edi + 0x2c]
push eax
mov eax, dword [ebx + edi + 0x28]
add eax, dword [ebx + edi + 0x2c]
push eax
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
jg 0x402d24
cmp ecx, 0xffffffff
jne 0x402d11
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x40307b
mov ecx, dword [0x4338a8]
push 0x3e9
lea ecx, [ebx + ecx]
jmp 0x403076
mov eax, dword [0x4338a8]
add dword [ebx + eax + 0x2c], ecx
mov ecx, dword [0x4338a8]
cmp dword [ebx + ecx + 0x2c], 1
jl 0x402dbe
nop
mov eax, dword [ecx + ebx + 0x28]
add ecx, ebx
movzx edi, byte [eax]
mov edx, dword [edi*4 + 0x433cb0]
test edx, edx
je 0x402dea
mov eax, dword [ecx + 0x2c]
cmp eax, dword [edi*4 + 0x4338b0]
jl 0x402e68
push esi
call edx
mov ecx, dword [0x4338a8]
add esp, 4
cmp dword [ebx + ecx], 0
lea eax, [ebx + ecx]
je 0x402db1
mov edx, dword [eax + 0x28]
mov ecx, dword [edi*4 + 0x4338b0]
mov eax, dword [eax + 0x2c]
sub eax, ecx
push eax
lea eax, [edx + ecx]
push eax
push edx
call fcn.00408d40
mov ecx, dword [0x4338a8]
add esp, 0xc
mov eax, dword [edi*4 + 0x4338b0]
sub dword [ecx + ebx + 0x2c], eax
mov ecx, dword [0x4338a8]
mov eax, dword [ebx + ecx + 0x2c]
test eax, eax
je 0x402dd4
cmp eax, 1
jge 0x402d40
lea eax, [esi*8]
sub eax, esi
push 0x2712
lea ecx, [ecx + eax*8]
jmp 0x403076
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004082a2
mov esp, ebp
pop ebp
ret 0xc
push 0x3ea
jmp 0x403076
mov esi, dword [0x4338a8]
xor ecx, ecx
mov edx, dword [ebp + 0xc]
lea eax, [esi + 0x38]
cmp dword [eax - 0x38], 0
je 0x402e0d
cmp dword [eax - 0x30], edx
je 0x402e60
cmp dword [eax], 0
je 0x402e17
cmp dword [eax + 8], edx
je 0x402e50
cmp dword [eax + 0x38], 0
je 0x402e22
cmp dword [eax + 0x40], edx
je 0x402e53
cmp dword [eax + 0x70], 0
je 0x402e2d
cmp dword [eax + 0x78], edx
je 0x402e58
cmp dword [eax + 0xa8], 0
je 0x402e3e
cmp dword [eax + 0xb0], edx
je 0x402e5d
add ecx, 5
add eax, 0x118
cmp ecx, 0x15e
jl 0x402e02
jmp 0x402e60
inc ecx
jmp 0x402e60
add ecx, 2
jmp 0x402e60
add ecx, 3
jmp 0x402e60
add ecx, 4
cmp ecx, 0x15e
jne 0x402e7e
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004082a2
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ecx*8]
push 0
sub eax, ecx
push 0
push 0
lea ecx, [esi + eax*8]
call fcn.00403260
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004082a2
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
xor edx, edx
mov eax, dword [0x4338a8]
lea ecx, [eax + 0x70]
cmp dword [ecx - 0x70], 0
je 0x402f25
cmp dword [ecx - 0x38], 0
je 0x402f10
cmp dword [ecx], 0
je 0x402f0b
cmp dword [ecx + 0x38], 0
je 0x402f06
cmp dword [ecx + 0x70], 0
je 0x402f01
add edx, 5
add ecx, 0x118
cmp edx, 0x15e
jl 0x402ed1
jmp 0x402f11
add edx, 4
jmp 0x402f11
add edx, 3
jmp 0x402f11
add edx, 2
jmp 0x402f11
inc edx
cmp edx, 0x15e
jne 0x402f25
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x40307b
lea edi, [edx*8]
sub edi, edx
shl edi, 3
mov dword [edi + eax], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4338a8]
mov dword [edi + ecx + 4], eax
mov eax, dword [0x4338a8]
mov dword [edi + eax + 8], esi
movzx eax, word [ebp - 0x12]
mov esi, dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push dword [ebp - 0x10]
call esi
push eax
push 0x426458
call fcn.00402440
push eax
call fcn.00402290
add esp, 0x10
push 0xf
push dword [ebp - 0x10]
call esi
push eax
mov eax, dword [0x4338a8]
add eax, 0x10
add eax, edi
push eax
call fcn.0040f420
mov eax, dword [0x4338a8]
add esp, 0xc
mov ecx, 0x4340b0
mov dword [edi + eax + 0x24], 0
mov eax, dword [0x4338a8]
mov dword [edi + eax + 0x2c], 0
mov eax, dword [0x4338a8]
mov dword [edi + eax + 0x30], 0
call fcn.00403b70
push dword [0x4367c0]
mov ecx, dword [0x4338a8]
push 0x4340b0
push 1
lea ecx, [edi + ecx]
call fcn.00403260
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004082a2
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [0x4338a8]
xor ecx, ecx
mov edx, dword [ebp + 0xc]
lea eax, [esi + 0x38]
cmp dword [eax - 0x38], 0
je 0x40300d
cmp dword [eax - 0x30], edx
je 0x403060
cmp dword [eax], 0
je 0x403017
cmp dword [eax + 8], edx
je 0x403050
cmp dword [eax + 0x38], 0
je 0x403022
cmp dword [eax + 0x40], edx
je 0x403053
cmp dword [eax + 0x70], 0
je 0x40302d
cmp dword [eax + 0x78], edx
je 0x403058
cmp dword [eax + 0xa8], 0
je 0x40303e
cmp dword [eax + 0xb0], edx
je 0x40305d
add ecx, 5
add eax, 0x118
cmp ecx, 0x15e
jl 0x403002
jmp 0x403060
inc ecx
jmp 0x403060
add ecx, 2
jmp 0x403060
add ecx, 3
jmp 0x403060
add ecx, 4
cmp ecx, 0x15e
je 0x40307b
lea eax, [ecx*8]
sub eax, ecx
push 0
lea ecx, [esi + eax*8]
call fcn.004031b0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004082a2
mov esp, ebp
pop ebp
ret 0xc