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

Disassembly:
sub esp, 0xb8
push ebp
push esi
mov esi, dword [esp + 0xc4]
push edi
xor edi, edi
mov dword [esp + 0x18], edi
lea ebp, [esp + 0x74]
mov dword [esp + 0x10], edi
cmp esi, edi
je 0x40e243
cmp dword [esi], 0xbab1e
jne 0x40e243
cmp dword [esi + 0xec], edi
je 0x40def7
lea eax, [edi + 8]
pop edi
pop esi
pop ebp
add esp, 0xb8
ret
cmp dword [esp + 0xd4], edi
jge 0x40df0f
pop edi
pop esi
mov eax, 0xa
pop ebp
add esp, 0xb8
ret
mov eax, dword [esi + 4]
push ebx
mov dword [esp + 0x10], eax
cmp eax, edi
je 0x40df6c
jmp 0x40df20
lea ecx, [esp + 0x24]
call fcn.0040cd30
xor ecx, ecx
mov esi, 1
or edx, 0xffffffff
test eax, esi
je 0x40df3c
mov edx, dword [esp + ecx*4 + 0x24]
inc edi
mov ebx, esi
rol ebx, 0x10
test eax, ebx
je 0x40df4a
mov edx, dword [esp + ecx*4 + 0x24]
inc edi
cmp edx, 0xffffffff
je 0x40df57
inc ecx
rol esi, 1
cmp ecx, 5
jb 0x40df30
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x40df20
mov esi, dword [esp + 0xcc]
lea ecx, [esp + 0x18]
push ecx
mov ebx, esi
call fcn.0040d650
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
js 0x40df93
cmp eax, dword [esp + 0xd8]
jge 0x40df93
mov dword [esp + 0xd8], eax
cmp dword [esp + 0xe4], 0
mov ebx, dword [esp + 0xd4]
lea eax, [edi + ebx]
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], eax
je 0x40dfb9
cmp dword [esi + 0xdc], 0xffffffff
je 0x40dfb9
inc eax
cmp eax, 0xa
jbe 0x40dfeb
lea edx, [eax*8]
push edx
call dword [0x58e0bc]
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40dfe3
pop ebx
pop edi
pop esi
lea eax, [ebp + 3]
pop ebp
add esp, 0xb8
ret
mov dword [esp + 0x14], 1
xor esi, esi
cmp dword [esp + 0x18], esi
je 0x40e080
mov eax, dword [esp + 0xcc]
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
test eax, eax
je 0x40e080
lea esp, [esp]
lea ecx, [esp + 0x24]
call fcn.0040cd30
xor ecx, ecx
mov edi, 1
or edx, 0xffffffff
test eax, edi
je 0x40e03e
mov edx, dword [esp + ecx*4 + 0x24]
mov dword [ebp + esi*8], edx
mov edx, 1
mov word [ebp + esi*8 + 4], dx
mov edx, dword [esp + ecx*4 + 0x24]
inc esi
mov ebx, edi
rol ebx, 0x10
test eax, ebx
je 0x40e05e
mov edx, dword [esp + ecx*4 + 0x24]
mov dword [ebp + esi*8], edx
mov edx, 4
mov word [ebp + esi*8 + 4], dx
mov edx, dword [esp + ecx*4 + 0x24]
inc esi
cmp edx, 0xffffffff
je 0x40e06b
inc ecx
rol edi, 1
cmp ecx, 5
jb 0x40e020
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x40e010
mov ebx, dword [esp + 0xd4]
test ebx, ebx
je 0x40e0c9
mov ecx, dword [esp + 0xd0]
lea eax, [ebp + esi*8 + 4]
add ecx, 4
mov edx, ebx
add esi, ebx
mov edi, dword [ecx - 4]
mov dword [eax - 4], edi
xor edi, edi
mov word [eax], di
test byte [ecx], 1
je 0x40e0ae
mov edi, 1
mov word [eax], di
test byte [ecx], 2
je 0x40e0b7
or word [eax], 2
test byte [ecx], 4
je 0x40e0c0
or word [eax], 4
add eax, 8
add ecx, 8
dec edx
jne 0x40e096
cmp dword [esp + 0xe4], 0
je 0x40e0f4
mov ecx, dword [esp + 0xcc]
mov eax, dword [ecx + 0xdc]
cmp eax, 0xffffffff
je 0x40e0f4
mov edx, 1
mov dword [ebp + esi*8], eax
mov word [ebp + esi*8 + 4], dx
inc esi
test esi, esi
je 0x40e1b6
mov eax, dword [esp + 0xd8]
cdq
push edx
push eax
push esi
push ebp
call fcn.00437580
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jle 0x40e1b6
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x40e161
mov edi, dword [esp + 0xd0]
mov eax, dword [esp + 0x18]
add edi, 6
lea edx, [ebp + eax*8 + 6]
movsx ecx, word [edx]
xor eax, eax
test cl, 1
je 0x40e145
mov eax, 1
test cl, 4
je 0x40e14d
or eax, 4
test cl, 2
je 0x40e155
or eax, 2
mov word [edi], ax
add edx, 8
add edi, 8
dec ebx
jne 0x40e136
cmp dword [esp + 0xe4], 0
je 0x40e1b6
mov ecx, dword [esp + 0xcc]
cmp dword [ecx + 0xdc], 0xffffffff
je 0x40e1b6
mov edx, dword [esp + 0x20]
test byte [ebp + edx*8 + 6], 1
je 0x40e1b6
mov edi, dword [sym.imp.WS2_32.dll_recv]
lea esp, [esp]
mov ecx, dword [esp + 0xcc]
mov edx, dword [ecx + 0xdc]
push 0
push 0x40
lea eax, [esp + 0x40]
push eax
push edx
call edi
test eax, eax
jg 0x40e190
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x14], 0
je 0x40e1c7
push ebp
call dword [0x58e0c0]
add esp, 4
mov eax, dword [esp + 0xdc]
test eax, eax
je 0x40e1d8
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
cmp dword [esp + 0xe0], 0
je 0x40e236
test esi, esi
jne 0x40e236
mov ebx, dword [esp + 0xcc]
cmp dword [ebx], 0xbab1e
mov dword [esp + 0x14], esi
jne 0x40e236
cmp dword [ebx + 0xec], esi
jne 0x40e236
lea edx, [esp + 0x14]
push edx
call fcn.0040d650
add esp, 4
test eax, eax
jne 0x40e236
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40e236
mov ecx, dword [esp + 0xd8]
cmp eax, ecx
jg 0x40e229
test eax, eax
jns 0x40e22b
mov eax, ecx
cdq
push edx
push eax
call fcn.00437410
add esp, 8
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xb8
ret
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0xb8
ret