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

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, edx
mov ebp, ecx
push edi
mov edx, dword [esi + 0x2c]
and edx, 0xfffdffff
mov dword [esi + 0x2c], edx
cmp dword [ebx + 0x20], 0
jge 0x41b784
test edx, 0x100
jne 0x41b709
test edx, 0x80000
jne 0x41b97f
and edx, 0xfffffeff
add dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x2c], edx
jne 0x41b731
mov eax, edx
and al, 0x41
cmp al, 0x40
jne 0x41b731
and edx, 0xffffffbf
mov dword [esi + 0x2c], edx
test dl, 0x20
je 0x41b731
mov eax, dword [esi + 4]
dec dword [eax + 4]
test dword [esi + 0x2c], 0x80000
je 0x41b740
xor ecx, ecx
xor eax, eax
jmp 0x41b74c
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0x9c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0x18], eax
call fcn.0041fcd0
cmp eax, 0x2745
mov ecx, 0x2746
cmove eax, ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.0041c770
push eax
mov eax, dword [esi + 0x38]
push esi
call eax
add esp, 0xc
jmp 0x41b97f
test edx, 0x80000
jne 0x41b7b3
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x41b864
lea edi, [esi + 0x98]
push edi
push eax
mov eax, dword [esi + 0x38]
push esi
call eax
mov eax, dword [ebx + 0x24]
add esp, 0xc
cmp eax, dword [edi]
jb 0x41b967
test dword [esi + 0x2c], 0x100
je 0x41b967
mov edi, dword [sym.imp.WS2_32.dll_WSARecv]
xor ebx, ebx
nop dword [eax + eax]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebx
push eax
mov eax, dword [esi + 0x34]
push 0x10000
push esi
mov dword [esp + 0x28], ebx
call eax
add esp, 0xc
cmp dword [esp + 0x1c], ebx
je 0x41b954
cmp dword [esp + 0x18], ebx
je 0x41b954
push 0
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push eax
lea eax, [esp + 0x30]
push eax
push 1
lea eax, [esp + 0x2c]
push eax
push dword [esi + 0x90]
call edi
cmp eax, 0xffffffff
je 0x41b8f3
mov eax, dword [esp + 0x24]
test eax, eax
je 0x41b8bc
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [esi + 0x38]
push esi
call eax
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp eax, dword [esp + 0x18]
jb 0x41b967
test dword [esi + 0x2c], 0x100
jne 0x41b7d0
jmp 0x41b967
test edx, 0x100
je 0x41b894
and edx, 0xfffffeff
add dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x2c], edx
jne 0x41b894
mov eax, edx
and al, 0x41
cmp al, 0x40
jne 0x41b894
and edx, 0xffffffbf
mov dword [esi + 0x2c], edx
test dl, 0x20
je 0x41b894
mov eax, dword [esi + 4]
dec dword [eax + 4]
and dword [esi + 0x2c], 0xffff7fff
lea eax, [esi + 0x98]
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
push 0xfffff001
jmp 0x41b95e
mov ecx, dword [esi + 0x2c]
and ecx, 0xffff7eff
add dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x2c], ecx
jne 0x41b8e7
mov eax, ecx
and al, 0x41
cmp al, 0x40
jne 0x41b8e7
and ecx, 0xffffffbf
mov dword [esi + 0x2c], ecx
test cl, 0x20
je 0x41b8e7
mov eax, dword [esi + 4]
dec dword [eax + 4]
lea eax, [esp + 0x18]
push eax
push 0xfffff001
jmp 0x41b95e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
cmp edx, 0x2733
jne 0x41b90c
lea eax, [esp + 0x18]
push eax
push 0
jmp 0x41b95e
mov ecx, dword [esi + 0x2c]
and ecx, 0xfffffeff
add dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x2c], ecx
jne 0x41b937
mov eax, ecx
and al, 0x41
cmp al, 0x40
jne 0x41b937
and ecx, 0xffffffbf
mov dword [esi + 0x2c], ecx
test cl, 0x20
je 0x41b937
mov eax, dword [esi + 4]
dec dword [eax + 4]
cmp edx, 0x2745
mov eax, 0x2746
cmove edx, eax
lea eax, [esp + 0x18]
push eax
mov ecx, edx
call fcn.0041c770
push eax
jmp 0x41b95e
lea eax, [esp + 0x18]
push eax
push 0xfffff024
mov eax, dword [esi + 0x38]
push esi
call eax
add esp, 0xc
mov eax, dword [esi + 0x2c]
and eax, 0x20100
cmp eax, 0x100
jne 0x41b97f
mov edx, esi
mov ecx, ebp
call fcn.0041b2c0
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x2c]
dec ecx
mov dword [esi + 0x3c], ecx
test al, 1
je 0x41b9a4
test ecx, ecx
jne 0x41b9a4
test al, 8
jne 0x41b9a4
or eax, 8
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x2c]
mov dword [esi + 0x28], eax
mov dword [ebp + 0x2c], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret