Function at 0x414290
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432f11
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x43e460]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0xb0]
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x128], 0xffffffff
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x114], 1
test eax, eax
jle 0x4142fa
mov dword [ebp - 0x118], eax
lea esi, [edi + 0xdc]
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x12c], ebx
call fcn.004199f0
mov eax, dword [edi + 0xc0]
mov dword [ebp - 4], ebx
mov ebx, dword [eax]
cmp ebx, eax
je 0x414445
jmp 0x414330
mov eax, dword [ebx + 0x14]
sub eax, dword [ebx + 0x10]
sar eax, 2
test eax, eax
je 0x4143f7
mov eax, dword [ebx + 0x10]
mov eax, dword [eax]
add eax, 0x24
push eax
lea ecx, [ebp - 0x140]
call fcn.00411b80
mov esi, dword [ebp - 0x13c]
sub esi, dword [ebp - 0x140]
xor edi, edi
sar esi, 2
test esi, esi
je 0x4143be
mov ecx, dword [ebp - 0x114]
mov edx, dword [ebp - 0x140]
mov edx, dword [edx + edi*4]
xor eax, eax
test ecx, ecx
je 0x41438e
nop
cmp dword [ebp + eax*4 - 0x110], edx
je 0x41438e
inc eax
cmp eax, ecx
jb 0x414380
cmp eax, ecx
jne 0x4143ab
cmp ecx, 0x40
jae 0x4143ab
mov dword [ebp + eax*4 - 0x110], edx
mov ecx, dword [ebp - 0x114]
inc ecx
mov dword [ebp - 0x114], ecx
cmp edx, dword [ebp - 0x118]
jle 0x4143b9
mov dword [ebp - 0x118], edx
inc edi
cmp edi, esi
jb 0x414370
xor eax, eax
cmp dword [ebp - 0x140], eax
je 0x4143d9
mov eax, dword [ebp - 0x140]
push eax
call fcn.0041b28a
add esp, 4
xor eax, eax
mov esi, dword [ebp - 0x130]
mov edi, dword [ebp - 0x120]
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
cmp byte [ebx + 0x21], 0
jne 0x414439
mov ecx, dword [ebx + 8]
cmp byte [ecx + 0x21], 0
jne 0x41441e
mov eax, dword [ecx]
cmp byte [eax + 0x21], 0
jne 0x41441a
mov edi, edi
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x21], 0
je 0x414410
mov ebx, ecx
jmp 0x414439
mov eax, dword [ebx + 4]
cmp byte [eax + 0x21], 0
jne 0x414437
cmp ebx, dword [eax + 8]
jne 0x414437
mov ebx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x21], 0
je 0x414427
mov ebx, eax
cmp ebx, dword [edi + 0xc0]
jne 0x414330
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x414457
mov ecx, esi
call fcn.00419a00
lea ecx, [edi + 0xe0]
call fcn.004199f0
mov eax, dword [edi + 0xd0]
mov ecx, dword [eax]
cmp ecx, eax
je 0x414533
mov esi, dword [ebp - 0x114]
mov ebx, 1
lea ecx, [ecx]
mov eax, dword [ecx + 0x10]
cmp dword [eax + 0x14], ebx
jne 0x4144e0
cmp dword [eax + 0xc], 0
jbe 0x4144e0
mov edx, dword [eax + 8]
xor eax, eax
test esi, esi
je 0x4144a6
cmp dword [ebp + eax*4 - 0x110], edx
je 0x4144a6
add eax, ebx
cmp eax, esi
jb 0x414497
cmp eax, esi
jne 0x4144c4
cmp esi, 0x40
jae 0x4144c4
mov dword [ebp + eax*4 - 0x110], edx
mov esi, dword [ebp - 0x114]
add esi, ebx
mov dword [ebp - 0x114], esi
cmp edx, dword [ebp - 0x118]
jle 0x4144d2
mov dword [ebp - 0x118], edx
cmp edx, dword [ebp - 0x128]
jae 0x4144e0
mov dword [ebp - 0x128], edx
cmp byte [ecx + 0x15], 0
jne 0x414527
mov eax, dword [ecx + 8]
cmp byte [eax + 0x15], 0
jne 0x41450c
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
jne 0x414527
lea esp, [esp]
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
je 0x414500
jmp 0x414527
mov eax, dword [ecx + 4]
cmp byte [eax + 0x15], 0
jne 0x414525
cmp ecx, dword [eax + 8]
jne 0x414525
mov ecx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x414515
mov ecx, eax
cmp ecx, dword [edi + 0xd0]
jne 0x414480
lea ecx, [edi + 0xe0]
test ecx, ecx
je 0x414542
call fcn.00419a00
mov eax, dword [ebp - 0x118]
push 0
push 0
push 0
lea ecx, [ebp - 0x114]
inc eax
push ecx
push eax
mov dword [ebp - 0x118], eax
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
mov dword [ebp - 0x124], eax
cmp ebx, 0xffffffff
jne 0x414594
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.00404a90
push eax
push esi
push str.Select_error___d_:__s_n
call fcn.0041c077
add esp, 0x10
or eax, ebx
jmp 0x414850
test ebx, ebx
jne 0x41459f
xor eax, eax
jmp 0x414850
mov eax, dword [edi + 0xb0]
lea edx, [ebp - 0x114]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41463a
mov edx, dword [edi + 0xb0]
push 0
push 1
lea ecx, [ebp - 0x119]
push ecx
push edx
mov byte [ebp - 0x119], 0
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, dword [ebp - 0x114]
mov ebx, eax
xor eax, eax
test ecx, ecx
je 0x414633
mov edx, dword [edi + 0xb0]
lea ecx, [ecx]
cmp dword [ebp + eax*4 - 0x110], edx
je 0x414600
inc eax
cmp eax, ecx
jb 0x4145f0
jmp 0x414633
lea edx, [ecx - 1]
cmp eax, edx
jae 0x41462c
jmp 0x414610
mov ecx, dword [ebp + eax*4 - 0x10c]
mov dword [ebp + eax*4 - 0x110], ecx
mov ecx, dword [ebp - 0x114]
inc eax
lea edx, [ecx - 1]
cmp eax, edx
jb 0x414610
dec ecx
mov dword [ebp - 0x114], ecx
dec ebx
mov dword [ebp - 0x124], ebx
mov esi, dword [ebp - 0x120]
lea edi, [esi + 0xdc]
mov ecx, edi
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x134], 0
call fcn.004199f0
mov eax, dword [esi + 0xc0]
mov esi, dword [eax]
mov dword [ebp - 4], 1
cmp esi, eax
je 0x414804
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
sar eax, 2
test eax, eax
je 0x4147ab
mov eax, dword [esi + 0x10]
mov eax, dword [eax]
add eax, 0x24
push eax
lea ecx, [ebp - 0x150]
call fcn.00411b80
mov ebx, dword [ebp - 0x14c]
sub ebx, dword [ebp - 0x150]
mov byte [ebp - 4], 2
sar ebx, 2
mov dword [ebp - 0x12c], 0
test ebx, ebx
je 0x41476e
mov edi, edi
mov ecx, dword [ebp - 0x150]
mov edx, dword [ebp - 0x12c]
mov edi, dword [ecx + edx*4]
lea eax, [ebp - 0x114]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x414759
mov ecx, dword [esi + 0xc]
push ecx
push str.Connection_requested_on_port__d_n
call fcn.0041c077
mov edx, dword [esi + 0xc]
mov ecx, dword [ebp - 0x120]
add esp, 8
push edx
push edi
call fcn.00413e40
mov ecx, dword [ebp - 0x114]
xor eax, eax
test ecx, ecx
je 0x414753
lea ecx, [ecx]
cmp dword [ebp + eax*4 - 0x110], edi
je 0x414720
inc eax
cmp eax, ecx
jb 0x414710
jmp 0x414753
lea edx, [ecx - 1]
cmp eax, edx
jae 0x41474c
jmp 0x414730
mov ecx, dword [ebp + eax*4 - 0x10c]
mov dword [ebp + eax*4 - 0x110], ecx
mov ecx, dword [ebp - 0x114]
inc eax
lea edx, [ecx - 1]
cmp eax, edx
jb 0x414730
dec ecx
mov dword [ebp - 0x114], ecx
dec dword [ebp - 0x124]
mov eax, dword [ebp - 0x12c]
inc eax
mov dword [ebp - 0x12c], eax
cmp eax, ebx
jb 0x4146c0
xor eax, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x150], eax
je 0x41478d
mov eax, dword [ebp - 0x150]
push eax
call fcn.0041b28a
add esp, 4
xor eax, eax
mov edi, dword [ebp - 0x138]
mov ebx, dword [ebp - 0x124]
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], eax
cmp byte [esi + 0x21], 0
jne 0x4147f2
mov eax, dword [esi + 8]
cmp byte [eax + 0x21], 0
jne 0x4147d0
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x21], 0
jne 0x4147f2
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x21], 0
je 0x4147c4
jmp 0x4147f2
mov eax, dword [esi + 4]
cmp byte [eax + 0x21], 0
jne 0x4147f0
lea esp, [esp]
cmp esi, dword [eax + 8]
jne 0x4147f0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x21], 0
je 0x4147e0
mov esi, eax
mov ecx, dword [ebp - 0x120]
cmp esi, dword [ecx + 0xc0]
jne 0x414674
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x414816
mov ecx, edi
call fcn.00419a00
mov esi, dword [ebp - 0x128]
test ebx, ebx
jle 0x41484b
cmp esi, dword [ebp - 0x118]
jge 0x41484b
lea edx, [ebp - 0x114]
push edx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x414846
mov ecx, dword [ebp - 0x120]
push esi
call fcn.0040fd80
dec ebx
inc esi
test ebx, ebx
jg 0x414820
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041be05
mov esp, ebp
pop ebp
ret