Function at 0x470e60
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 0x470e90
mov dword [esp + 8], 0x3b5
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], str.handle__type__UV_TCP
call fcn.004a0380
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 0x471025
test edx, 0x80000
je 0x470fb2
lea esi, [esp + 0x38]
lea edi, [esp + 0x34]
jmp 0x470f79
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00458b30
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 0x471132
mov eax, dword [esp + 0x38]
test eax, eax
je 0x471132
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 0x471171
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4711a0
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 0x470f82
test ah, 1
jne 0x470ec1
and eax, 0x20100
cmp eax, 0x100
je 0x470fef
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x471001
sub eax, 1
mov edx, dword [ebx + 0x2c]
test eax, eax
mov dword [ebx + 0x3c], eax
jne 0x470fab
test dl, 1
jne 0x4710d0
add esp, 0x40
pop ebx
pop esi
pop edi
ret
mov ecx, dword [esi + 0x24]
lea edi, [ebx + 0x98]
test ecx, ecx
je 0x471210
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 0x470eb4
and eax, 0x20100
cmp eax, 0x100
jne 0x470f8e
mov eax, dword [esp + 0x50]
mov edx, ebx
call fcn.0046f3e0
mov eax, dword [ebx + 0x3c]
test eax, eax
jne 0x470f95
mov dword [esp + 8], 0x42b
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x6464e3
call fcn.004a0380
mov eax, dword [ebx + 0x3c]
jmp 0x470f95
mov eax, edx
and eax, 0x80100
cmp eax, 0x80000
je 0x470f8e
mov ecx, edx
and ecx, 0xfffdfeff
sub dword [ebx + 0x40], 1
mov dword [ebx + 0x2c], ecx
je 0x471100
jns 0x47106d
mov dword [esp + 8], 0x3be
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x646619
call fcn.004a0380
mov ecx, dword [ebx + 0x2c]
and ecx, 0x80000
jne 0x471150
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.0047d590
mov edx, 0x2746
cmp eax, 0x2745
mov esi, dword [ebx + 0x38]
cmove eax, edx
mov dword [esp], eax
call fcn.0045b940
lea edx, [esp + 0x38]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 8], edx
call esi
jmp 0x470f8e
test dl, 8
jne 0x470fab
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 0x47106d
test dl, 0x40
je 0x47106d
mov ecx, edx
and ecx, 0xfffdfebf
and edx, 0x20
mov dword [ebx + 0x2c], ecx
je 0x47106d
mov eax, dword [ebx + 4]
sub dword [eax + 4], 1
jmp 0x47106d
mov dword [esp + 8], esi
mov dword [esp + 4], 0xfffff024
mov dword [esp], ebx
call dword [ebx + 0x38]
mov eax, dword [ebx + 0x2c]
jmp 0x470f82
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00458b30
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
jmp 0x47108d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x471280
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [ebx + 0x38]
mov eax, dword [ebx + 0x2c]
jmp 0x470f82
mov edx, dword [ebx + 0x2c]
mov eax, edx
and ah, 0x7e
sub dword [ebx + 0x40], 1
mov dword [ebx + 0x2c], eax
jne 0x4711d3
test dl, 1
jne 0x4711f1
test dl, 0x40
je 0x4711f1
mov eax, edx
and eax, 0xffff7ebf
and edx, 0x20
mov dword [ebx + 0x2c], eax
je 0x4711f1
mov eax, dword [ebx + 4]
sub dword [eax + 4], 1
jmp 0x4711f1
jns 0x4711f1
mov dword [esp + 8], 0x406
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x646619
call fcn.004a0380
mov dword [esp + 8], esi
mov dword [esp + 4], 0xfffff001
mov dword [esp], ebx
call dword [ebx + 0x38]
mov eax, dword [ebx + 0x2c]
jmp 0x470f82
test dh, 1
je 0x471250
mov eax, edx
and eax, 0xfffdfeff
sub dword [ebx + 0x40], 1
mov dword [ebx + 0x2c], eax
jne 0x4712df
test dl, 1
jne 0x471250
test dl, 0x40
je 0x471250
mov eax, edx
and eax, 0xfffdfebf
and edx, 0x20
mov dword [ebx + 0x2c], eax
je 0x471250
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 0x470f82
mov ecx, dword [ebx + 0x2c]
mov edx, ecx
and dh, 0xfe
sub dword [ebx + 0x40], 1
mov dword [ebx + 0x2c], edx
jne 0x471309
test cl, 1
jne 0x4712b2
test cl, 0x40
je 0x4712b2
mov edx, ecx
and edx, 0xfffffebf
and ecx, 0x20
mov dword [ebx + 0x2c], edx
je 0x4712b2
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.0045b940
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call edi
mov eax, dword [ebx + 0x2c]
jmp 0x470f82
jns 0x471250
mov dword [esp + 8], 0x3df
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x646619
call fcn.004a0380
mov eax, dword [ebx + 0x2c]
jmp 0x471250
jns 0x4712b2
mov dword [esp + 8], 0x413
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x646619
mov dword [esp + 0x2c], eax
call fcn.004a0380
mov eax, dword [esp + 0x2c]
jmp 0x4712b2