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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432eb1
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 0x4142ea
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.004199b0
mov eax, dword [edi + 0xc0]
mov dword [ebp - 4], ebx
mov ebx, dword [eax]
cmp ebx, eax
je 0x414435
jmp 0x414320
mov eax, dword [ebx + 0x14]
sub eax, dword [ebx + 0x10]
sar eax, 2
test eax, eax
je 0x4143e7
mov eax, dword [ebx + 0x10]
mov eax, dword [eax]
add eax, 0x24
push eax
lea ecx, [ebp - 0x140]
call fcn.00411b70
mov esi, dword [ebp - 0x13c]
sub esi, dword [ebp - 0x140]
xor edi, edi
sar esi, 2
test esi, esi
je 0x4143ae
mov ecx, dword [ebp - 0x114]
mov edx, dword [ebp - 0x140]
mov edx, dword [edx + edi*4]
xor eax, eax
test ecx, ecx
je 0x41437e
nop
cmp dword [ebp + eax*4 - 0x110], edx
je 0x41437e
inc eax
cmp eax, ecx
jb 0x414370
cmp eax, ecx
jne 0x41439b
cmp ecx, 0x40
jae 0x41439b
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 0x4143a9
mov dword [ebp - 0x118], edx
inc edi
cmp edi, esi
jb 0x414360
xor eax, eax
cmp dword [ebp - 0x140], eax
je 0x4143c9
mov eax, dword [ebp - 0x140]
push eax
call fcn.0041b244
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 0x414429
mov ecx, dword [ebx + 8]
cmp byte [ecx + 0x21], 0
jne 0x41440e
mov eax, dword [ecx]
cmp byte [eax + 0x21], 0
jne 0x41440a
mov edi, edi
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x21], 0
je 0x414400
mov ebx, ecx
jmp 0x414429
mov eax, dword [ebx + 4]
cmp byte [eax + 0x21], 0
jne 0x414427
cmp ebx, dword [eax + 8]
jne 0x414427
mov ebx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x21], 0
je 0x414417
mov ebx, eax
cmp ebx, dword [edi + 0xc0]
jne 0x414320
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x414447
mov ecx, esi
call fcn.004199c0
lea ecx, [edi + 0xe0]
call fcn.004199b0
mov eax, dword [edi + 0xd0]
mov ecx, dword [eax]
cmp ecx, eax
je 0x414523
mov esi, dword [ebp - 0x114]
mov ebx, 1
lea ecx, [ecx]
mov eax, dword [ecx + 0x10]
cmp dword [eax + 0x14], ebx
jne 0x4144d0
cmp dword [eax + 0xc], 0
jbe 0x4144d0
mov edx, dword [eax + 8]
xor eax, eax
test esi, esi
je 0x414496
cmp dword [ebp + eax*4 - 0x110], edx
je 0x414496
add eax, ebx
cmp eax, esi
jb 0x414487
cmp eax, esi
jne 0x4144b4
cmp esi, 0x40
jae 0x4144b4
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 0x4144c2
mov dword [ebp - 0x118], edx
cmp edx, dword [ebp - 0x128]
jae 0x4144d0
mov dword [ebp - 0x128], edx
cmp byte [ecx + 0x15], 0
jne 0x414517
mov eax, dword [ecx + 8]
cmp byte [eax + 0x15], 0
jne 0x4144fc
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
jne 0x414517
lea esp, [esp]
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
je 0x4144f0
jmp 0x414517
mov eax, dword [ecx + 4]
cmp byte [eax + 0x15], 0
jne 0x414515
cmp ecx, dword [eax + 8]
jne 0x414515
mov ecx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x414505
mov ecx, eax
cmp ecx, dword [edi + 0xd0]
jne 0x414470
lea ecx, [edi + 0xe0]
test ecx, ecx
je 0x414532
call fcn.004199c0
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 0x414584
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.00404cb0
push eax
push esi
push str.Select_error___d_:__s_n
call fcn.0041c026
add esp, 0x10
or eax, ebx
jmp 0x414840
test ebx, ebx
jne 0x41458f
xor eax, eax
jmp 0x414840
mov eax, dword [edi + 0xb0]
lea edx, [ebp - 0x114]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41462a
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 0x414623
mov edx, dword [edi + 0xb0]
lea ecx, [ecx]
cmp dword [ebp + eax*4 - 0x110], edx
je 0x4145f0
inc eax
cmp eax, ecx
jb 0x4145e0
jmp 0x414623
lea edx, [ecx - 1]
cmp eax, edx
jae 0x41461c
jmp 0x414600
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 0x414600
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.004199b0
mov eax, dword [esi + 0xc0]
mov esi, dword [eax]
mov dword [ebp - 4], 1
cmp esi, eax
je 0x4147f4
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
sar eax, 2
test eax, eax
je 0x41479b
mov eax, dword [esi + 0x10]
mov eax, dword [eax]
add eax, 0x24
push eax
lea ecx, [ebp - 0x150]
call fcn.00411b70
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 0x41475e
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 0x414749
mov ecx, dword [esi + 0xc]
push ecx
push str.Connection_requested_on_port__d_n
call fcn.0041c026
mov edx, dword [esi + 0xc]
mov ecx, dword [ebp - 0x120]
add esp, 8
push edx
push edi
call fcn.00413e30
mov ecx, dword [ebp - 0x114]
xor eax, eax
test ecx, ecx
je 0x414743
lea ecx, [ecx]
cmp dword [ebp + eax*4 - 0x110], edi
je 0x414710
inc eax
cmp eax, ecx
jb 0x414700
jmp 0x414743
lea edx, [ecx - 1]
cmp eax, edx
jae 0x41473c
jmp 0x414720
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 0x414720
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 0x4146b0
xor eax, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x150], eax
je 0x41477d
mov eax, dword [ebp - 0x150]
push eax
call fcn.0041b244
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 0x4147e2
mov eax, dword [esi + 8]
cmp byte [eax + 0x21], 0
jne 0x4147c0
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x21], 0
jne 0x4147e2
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x21], 0
je 0x4147b4
jmp 0x4147e2
mov eax, dword [esi + 4]
cmp byte [eax + 0x21], 0
jne 0x4147e0
lea esp, [esp]
cmp esi, dword [eax + 8]
jne 0x4147e0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x21], 0
je 0x4147d0
mov esi, eax
mov ecx, dword [ebp - 0x120]
cmp esi, dword [ecx + 0xc0]
jne 0x414664
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x414806
mov ecx, edi
call fcn.004199c0
mov esi, dword [ebp - 0x128]
test ebx, ebx
jle 0x41483b
cmp esi, dword [ebp - 0x118]
jge 0x41483b
lea edx, [ebp - 0x114]
push edx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x414836
mov ecx, dword [ebp - 0x120]
push esi
call fcn.0040fde0
dec ebx
inc esi
test ebx, ebx
jg 0x414810
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.0041bdb5
mov esp, ebp
pop ebp
ret