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

Disassembly:
push ebp
mov ebp, esp
and dword [esi + 0x1c], 0xfffdffff
mov eax, dword [esi + 0x1c]
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
cmp dword [ebx + 0x10], edi
jge 0x4177bf
mov ecx, 0x80000
test eax, 0x100
jne 0x41773c
test ecx, eax
jne 0x41797d
and eax, 0xfffffeff
dec dword [esi + 0x34]
mov dword [esi + 0x1c], eax
jne 0x417761
test al, 1
jne 0x417761
test al, 0x40
je 0x417761
and eax, 0xffffffbf
mov dword [esi + 0x1c], eax
test al, 0x20
je 0x417761
mov eax, dword [esi + 8]
dec dword [eax + 0xc]
test dword [esi + 0x1c], ecx
je 0x41776a
xor ebx, ebx
jmp 0x417773
mov edi, dword [esi + 0x7c]
mov ebx, dword [esi + 0x80]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], ebx
call fcn.0041c424
mov ecx, eax
mov eax, 0x2745
mov dword [ebp + 0xc], ecx
cmp ecx, eax
jne 0x41779e
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xd
jmp 0x4177ac
call fcn.0041b96d
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push edi
push 0xffffffffffffffff
push esi
mov dword [ecx + 8], eax
call dword [esi + 0x28]
add esp, 0x10
jmp 0x41797d
test eax, 0x80000
jne 0x4177e8
mov ecx, dword [ebx + 0x14]
cmp ecx, edi
jbe 0x4177f2
lea edi, [esi + 0x7c]
push dword [edi + 4]
push dword [edi]
push ecx
push esi
call dword [esi + 0x28]
mov eax, dword [ebx + 0x14]
add esp, 0x10
cmp eax, dword [edi]
jb 0x417961
mov edi, 0x100
jmp 0x41789e
test eax, 0x100
je 0x41781e
and eax, 0xfffffeff
dec dword [esi + 0x34]
mov dword [esi + 0x1c], eax
jne 0x41781e
test al, 1
jne 0x41781e
test al, 0x40
je 0x41781e
and eax, 0xffffffbf
mov dword [esi + 0x1c], eax
test al, 0x20
je 0x41781e
mov eax, dword [esi + 8]
dec dword [eax + 0xc]
mov eax, dword [ebp + 8]
and dword [esi + 0x1c], 0xffff7fff
mov dword [eax + 4], 1
mov dword [eax + 8], edi
push dword [esi + 0x80]
mov dword [ebp - 0xc], edi
push dword [esi + 0x7c]
mov dword [ebp - 0x10], edi
jmp 0x417958
push 0x10000
push esi
call dword [esi + 0x24]
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
xor eax, eax
push eax
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
xor ebx, ebx
inc ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x74]
mov dword [ebp - 0xc], edx
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
je 0x4178db
cmp dword [ebp - 4], 0
jbe 0x4178a8
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 4]
push esi
call dword [esi + 0x28]
mov eax, dword [ebp - 4]
add esp, 0x10
cmp eax, dword [ebp - 0x10]
jb 0x417961
test dword [esi + 0x1c], edi
jne 0x417846
jmp 0x417961
and dword [esi + 0x1c], 0xffff7eff
dec dword [esi + 0x34]
mov eax, dword [esi + 0x1c]
jne 0x4178cf
test al, 1
jne 0x4178cf
test al, 0x40
je 0x4178cf
and eax, 0xffffffbf
mov dword [esi + 0x1c], eax
test al, 0x20
je 0x4178cf
mov eax, dword [esi + 8]
dec dword [eax + 0xc]
mov eax, dword [ebp + 8]
and dword [eax + 8], 0
mov dword [eax + 4], ebx
jmp 0x417952
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov ecx, 0x2733
cmp edi, ecx
jne 0x417903
push dword [ebp - 0xc]
mov eax, dword [ebp + 8]
push dword [ebp - 0x10]
mov dword [eax + 4], 4
mov dword [eax + 8], ecx
push 0
jmp 0x41795a
and dword [esi + 0x1c], 0xfffffeff
dec dword [esi + 0x34]
mov eax, dword [esi + 0x1c]
jne 0x41792a
test al, 1
jne 0x41792a
test al, 0x40
je 0x41792a
and eax, 0xffffffbf
mov dword [esi + 0x1c], eax
test al, 0x20
je 0x41792a
mov eax, dword [esi + 8]
dec dword [eax + 0xc]
mov eax, 0x2745
cmp edi, eax
jne 0x417942
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xd
mov dword [ecx + 8], eax
jmp 0x417952
mov ecx, edi
call fcn.0041b96d
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0xffffffffffffffff
push esi
call dword [esi + 0x28]
add esp, 0x10
mov eax, dword [esi + 0x1c]
test eax, 0x100
je 0x41797d
test eax, 0x20000
jne 0x41797d
push dword [ebp + 8]
mov eax, esi
call fcn.00417225
pop ecx
dec dword [esi + 0x30]
test byte [esi + 0x1c], 1
mov eax, dword [esi + 0x30]
je 0x417997
test eax, eax
jne 0x417997
mov edx, dword [ebp + 8]
mov ecx, esi
call fcn.004195da
pop edi
pop ebx
leave
ret