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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 0x2c]
and ecx, 0xfffeffff
mov dword [esi + 0x2c], ecx
cmp dword [ebx + 0x20], 0
jge 0x42dd93
test ecx, 0x1000
jne 0x42dcd8
test ecx, 0x40000
jne 0x42dd65
and ecx, 0xffffefff
add dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x2c], ecx
mov edx, ecx
jne 0x42dd07
mov eax, ecx
and al, 5
cmp al, 4
jne 0x42dd07
and ecx, 0xfffffffb
mov dword [esi + 0x2c], ecx
mov edx, ecx
test cl, 8
je 0x42dd07
mov eax, dword [esi + 4]
dec dword [eax + 4]
mov edx, dword [esi + 0x2c]
test edx, 0x40000
je 0x42dd1d
push 0
push 0
call fcn.004261d0
add esp, 8
jmp 0x42dd29
mov eax, dword [esi + 0x98]
mov edx, dword [esi + 0x9c]
push dword [ebx + 0x20]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
call fcn.00440310
add esp, 4
mov ecx, 0x2746
cmp eax, 0x2745
cmove eax, ecx
and dword [esi + 0x2c], 0xffff3fff
lea ecx, [ebp - 8]
push ecx
push eax
call fcn.0042bce0
add esp, 4
push eax
mov eax, dword [esi + 0x38]
push esi
call eax
add esp, 0xc
mov ebx, dword [ebp + 8]
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x2c]
dec ecx
mov dword [esi + 0x3c], ecx
test al, 1
je 0x42dd8d
test ecx, ecx
jne 0x42dd8d
test al, 0x20
jne 0x42dd8d
or eax, 0x20
mov dword [esi + 0x2c], eax
mov eax, dword [ebx + 0x2c]
mov dword [esi + 0x28], eax
mov dword [ebx + 0x2c], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
test ecx, 0x40000
jne 0x42ddc3
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x42de7d
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 0x42df82
test dword [esi + 0x2c], 0x1000
mov edi, 0x20
je 0x42df82
mov ebx, dword [sym.imp.WS2_32.dll_WSARecv]
nop dword [eax + eax]
mov eax, edi
dec edi
test eax, eax
jle 0x42df82
push 0
push 0
call fcn.004261d0
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x34]
push 0x10000
push esi
mov dword [ebp - 4], edx
call eax
add esp, 0x14
cmp dword [ebp - 4], 0
je 0x42df70
cmp dword [ebp - 8], 0
je 0x42df70
push 0
push 0
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
lea eax, [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
push dword [esi + 0x90]
call ebx
cmp eax, 0xffffffff
je 0x42df02
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42decc
lea ecx, [ebp - 8]
push ecx
push eax
mov eax, dword [esi + 0x38]
push esi
call eax
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp eax, dword [ebp - 8]
jb 0x42df82
test dword [esi + 0x2c], 0x1000
jne 0x42dde0
jmp 0x42df82
test ecx, 0x1000
je 0x42dead
and ecx, 0xffffefff
add dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x2c], ecx
jne 0x42dead
mov eax, ecx
and al, 5
cmp al, 4
jne 0x42dead
and ecx, 0xfffffffb
mov dword [esi + 0x2c], ecx
test cl, 8
je 0x42dead
mov eax, dword [esi + 4]
dec dword [eax + 4]
lea eax, [esi + 0x98]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 8], 0
push 0xfffff001
jmp 0x42df79
mov ecx, dword [esi + 0x2c]
and ecx, 0xffffefff
add dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x2c], ecx
jne 0x42def7
mov eax, ecx
and al, 5
cmp al, 4
jne 0x42def7
and ecx, 0xfffffffb
mov dword [esi + 0x2c], ecx
test cl, 8
je 0x42def7
mov eax, dword [esi + 4]
dec dword [eax + 4]
lea eax, [ebp - 8]
push eax
push 0xfffff001
jmp 0x42df79
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x42df1a
lea eax, [ebp - 8]
push eax
push 0
jmp 0x42df79
mov ecx, dword [esi + 0x2c]
and ecx, 0xffffefff
add dword [esi + 0x40], 0xffffffff
mov edx, ecx
jne 0x42df49
mov eax, ecx
and al, 5
cmp al, 4
jne 0x42df49
and ecx, 0xfffffffb
mov dword [esi + 0x2c], ecx
mov edx, ecx
test cl, 8
je 0x42df49
mov eax, dword [esi + 4]
dec dword [eax + 4]
mov edx, dword [esi + 0x2c]
mov eax, 0x2746
cmp edi, 0x2745
cmove edi, eax
lea eax, [ebp - 8]
push eax
and edx, 0xffff3fff
push edi
mov dword [esi + 0x2c], edx
call fcn.0042bce0
add esp, 4
push eax
jmp 0x42df79
lea eax, [ebp - 8]
push eax
push 0xfffff024
mov eax, dword [esi + 0x38]
push esi
call eax
add esp, 0xc
mov eax, dword [esi + 0x2c]
and eax, 0x11000
pop edi
cmp eax, 0x1000
jne 0x42dd65
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.0042ea40
add esp, 8
jmp 0x42dd68