Function at 0x402c10
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.0x402c38
movzx eax, byte [eax + 0x403094]
push ebx
push esi
push edi
jmp dword [eax*4 + 0x403080]
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 0x402c5b
cmp dword [eax - 0x30], edx
je 0x402cae
cmp dword [eax], 0
je 0x402c65
cmp dword [eax + 8], edx
je 0x402c9e
cmp dword [eax + 0x38], 0
je 0x402c70
cmp dword [eax + 0x40], edx
je 0x402ca1
cmp dword [eax + 0x70], 0
je 0x402c7b
cmp dword [eax + 0x78], edx
je 0x402ca6
cmp dword [eax + 0xa8], 0
je 0x402c8c
cmp dword [eax + 0xb0], edx
je 0x402cab
add esi, 5
add eax, 0x118
cmp esi, 0x15e
jl 0x402c50
jmp 0x402cae
inc esi
jmp 0x402cae
add esi, 2
jmp 0x402cae
add esi, 3
jmp 0x402cae
add esi, 4
cmp esi, 0x15e
je 0x402e58
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 0x402d14
cmp ecx, 0xffffffff
jne 0x402d01
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x40306b
mov ecx, dword [0x4338a8]
push 0x3e9
lea ecx, [ebx + ecx]
jmp 0x403066
mov eax, dword [0x4338a8]
add dword [ebx + eax + 0x2c], ecx
mov ecx, dword [0x4338a8]
cmp dword [ebx + ecx + 0x2c], 1
jl 0x402dae
nop
mov eax, dword [ecx + ebx + 0x28]
add ecx, ebx
movzx edi, byte [eax]
mov edx, dword [edi*4 + 0x433cb0]
test edx, edx
je 0x402dda
mov eax, dword [ecx + 0x2c]
cmp eax, dword [edi*4 + 0x4338b0]
jl 0x402e58
push esi
call edx
mov ecx, dword [0x4338a8]
add esp, 4
cmp dword [ebx + ecx], 0
lea eax, [ebx + ecx]
je 0x402da1
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.00408d60
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 0x402dc4
cmp eax, 1
jge 0x402d30
lea eax, [esi*8]
sub eax, esi
push 0x2712
lea ecx, [ecx + eax*8]
jmp 0x403066
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004082bc
mov esp, ebp
pop ebp
ret 0xc
push 0x3ea
jmp 0x403066
mov esi, dword [0x4338a8]
xor ecx, ecx
mov edx, dword [ebp + 0xc]
lea eax, [esi + 0x38]
cmp dword [eax - 0x38], 0
je 0x402dfd
cmp dword [eax - 0x30], edx
je 0x402e50
cmp dword [eax], 0
je 0x402e07
cmp dword [eax + 8], edx
je 0x402e40
cmp dword [eax + 0x38], 0
je 0x402e12
cmp dword [eax + 0x40], edx
je 0x402e43
cmp dword [eax + 0x70], 0
je 0x402e1d
cmp dword [eax + 0x78], edx
je 0x402e48
cmp dword [eax + 0xa8], 0
je 0x402e2e
cmp dword [eax + 0xb0], edx
je 0x402e4d
add ecx, 5
add eax, 0x118
cmp ecx, 0x15e
jl 0x402df2
jmp 0x402e50
inc ecx
jmp 0x402e50
add ecx, 2
jmp 0x402e50
add ecx, 3
jmp 0x402e50
add ecx, 4
cmp ecx, 0x15e
jne 0x402e6e
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004082bc
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.00403250
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004082bc
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 0x402f15
cmp dword [ecx - 0x38], 0
je 0x402f00
cmp dword [ecx], 0
je 0x402efb
cmp dword [ecx + 0x38], 0
je 0x402ef6
cmp dword [ecx + 0x70], 0
je 0x402ef1
add edx, 5
add ecx, 0x118
cmp edx, 0x15e
jl 0x402ec1
jmp 0x402f01
add edx, 4
jmp 0x402f01
add edx, 3
jmp 0x402f01
add edx, 2
jmp 0x402f01
inc edx
cmp edx, 0x15e
jne 0x402f15
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x40306b
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 0x426448
call fcn.00402430
push eax
call fcn.004022b0
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.0040f440
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.00403b60
push dword [0x4367c0]
mov ecx, dword [0x4338a8]
push 0x4340b0
push 1
lea ecx, [edi + ecx]
call fcn.00403250
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004082bc
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 0x402ffd
cmp dword [eax - 0x30], edx
je 0x403050
cmp dword [eax], 0
je 0x403007
cmp dword [eax + 8], edx
je 0x403040
cmp dword [eax + 0x38], 0
je 0x403012
cmp dword [eax + 0x40], edx
je 0x403043
cmp dword [eax + 0x70], 0
je 0x40301d
cmp dword [eax + 0x78], edx
je 0x403048
cmp dword [eax + 0xa8], 0
je 0x40302e
cmp dword [eax + 0xb0], edx
je 0x40304d
add ecx, 5
add eax, 0x118
cmp ecx, 0x15e
jl 0x402ff2
jmp 0x403050
inc ecx
jmp 0x403050
add ecx, 2
jmp 0x403050
add ecx, 3
jmp 0x403050
add ecx, 4
cmp ecx, 0x15e
je 0x40306b
lea eax, [ecx*8]
sub eax, ecx
push 0
lea ecx, [esi + eax*8]
call fcn.004031a0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004082bc
mov esp, ebp
pop ebp
ret 0xc