Function at 0x46ddf0
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 0x46de20
mov dword [esp + 8], 0x3b5
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], str.handle__type__UV_TCP
call fcn.0049c730
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 0x46dfb5
test edx, 0x80000
je 0x46df42
lea esi, [esp + 0x38]
lea edi, [esp + 0x34]
jmp 0x46df09
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00455ac0
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 0x46e0c2
mov eax, dword [esp + 0x38]
test eax, eax
je 0x46e0c2
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 0x46e101
mov eax, dword [esp + 0x30]
test eax, eax
je 0x46e130
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 0x46df12
test ah, 1
jne 0x46de51
and eax, 0x20100
cmp eax, 0x100
je 0x46df7f
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x46df91
sub eax, 1
mov edx, dword [ebx + 0x2c]
test eax, eax
mov dword [ebx + 0x3c], eax
jne 0x46df3b
test dl, 1
jne 0x46e060
add esp, 0x40
pop ebx
pop esi
pop edi
ret
mov ecx, dword [esi + 0x24]
lea edi, [ebx + 0x98]
test ecx, ecx
je 0x46e1a0
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 0x46de44
and eax, 0x20100
cmp eax, 0x100
jne 0x46df1e
mov eax, dword [esp + 0x50]
mov edx, ebx
call fcn.0046c370
mov eax, dword [ebx + 0x3c]
test eax, eax
jne 0x46df25
mov dword [esp + 8], 0x42b
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x5476a3
call fcn.0049c730
mov eax, dword [ebx + 0x3c]
jmp 0x46df25
mov eax, edx
and eax, 0x80100
cmp eax, 0x80000
je 0x46df1e
mov ecx, edx
and ecx, 0xfffdfeff
sub dword [ebx + 0x40], 1
mov dword [ebx + 0x2c], ecx
je 0x46e090
jns 0x46dffd
mov dword [esp + 8], 0x3be
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x5477d9
call fcn.0049c730
mov ecx, dword [ebx + 0x2c]
and ecx, 0x80000
jne 0x46e0e0
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.0047a520
mov edx, 0x2746
cmp eax, 0x2745
mov esi, dword [ebx + 0x38]
cmove eax, edx
mov dword [esp], eax
call fcn.004588d0
lea edx, [esp + 0x38]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 8], edx
call esi
jmp 0x46df1e
test dl, 8
jne 0x46df3b
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 0x46dffd
test dl, 0x40
je 0x46dffd
mov ecx, edx
and ecx, 0xfffdfebf
and edx, 0x20
mov dword [ebx + 0x2c], ecx
je 0x46dffd
mov eax, dword [ebx + 4]
sub dword [eax + 4], 1
jmp 0x46dffd
mov dword [esp + 8], esi
mov dword [esp + 4], 0xfffff024
mov dword [esp], ebx
call dword [ebx + 0x38]
mov eax, dword [ebx + 0x2c]
jmp 0x46df12
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00455ac0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
jmp 0x46e01d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x46e210
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [ebx + 0x38]
mov eax, dword [ebx + 0x2c]
jmp 0x46df12
mov edx, dword [ebx + 0x2c]
mov eax, edx
and ah, 0x7e
sub dword [ebx + 0x40], 1
mov dword [ebx + 0x2c], eax
jne 0x46e163
test dl, 1
jne 0x46e181
test dl, 0x40
je 0x46e181
mov eax, edx
and eax, 0xffff7ebf
and edx, 0x20
mov dword [ebx + 0x2c], eax
je 0x46e181
mov eax, dword [ebx + 4]
sub dword [eax + 4], 1
jmp 0x46e181
jns 0x46e181
mov dword [esp + 8], 0x406
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x5477d9
call fcn.0049c730
mov dword [esp + 8], esi
mov dword [esp + 4], 0xfffff001
mov dword [esp], ebx
call dword [ebx + 0x38]
mov eax, dword [ebx + 0x2c]
jmp 0x46df12
test dh, 1
je 0x46e1e0
mov eax, edx
and eax, 0xfffdfeff
sub dword [ebx + 0x40], 1
mov dword [ebx + 0x2c], eax
jne 0x46e26f
test dl, 1
jne 0x46e1e0
test dl, 0x40
je 0x46e1e0
mov eax, edx
and eax, 0xfffdfebf
and edx, 0x20
mov dword [ebx + 0x2c], eax
je 0x46e1e0
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 0x46df12
mov ecx, dword [ebx + 0x2c]
mov edx, ecx
and dh, 0xfe
sub dword [ebx + 0x40], 1
mov dword [ebx + 0x2c], edx
jne 0x46e299
test cl, 1
jne 0x46e242
test cl, 0x40
je 0x46e242
mov edx, ecx
and edx, 0xfffffebf
and ecx, 0x20
mov dword [ebx + 0x2c], edx
je 0x46e242
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.004588d0
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call edi
mov eax, dword [ebx + 0x2c]
jmp 0x46df12
jns 0x46e1e0
mov dword [esp + 8], 0x3df
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x5477d9
call fcn.0049c730
mov eax, dword [ebx + 0x2c]
jmp 0x46e1e0
jns 0x46e242
mov dword [esp + 8], 0x413
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x5477d9
mov dword [esp + 0x2c], eax
call fcn.0049c730
mov eax, dword [esp + 0x2c]
jmp 0x46e242