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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x44a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
mov edi, ecx
mov ecx, dword [ebx + 0x18]
sub ecx, 1
je 0x411cf1
sub ecx, 3
jne 0x411d66
mov ecx, dword [ebp + 8]
xor esi, esi
cmp ecx, dword [ebx]
mov edx, 0x30
push esi
mov eax, 0x10030
cmove eax, edx
push 0x10000
add eax, ebx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jg 0x411c82
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
je 0x411c6c
jns 0x411c93
cmp eax, 0x2733
je 0x411c93
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041be62
mov esp, ebp
pop ebp
ret 8
mov esi, edi
xor eax, eax
cmp esi, 0x10000
setge al
test esi, esi
jg 0x411ca8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041be62
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebx]
jne 0x411cd0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], esi
mov byte [ebx + 0x1c], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041be62
mov esp, ebp
pop ebp
ret 8
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], esi
mov byte [ebx + 0x1d], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041be62
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x44], eax
sub eax, dword [ebx + 0x20]
push 0
push eax
lea eax, [ebx + 0x30]
add eax, dword [ebx + 0x20]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jg 0x411d3f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
je 0x411c6c
jns 0x411d64
cmp eax, 0x2733
je 0x411d64
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041be62
mov esp, ebp
pop ebp
ret 8
add dword [ebx + 0x20], esi
mov eax, dword [ebp - 0x44]
cmp dword [ebx + 0x20], eax
jl 0x411d64
cmp dword [ebx + 0x30], 0x70504455
jne 0x411e74
cmp dword [ebx + 0x24], 0x14
jne 0x411d79
mov dword [ebx + 0x24], 0x24
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041be62
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 8]
mov dword [ebp - 0x48], eax
movzx eax, byte [ebx + 0x3b]
push eax
movzx eax, word [ebx + 0x38]
push eax
push dword [ebx + 0x34]
lea eax, [ebp - 0x3c]
push str._d:_d__d_
push eax
call fcn.00401480
lea esi, [ebp - 0x3c]
add esp, 0x14
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x411da3
mov eax, dword [ebp - 0x48]
sub esi, ecx
mov dword [ebp - 0x44], esi
cmp eax, 8
jbe 0x411dc1
mov eax, 8
mov dword [ebp - 0x48], eax
jmp 0x411dc5
test eax, eax
jle 0x411ddb
push eax
lea eax, [ebp - 0x3c]
add eax, esi
push edi
push eax
call fcn.00438ba0
add esp, 0xc
add esi, dword [ebp - 0x48]
mov dword [ebp - 0x44], esi
push 0
push dword [ebp - 0x44]
lea eax, [ebp - 0x3c]
mov edx, 8
lea esi, [ebx + 0x3c]
push eax
mov ecx, esi
call fcn.00401370
mov ecx, dword [edi + 8]
add esp, 0xc
test ecx, ecx
jle 0x411e68
sub ecx, 4
jb 0x411e13
mov eax, dword [esi]
cmp eax, dword [edi]
jne 0x411e18
add esi, 4
add edi, 4
sub ecx, 4
jae 0x411e02
cmp ecx, 0xfffffffc
je 0x411e68
mov al, byte [esi]
cmp al, byte [edi]
jne 0x411e45
cmp ecx, 0xfffffffd
je 0x411e68
mov al, byte [esi + 1]
cmp al, byte [edi + 1]
jne 0x411e45
cmp ecx, 0xfffffffe
je 0x411e68
mov al, byte [esi + 2]
cmp al, byte [edi + 2]
jne 0x411e45
cmp ecx, 0xffffffff
je 0x411e68
mov al, byte [esi + 3]
cmp al, byte [edi + 3]
je 0x411e68
push str.____TCP_not_match_password._n
call fcn.00401410
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041be62
mov esp, ebp
pop ebp
ret 8
mov dword [ebx + 8], 1
jmp 0x411d64
cmp dword [ebx + 0x30], 0x70504354
je 0x411ea0
push str.____magic_Not_TCPp_._n
call fcn.00401410
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041be62
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 8]
mov dword [ebp - 0x48], eax
movzx eax, byte [ebx + 0x3b]
push eax
movzx eax, word [ebx + 0x38]
push eax
push dword [ebx + 0x34]
lea eax, [ebp - 0x3c]
push str._d:_d__d_
push eax
call fcn.00401480
lea esi, [ebp - 0x3c]
add esp, 0x14
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x411ed0
mov eax, dword [ebp - 0x48]
sub esi, ecx
mov dword [ebp - 0x44], esi
cmp eax, 8
jbe 0x411eee
mov eax, 8
mov dword [ebp - 0x48], eax
jmp 0x411ef2
test eax, eax
jle 0x411f08
push eax
lea eax, [ebp - 0x3c]
add eax, esi
push edi
push eax
call fcn.00438ba0
add esp, 0xc
add esi, dword [ebp - 0x48]
mov dword [ebp - 0x44], esi
push 0
push dword [ebp - 0x44]
lea eax, [ebp - 0x3c]
mov edx, 8
lea esi, [ebx + 0x3c]
push eax
mov ecx, esi
call fcn.00401370
mov edx, dword [edi + 8]
add esp, 0xc
test edx, edx
jle 0x411f84
mov ecx, edi
sub edx, 4
jb 0x411f42
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x411f47
add esi, 4
add ecx, 4
sub edx, 4
jae 0x411f31
cmp edx, 0xfffffffc
je 0x411f84
mov al, byte [esi]
cmp al, byte [ecx]
jne 0x411e45
cmp edx, 0xfffffffd
je 0x411f84
mov al, byte [esi + 1]
cmp al, byte [ecx + 1]
jne 0x411e45
cmp edx, 0xfffffffe
je 0x411f84
mov al, byte [esi + 2]
cmp al, byte [ecx + 2]
jne 0x411e45
cmp edx, 0xffffffff
je 0x411f84
mov al, byte [esi + 3]
cmp al, byte [ecx + 3]
jne 0x411e45
mov eax, dword [edi + 0x58]
sub eax, dword [edi + 0x54]
sar eax, 4
test eax, eax
je 0x411ffe
mov eax, dword [edi + 0x58]
xor ecx, ecx
sub eax, dword [edi + 0x54]
sar eax, 4
test eax, eax
je 0x411ffe
mov edx, dword [edi + 0x54]
movzx esi, word [ebx + 0x38]
cmp si, word [edx]
je 0x411fbf
mov eax, dword [edi + 0x58]
inc ecx
sub eax, dword [edi + 0x54]
add edx, 0x10
sar eax, 4
cmp ecx, eax
jb 0x411fa7
jmp 0x411ffe
mov edx, dword [edi + 0x54]
shl ecx, 4
mov dword [ebp - 0x44], ecx
mov eax, dword [ecx + edx + 8]
sub eax, dword [ecx + edx + 4]
sar eax, 2
test eax, eax
je 0x411ffe
mov esi, dword [ecx + edx + 8]
sub esi, dword [ecx + edx + 4]
sar esi, 2
call fcn.0042486f
movzx eax, ax
xor edx, edx
div esi
mov eax, dword [edi + 0x54]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx + eax + 4]
mov eax, dword [eax + edx*4]
mov dword [ebx + 0x34], eax
mov dx, word [ebx + 0x38]
lea eax, [ebp - 0x3d]
mov ecx, dword [ebx + 0x34]
push eax
mov byte [ebp - 0x3d], 0
call fcn.00411ab0
add esp, 4
test eax, eax
jns 0x412055
movzx eax, word [ebx + 0x38]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
push dword [ebx + 0x34]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.____net_proxy:_TCP_real_dest:_async_connect___s:_d__err__n
call fcn.00401410
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041be62
mov esp, ebp
pop ebp
ret 8
cmp byte [ebp - 0x3d], 0
mov dword [ebx + 4], eax
mov dword [ebx + 0x18], 3
je 0x411d64
push ebx
push eax
mov ecx, edi
call fcn.00412090
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041be62
mov esp, ebp
pop ebp
ret 8