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

Disassembly:
push edi
push esi
push ebx
sub esp, 0x40
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
cmp dword [ebx + 8], 0xc
je 0x4e1d40
mov dword [esp + 8], 0x3b5
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], str.handle__type__UV_TCP
call fcn.0053e6a0
mov edx, dword [ebx + 0x2c]
mov ecx, dword [esi + 0x20]
mov eax, edx
and eax, 0xfffdffff
test ecx, ecx
mov dword [ebx + 0x2c], eax
js 0x4e1ed5
test edx, 0x80000
je 0x4e1e62
lea esi, [esp + 0x38]
lea edi, [esp + 0x34]
jmp 0x4e1e29
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004c96e0
mov dword [esp + 8], esi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], eax
mov dword [esp + 4], 0x10000
mov dword [esp], ebx
call dword [ebx + 0x34]
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x4e1fe2
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4e1fe2
lea eax, [esp + 0x30]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edi
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x90]
mov dword [esp + 0x34], 0
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_WSARecv]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x4e2021
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4e2050
mov dword [esp + 4], eax
mov dword [esp + 8], esi
mov dword [esp], ebx
call dword [ebx + 0x38]
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x38], eax
mov eax, dword [ebx + 0x2c]
ja 0x4e1e32
test ah, 1
jne 0x4e1d71
and eax, 0x20100
cmp eax, 0x100
je 0x4e1e9f
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x4e1eb1
sub eax, 1
mov edx, dword [ebx + 0x2c]
test eax, eax
mov dword [ebx + 0x3c], eax
jne 0x4e1e5b
test dl, 1
jne 0x4e1f80
add esp, 0x40
pop ebx
pop esi
pop edi
ret
mov ecx, dword [esi + 0x24]
lea edi, [ebx + 0x98]
test ecx, ecx
je 0x4e20c0
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov dword [esp], ebx
call dword [ebx + 0x38]
mov eax, dword [ebx + 0x98]
cmp dword [esi + 0x24], eax
mov eax, dword [ebx + 0x2c]
jae 0x4e1d64
and eax, 0x20100
cmp eax, 0x100
jne 0x4e1e3e
mov eax, dword [esp + 0x50]
mov edx, ebx
call fcn.004e0290
mov eax, dword [ebx + 0x3c]
test eax, eax
jne 0x4e1e45
mov dword [esp + 8], 0x42b
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x7533a3
call fcn.0053e6a0
mov eax, dword [ebx + 0x3c]
jmp 0x4e1e45
mov eax, edx
and eax, 0x80100
cmp eax, 0x80000
je 0x4e1e3e
mov ecx, edx
and ecx, 0xfffdfeff
sub dword [ebx + 0x40], 1
mov dword [ebx + 0x2c], ecx
je 0x4e1fb0
jns 0x4e1f1d
mov dword [esp + 8], 0x3be
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x7534d9
call fcn.0053e6a0
mov ecx, dword [ebx + 0x2c]
and ecx, 0x80000
jne 0x4e2000
mov eax, dword [ebx + 0x98]
mov edx, dword [ebx + 0x9c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov eax, dword [esi + 0x20]
mov dword [esp], eax
call fcn.004ee440
mov edx, 0x2746
cmp eax, 0x2745
mov esi, dword [ebx + 0x38]
cmove eax, edx
mov dword [esp], eax
call fcn.004cc7f0
lea edx, [esp + 0x38]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 8], edx
call esi
jmp 0x4e1e3e
test dl, 8
jne 0x4e1e5b
mov eax, dword [esp + 0x50]
or edx, 8
mov dword [ebx + 0x2c], edx
mov eax, dword [eax + 0x2c]
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 0x50]
mov dword [eax + 0x2c], ebx
add esp, 0x40
pop ebx
pop esi
pop edi
ret
test dl, 1
jne 0x4e1f1d
test dl, 0x40
je 0x4e1f1d
mov ecx, edx
and ecx, 0xfffdfebf
and edx, 0x20
mov dword [ebx + 0x2c], ecx
je 0x4e1f1d
mov eax, dword [ebx + 4]
sub dword [eax + 4], 1
jmp 0x4e1f1d
mov dword [esp + 8], esi
mov dword [esp + 4], 0xfffff024
mov dword [esp], ebx
call dword [ebx + 0x38]
mov eax, dword [ebx + 0x2c]
jmp 0x4e1e32
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004c96e0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
jmp 0x4e1f3d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4e2130
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [ebx + 0x38]
mov eax, dword [ebx + 0x2c]
jmp 0x4e1e32
mov edx, dword [ebx + 0x2c]
mov eax, edx
and ah, 0x7e
sub dword [ebx + 0x40], 1
mov dword [ebx + 0x2c], eax
jne 0x4e2083
test dl, 1
jne 0x4e20a1
test dl, 0x40
je 0x4e20a1
mov eax, edx
and eax, 0xffff7ebf
and edx, 0x20
mov dword [ebx + 0x2c], eax
je 0x4e20a1
mov eax, dword [ebx + 4]
sub dword [eax + 4], 1
jmp 0x4e20a1
jns 0x4e20a1
mov dword [esp + 8], 0x406
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x7534d9
call fcn.0053e6a0
mov dword [esp + 8], esi
mov dword [esp + 4], 0xfffff001
mov dword [esp], ebx
call dword [ebx + 0x38]
mov eax, dword [ebx + 0x2c]
jmp 0x4e1e32
test dh, 1
je 0x4e2100
mov eax, edx
and eax, 0xfffdfeff
sub dword [ebx + 0x40], 1
mov dword [ebx + 0x2c], eax
jne 0x4e218f
test dl, 1
jne 0x4e2100
test dl, 0x40
je 0x4e2100
mov eax, edx
and eax, 0xfffdfebf
and edx, 0x20
mov dword [ebx + 0x2c], eax
je 0x4e2100
mov edx, dword [ebx + 4]
sub dword [edx + 4], 1
lea esi, [esi]
and ah, 0x7f
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [ebx + 0x2c], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0xfffff001
mov dword [esp], ebx
call dword [ebx + 0x38]
mov eax, dword [ebx + 0x2c]
jmp 0x4e1e32
mov ecx, dword [ebx + 0x2c]
mov edx, ecx
and dh, 0xfe
sub dword [ebx + 0x40], 1
mov dword [ebx + 0x2c], edx
jne 0x4e21b9
test cl, 1
jne 0x4e2162
test cl, 0x40
je 0x4e2162
mov edx, ecx
and edx, 0xfffffebf
and ecx, 0x20
mov dword [ebx + 0x2c], edx
je 0x4e2162
mov edx, dword [ebx + 4]
sub dword [edx + 4], 1
cmp eax, 0x2745
mov edx, 0x2746
mov edi, dword [ebx + 0x38]
cmove eax, edx
mov dword [esp], eax
call fcn.004cc7f0
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call edi
mov eax, dword [ebx + 0x2c]
jmp 0x4e1e32
jns 0x4e2100
mov dword [esp + 8], 0x3df
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x7534d9
call fcn.0053e6a0
mov eax, dword [ebx + 0x2c]
jmp 0x4e2100
jns 0x4e2162
mov dword [esp + 8], 0x413
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x7534d9
mov dword [esp + 0x2c], eax
call fcn.0053e6a0
mov eax, dword [esp + 0x2c]
jmp 0x4e2162