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

Disassembly:
sub esp, 0xbc
push ebx
push ebp
xor ebx, ebx
lea ebp, [esp + 0x34]
push edi
mov edi, dword [esp + 0xcc]
xor eax, eax
mov dword [esp + 0x18], ebx
mov byte [esp + 0x13], bl
mov dword [esp + 0xc], ebp
test edi, edi
je 0x465641
cmp dword [edi], 0xbab1e
jne 0x465641
cmp byte [edi + 0xe0], al
je 0x46528d
pop edi
pop ebp
lea eax, [ebx + 8]
pop ebx
add esp, 0xbc
ret
mov eax, dword [edi + 4]
mov dword [esp + 0x1c], eax
push esi
test eax, eax
je 0x46530b
lea esp, [esp]
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.004664c0
add esp, 8
mov ebp, eax
xor edi, edi
mov eax, 1
jmp 0x4652c0
or esi, 0xffffffff
lea edx, [edi*4]
test ebp, eax
je 0x4652d3
mov esi, dword [esp + edx + 0x28]
inc ebx
mov ecx, eax
rol ecx, 0x10
test ebp, ecx
je 0x4652e1
mov esi, dword [esp + edx + 0x28]
inc ebx
cmp esi, 0xffffffff
je 0x4652ee
inc edi
rol eax, 1
cmp edi, 5
jb 0x4652c0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], ebx
mov eax, dword [eax]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4652a0
mov edi, dword [esp + 0xd0]
lea ebp, [esp + 0x3c]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.00467be0
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
js 0x465332
mov ecx, dword [esp + 0xdc]
mov dword [esp + 0x20], ecx
cmp eax, ecx
jge 0x46533d
jmp 0x465339
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x20], eax
cmp byte [esp + 0xe8], 0
mov esi, dword [esp + 0xd8]
lea eax, [ebx + esi]
mov dword [esp + 0x24], eax
je 0x46535f
cmp dword [edi + 0xe8], 0xffffffff
je 0x46535f
inc eax
cmp eax, 0xa
jbe 0x46538e
shl eax, 3
push eax
call dword [0x59c9a4]
mov ebp, eax
add esp, 4
mov dword [esp + 0x10], ebp
test ebp, ebp
jne 0x465389
pop esi
pop edi
lea eax, [ebp + 3]
pop ebp
pop ebx
add esp, 0xbc
ret
mov byte [esp + 0x17], 1
xor edi, edi
test ebx, ebx
je 0x465439
mov eax, dword [esp + 0xd0]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
test eax, eax
je 0x465439
mov edi, edi
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.004664c0
add esp, 8
lea edx, [esp + 0x28]
mov ebx, eax
xor ebp, ebp
mov ecx, 1
jmp 0x4653d0
or esi, 0xffffffff
test ebx, ecx
je 0x4653ed
mov esi, dword [esp + 0x10]
mov eax, dword [edx]
mov dword [esi + edi*8], eax
mov eax, 0x300
mov word [esi + edi*8 + 4], ax
inc edi
mov esi, dword [edx]
mov eax, ecx
rol eax, 0x10
test ebx, eax
je 0x46540c
mov esi, dword [esp + 0x10]
mov eax, dword [edx]
mov dword [esi + edi*8], eax
mov eax, 0x10
mov word [esi + edi*8 + 4], ax
inc edi
mov esi, dword [edx]
cmp esi, 0xffffffff
je 0x46541c
inc ebp
rol ecx, 1
add edx, 4
cmp ebp, 5
jb 0x4653d0
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4653b0
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0xd8]
mov ebp, dword [esp + 0x10]
test esi, esi
je 0x46549f
mov edx, dword [esp + 0xd4]
lea ecx, [ebp + 4]
lea ecx, [ecx + edi*8]
add edx, 4
mov ebp, esi
add edi, esi
mov ebx, 0x300
mov eax, dword [edx - 4]
mov dword [ecx - 4], eax
xor eax, eax
mov word [ecx], ax
test byte [edx], 1
je 0x46546b
mov word [ecx], bx
mov eax, ebx
test byte [edx], 2
movzx esi, ax
je 0x46547e
or eax, 0x400
mov word [ecx], ax
movzx esi, ax
test byte [edx], 4
je 0x465489
or esi, 0x10
mov word [ecx], si
add ecx, 8
add edx, 8
sub ebp, 1
jne 0x465456
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0xd8]
cmp byte [esp + 0xe8], 0
mov ecx, dword [esp + 0x10]
je 0x4654cd
mov eax, dword [esp + 0xd0]
mov eax, dword [eax + 0xe8]
cmp eax, 0xffffffff
je 0x4654cd
mov dword [ecx + edi*8], eax
mov eax, 0x300
mov word [ecx + edi*8 + 4], ax
inc edi
test edi, edi
je 0x4655af
push dword [esp + 0x20]
push edi
push ecx
call fcn.00479c80
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x18], ebp
test ebp, ebp
jle 0x4655af
mov dword [esp + 0x1c], ebp
test esi, esi
je 0x465552
mov esi, dword [esp + 0xd4]
lea ebx, [ebx*8 + 6]
mov ebp, dword [esp + 0xd8]
add esi, 6
add ebx, dword [esp + 0x10]
movsx edx, word [ebx]
mov eax, edx
and eax, 0x300
neg eax
sbb eax, eax
neg eax
movzx ecx, ax
mov eax, ecx
test dl, 0x10
je 0x465535
or ecx, 4
movzx eax, cx
test edx, 0x400
je 0x465540
or eax, 2
mov word [esi], ax
add ebx, 8
add esi, 8
sub ebp, 1
jne 0x465515
mov ebp, dword [esp + 0x18]
cmp byte [esp + 0xe8], 0
mov ebx, dword [esp + 0xd0]
mov eax, dword [esp + 0x10]
je 0x4655be
cmp dword [ebx + 0xe8], 0xffffffff
je 0x4655be
mov ecx, dword [esp + 0x24]
mov edx, 0x300
test word [eax + ecx*8 + 6], dx
je 0x4655be
mov esi, dword [sym.imp.WS2_32.dll_recv]
jmp 0x465590
push 0
push 0x40
lea eax, [esp + 0x94]
push eax
push dword [ebx + 0xe8]
call esi
test eax, eax
jns 0x465590
mov eax, dword [esp + 0x10]
dec ebp
jmp 0x4655c2
mov eax, dword [esp + 0x10]
xor ebp, ebp
mov ebx, dword [esp + 0xd0]
jmp 0x4655c2
mov ebp, dword [esp + 0x1c]
cmp byte [esp + 0x17], 0
je 0x4655d3
push eax
call dword [0x59c9a8]
add esp, 4
mov eax, dword [esp + 0xe0]
test eax, eax
je 0x4655e0
mov dword [eax], ebp
cmp byte [esp + 0xe4], 0
je 0x465634
test edi, edi
jne 0x465634
cmp dword [ebx], 0xbab1e
mov dword [esp + 0x18], edi
jne 0x465634
cmp byte [ebx + 0xe0], 0
jne 0x465634
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00467be0
add esp, 8
test eax, eax
jne 0x465634
mov eax, dword [esp + 0x18]
test eax, eax
je 0x465634
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jg 0x465629
test eax, eax
jns 0x46562b
mov eax, ecx
push eax
call fcn.0047a490
add esp, 4
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xbc
ret
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0xbc
ret