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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x673010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0xc0], eax
xor ebx, ebx
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0xc8], eax
lea esi, [ebp - 0xa8]
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xd4], eax
xor eax, eax
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xb0], ebx
mov byte [ebp - 0xa9], bl
mov dword [ebp - 0xb4], esi
test edi, edi
je 0x4608bb
cmp dword [edi], 0xbab1e
jne 0x4608bb
cmp byte [edi + 0xe6], al
je 0x460486
pop edi
pop esi
lea eax, [ebx + 8]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045bfb6
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x14], eax
jge 0x4604a1
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045bfb6
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
mov dword [ebp - 0xcc], eax
test eax, eax
je 0x46053c
lea ecx, [ebp - 0x58]
push ecx
push eax
call fcn.00461800
add esp, 8
mov ecx, eax
xor edi, edi
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xb0], edi
mov eax, 1
or esi, 0xffffffff
lea edx, [edi*4]
test ecx, eax
je 0x4604e7
mov esi, dword [ebp + edx - 0x58]
inc ebx
mov edi, dword [ebp - 0xb0]
mov ecx, eax
rol ecx, 0x10
test dword [ebp - 0xbc], ecx
je 0x4604ff
mov esi, dword [ebp + edx - 0x58]
inc ebx
cmp esi, 0xffffffff
je 0x460518
mov ecx, dword [ebp - 0xbc]
inc edi
rol eax, 1
mov dword [ebp - 0xb0], edi
cmp edi, 5
jb 0x4604d4
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xb0], ebx
mov eax, dword [eax]
mov dword [ebp - 0xcc], eax
test eax, eax
jne 0x4604b2
mov edi, dword [ebp - 0xc4]
lea esi, [ebp - 0xa8]
lea eax, [ebp - 0xb8]
push eax
push edi
call fcn.00462710
mov eax, dword [ebp - 0xb8]
add esp, 8
test eax, eax
js 0x460561
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
cmovl ecx, eax
mov dword [ebp + 0x14], ecx
mov eax, dword [ebp - 0xc8]
add eax, ebx
cmp byte [ebp + 0x20], 0
mov dword [ebp - 0xd0], eax
je 0x46057f
cmp dword [edi + 0xdc], 0xffffffff
je 0x46057f
inc eax
cmp eax, 0xa
jbe 0x4605b8
shl eax, 3
push eax
call dword [0x673064]
mov esi, eax
mov dword [ebp - 0xb4], eax
add esp, 4
test esi, esi
jne 0x4605b1
pop edi
lea eax, [esi + 3]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045bfb6
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0xa9], 1
xor edi, edi
mov dword [ebp - 0xbc], edi
test ebx, ebx
je 0x460685
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax + 4]
mov dword [ebp - 0xb8], eax
test eax, eax
je 0x460685
nop
lea ecx, [ebp - 0x58]
push ecx
push eax
call fcn.00461800
add esp, 8
mov dword [ebp - 0xcc], 0
mov ebx, eax
lea edx, [ebp - 0x58]
mov ecx, 1
or esi, 0xffffffff
test ebx, ecx
je 0x460620
mov esi, dword [ebp - 0xb4]
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 0x460641
mov esi, dword [ebp - 0xb4]
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 0x46065d
mov eax, dword [ebp - 0xcc]
add edx, 4
inc eax
rol ecx, 1
mov dword [ebp - 0xcc], eax
cmp eax, 5
jb 0x460601
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], edi
mov eax, dword [eax]
mov dword [ebp - 0xb8], eax
test eax, eax
jne 0x4605e0
mov ebx, dword [ebp - 0xb0]
mov esi, dword [ebp - 0xb4]
mov eax, dword [ebp - 0xc8]
test eax, eax
je 0x4606fc
mov edx, dword [ebp - 0xc0]
lea ecx, [edi*8 + 4]
add ecx, esi
mov dword [ebp - 0xb8], eax
add edx, 4
mov ebx, 0x300
add edi, eax
mov dword [ebp - 0xbc], edi
mov eax, dword [edx - 4]
mov dword [ecx - 4], eax
xor eax, eax
mov word [ecx], ax
test byte [edx], 1
je 0x4606c9
mov word [ecx], bx
mov eax, ebx
test byte [edx], 2
movzx esi, ax
je 0x4606dc
or eax, 0x400
mov word [ecx], ax
movzx esi, ax
test byte [edx], 4
je 0x4606e7
or esi, 0x10
mov word [ecx], si
add ecx, 8
add edx, 8
sub dword [ebp - 0xb8], 1
jne 0x4606b4
mov ebx, dword [ebp - 0xb0]
cmp byte [ebp + 0x20], 0
mov esi, dword [ebp - 0xb4]
je 0x46072d
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax + 0xdc]
cmp eax, 0xffffffff
je 0x46072d
mov dword [esi + edi*8], eax
mov eax, 0x300
mov word [esi + edi*8 + 4], ax
inc edi
mov dword [ebp - 0xbc], edi
test edi, edi
je 0x460830
push dword [ebp + 0x14]
push edi
push esi
call fcn.00478800
add esp, 0xc
mov dword [ebp - 0xb8], eax
test eax, eax
jle 0x460830
cmp dword [ebp - 0xc8], 0
mov dword [ebp - 0xb0], eax
je 0x4607e6
mov edi, dword [ebp - 0xc0]
lea eax, [ebx*8 + 6]
add edi, 6
add eax, esi
mov dword [ebp - 0xc0], eax
nop dword [eax + eax]
movsx esi, word [eax]
lea edi, [edi + 8]
mov eax, esi
mov ebx, esi
and eax, 0x300
neg eax
sbb eax, eax
neg eax
movzx edx, ax
mov eax, edx
or eax, 4
test bl, 0x10
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
test esi, 0x400
movzx ecx, ax
mov eax, edx
cmove ecx, eax
mov eax, dword [ebp - 0xc0]
add eax, 8
mov word [edi - 8], cx
sub dword [ebp - 0xc8], 1
mov dword [ebp - 0xc0], eax
jne 0x460780
mov edi, dword [ebp - 0xbc]
mov esi, dword [ebp - 0xb4]
cmp byte [ebp + 0x20], 0
mov ebx, dword [ebp - 0xc4]
je 0x46083a
cmp dword [ebx + 0xdc], 0xffffffff
je 0x46083a
mov eax, dword [ebp - 0xd0]
mov ecx, 0x300
test word [esi + eax*8 + 6], cx
je 0x46083a
mov esi, dword [sym.imp.WS2_32.dll_recv]
push 0
push 0x40
lea eax, [ebp - 0x44]
push eax
push dword [ebx + 0xdc]
call esi
test eax, eax
jg 0x460813
mov esi, dword [ebp - 0xb8]
dec esi
jmp 0x460840
mov ebx, dword [ebp - 0xc4]
xor esi, esi
jmp 0x460840
mov esi, dword [ebp - 0xb0]
cmp byte [ebp - 0xa9], 0
je 0x460858
push dword [ebp - 0xb4]
call dword [0x673068]
add esp, 4
mov eax, dword [ebp - 0xd4]
test eax, eax
je 0x460864
mov dword [eax], esi
cmp byte [ebp + 0x1c], 0
je 0x4608a8
test edi, edi
jne 0x4608a8
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xc0], edi
push eax
push ebx
call fcn.00461200
add esp, 8
test eax, eax
jne 0x4608a8
mov eax, dword [ebp - 0xc0]
test eax, eax
je 0x4608a8
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
jg 0x46089d
test eax, eax
jns 0x46089f
mov eax, ecx
push eax
call fcn.00478e10
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045bfb6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045bfb6
mov esp, ebp
pop ebp
ret