Function at 0x4697c0
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 0x469bc1
cmp dword [edi], 0xbab1e
jne 0x469bc1
cmp byte [edi + 0xe0], al
je 0x46980d
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 0x46988b
lea esp, [esp]
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.0046aa40
add esp, 8
mov ebp, eax
xor edi, edi
mov eax, 1
jmp 0x469840
or esi, 0xffffffff
lea edx, [edi*4]
test ebp, eax
je 0x469853
mov esi, dword [esp + edx + 0x28]
inc ebx
mov ecx, eax
rol ecx, 0x10
test ebp, ecx
je 0x469861
mov esi, dword [esp + edx + 0x28]
inc ebx
cmp esi, 0xffffffff
je 0x46986e
inc edi
rol eax, 1
cmp edi, 5
jb 0x469840
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], ebx
mov eax, dword [eax]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x469820
mov edi, dword [esp + 0xd0]
lea ebp, [esp + 0x3c]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.0046c160
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
js 0x4698b2
mov ecx, dword [esp + 0xdc]
mov dword [esp + 0x20], ecx
cmp eax, ecx
jge 0x4698bd
jmp 0x4698b9
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 0x4698df
cmp dword [edi + 0xe8], 0xffffffff
je 0x4698df
inc eax
cmp eax, 0xa
jbe 0x46990e
shl eax, 3
push eax
call dword [0x59ed44]
mov ebp, eax
add esp, 4
mov dword [esp + 0x10], ebp
test ebp, ebp
jne 0x469909
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 0x4699b9
mov eax, dword [esp + 0xd0]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4699b9
mov edi, edi
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.0046aa40
add esp, 8
lea edx, [esp + 0x28]
mov ebx, eax
xor ebp, ebp
mov ecx, 1
jmp 0x469950
or esi, 0xffffffff
test ebx, ecx
je 0x46996d
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 0x46998c
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 0x46999c
inc ebp
rol ecx, 1
add edx, 4
cmp ebp, 5
jb 0x469950
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x469930
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0xd8]
mov ebp, dword [esp + 0x10]
test esi, esi
je 0x469a1f
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 0x4699eb
mov word [ecx], bx
mov eax, ebx
test byte [edx], 2
movzx esi, ax
je 0x4699fe
or eax, 0x400
mov word [ecx], ax
movzx esi, ax
test byte [edx], 4
je 0x469a09
or esi, 0x10
mov word [ecx], si
add ecx, 8
add edx, 8
sub ebp, 1
jne 0x4699d6
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0xd8]
cmp byte [esp + 0xe8], 0
mov ecx, dword [esp + 0x10]
je 0x469a4d
mov eax, dword [esp + 0xd0]
mov eax, dword [eax + 0xe8]
cmp eax, 0xffffffff
je 0x469a4d
mov dword [ecx + edi*8], eax
mov eax, 0x300
mov word [ecx + edi*8 + 4], ax
inc edi
test edi, edi
je 0x469b2f
push dword [esp + 0x20]
push edi
push ecx
call fcn.0047e220
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x18], ebp
test ebp, ebp
jle 0x469b2f
mov dword [esp + 0x1c], ebp
test esi, esi
je 0x469ad2
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 0x469ab5
or ecx, 4
movzx eax, cx
test edx, 0x400
je 0x469ac0
or eax, 2
mov word [esi], ax
add ebx, 8
add esi, 8
sub ebp, 1
jne 0x469a95
mov ebp, dword [esp + 0x18]
cmp byte [esp + 0xe8], 0
mov ebx, dword [esp + 0xd0]
mov eax, dword [esp + 0x10]
je 0x469b3e
cmp dword [ebx + 0xe8], 0xffffffff
je 0x469b3e
mov ecx, dword [esp + 0x24]
mov edx, 0x300
test word [eax + ecx*8 + 6], dx
je 0x469b3e
mov esi, dword [sym.imp.WS2_32.dll_recv]
jmp 0x469b10
push 0
push 0x40
lea eax, [esp + 0x94]
push eax
push dword [ebx + 0xe8]
call esi
test eax, eax
jns 0x469b10
mov eax, dword [esp + 0x10]
dec ebp
jmp 0x469b42
mov eax, dword [esp + 0x10]
xor ebp, ebp
mov ebx, dword [esp + 0xd0]
jmp 0x469b42
mov ebp, dword [esp + 0x1c]
cmp byte [esp + 0x17], 0
je 0x469b53
push eax
call dword [0x59ed48]
add esp, 4
mov eax, dword [esp + 0xe0]
test eax, eax
je 0x469b60
mov dword [eax], ebp
cmp byte [esp + 0xe4], 0
je 0x469bb4
test edi, edi
jne 0x469bb4
cmp dword [ebx], 0xbab1e
mov dword [esp + 0x18], edi
jne 0x469bb4
cmp byte [ebx + 0xe0], 0
jne 0x469bb4
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.0046c160
add esp, 8
test eax, eax
jne 0x469bb4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x469bb4
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jg 0x469ba9
test eax, eax
jns 0x469bab
mov eax, ecx
push eax
call fcn.0047ea30
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