Function at 0x401950
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4078e0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x40b018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov ebx, ecx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
mov dword [ebp - 4], eax
lea edi, [eax + 5]
mov eax, str.EHLO
lea esi, [ebp - 0x2c]
call fcn.00403bd0
lea eax, [ebx + 0x20]
push 0
mov dword [ebp - 0x54], eax
push eax
or eax, 0xffffffff
mov edi, esi
call fcn.00403500
push 2
mov eax, 0x4082bc
mov ecx, esi
call fcn.004035b0
mov eax, dword [ebp - 0x2c]
mov edi, 0x10
cmp dword [ebp - 0x18], edi
jae 0x4019d2
mov eax, esi
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebx + 0x4c0]
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x401c92
push 0x401
lea esi, [ebx + 0xb8]
push 0
push esi
mov dword [ebp - 0x58], esi
call sub.MSVCR100.dll_memset
mov eax, dword [ebx + 0x4c0]
add esp, 0xc
push 0
push 0x400
push esi
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x401c92
mov byte [ebx + eax + 0xb8], 0
mov edi, 0xc
mov eax, str.AUTH_LOGIN_r_n
lea esi, [ebp - 0x2c]
call fcn.00403bd0
mov eax, dword [ebp - 0x2c]
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jae 0x401a50
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebx + 0x4c0]
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x401c87
mov edi, ebx
call fcn.00401910
test al, al
je 0x401c87
mov esi, dword [ebp - 0x54]
push 1
lea eax, [ebp - 0x4c]
push eax
push esi
xor eax, eax
mov byte [ebp - 0x4c], 0x40
call fcn.00403710
push eax
push esi
xor ebx, ebx
lea esi, [ebp - 0x48]
call fcn.004028a0
mov esi, eax
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
lea ecx, [ebp - 0x2c]
mov ebx, 0x10
cmp ecx, esi
je 0x401b03
cmp dword [ebp - 0x18], ebx
jb 0x401abf
mov edx, dword [ebp - 0x2c]
push edx
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
cmp dword [esi + 0x14], ebx
jae 0x401aea
mov eax, dword [esi + 0x10]
inc eax
push eax
lea eax, [ebp - 0x2c]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
xor eax, eax
jmp 0x401af1
mov ecx, dword [esi]
mov dword [ebp - 0x2c], ecx
mov dword [esi], eax
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x1c], edx
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x18], ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], ebx
jb 0x401b15
mov edx, dword [ebp - 0x48]
push edx
call edi
add esp, 4
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x2c]
mov eax, edi
cmp esi, ebx
jae 0x401b24
lea eax, [ebp - 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b27
sub eax, edx
cmp esi, ebx
jb 0x401b3e
mov ecx, edi
test edi, edi
jne 0x401b41
xor ebx, ebx
jmp 0x401b4b
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.00401310
mov ebx, eax
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b50
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [ebp - 0x2c]
call fcn.00403bd0
push 2
mov eax, 0x4082bc
mov ecx, esi
call fcn.004035b0
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov eax, dword [ebp - 0x2c]
add esp, 4
cmp dword [ebp - 0x18], 0x10
jae 0x401b88
mov eax, esi
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x50]
mov edx, dword [ebx + 0x4c0]
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x401c7d
mov edi, ebx
call fcn.00401910
test al, al
je 0x401c7d
mov esi, dword [ebx + 0x50]
lea edx, [ebx + 0x3c]
cmp esi, 0x10
jb 0x401bc6
mov eax, dword [edx]
jmp 0x401bc8
mov eax, edx
lea edi, [eax + 1]
jmp 0x401bd0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401bd0
sub eax, edi
cmp esi, 0x10
jb 0x401be0
mov edx, dword [edx]
test edx, edx
jne 0x401be8
xor esi, esi
jmp 0x401bf2
push edx
mov ecx, eax
call fcn.00401310
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
mov eax, esi
call fcn.00402840
lea ecx, [ebp - 0x2c]
push ecx
mov eax, 0x4082bc
call fcn.00402870
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
lea edx, [ebp - 0x2c]
push edx
mov ecx, ebx
call fcn.004018c0
test al, al
je 0x401c7d
mov edi, ebx
call fcn.00401910
test al, al
je 0x401c7d
mov edi, dword [ebp - 0x58]
mov esi, dword [sym.imp.MSVCR100.dll_strstr]
push 0x4082d0
push edi
call esi
add esp, 8
test eax, eax
je 0x401c56
lea esi, [ebp - 0x2c]
call fcn.00402810
mov eax, 2
jmp 0x401ca9
push 0x4082d4
push edi
call esi
add esp, 8
lea esi, [ebp - 0x2c]
test eax, eax
je 0x401c74
call fcn.00402810
mov eax, 3
jmp 0x401ca9
call fcn.00402810
xor eax, eax
jmp 0x401ca9
lea esi, [ebp - 0x2c]
call fcn.00402810
jmp 0x401ca4
cmp dword [ebp - 0x18], esi
jb 0x401ca4
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x401c9b
cmp dword [ebp - 0x18], edi
jb 0x401ca4
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406bba
mov esp, ebp
pop ebp
ret