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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405c10
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x408018]
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 - 0x54], 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.00403b10
lea eax, [ebx + 0x20]
push 0
mov dword [ebp - 0x50], eax
push eax
or eax, 0xffffffff
mov edi, esi
call fcn.00403470
push 2
mov eax, 0x4062ac
mov ecx, esi
call fcn.00403520
mov eax, dword [ebp - 0x2c]
mov edi, 0x10
cmp dword [ebp - 0x18], edi
jae 0x401932
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 0x401bf2
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 0x401bf2
mov byte [ebx + eax + 0xb8], 0
mov edi, 0xc
mov eax, str.AUTH_LOGIN_r_n
lea esi, [ebp - 0x2c]
call fcn.00403b10
mov eax, dword [ebp - 0x2c]
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jae 0x4019b0
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 0x401be7
mov edi, ebx
call fcn.00401870
test al, al
je 0x401be7
mov eax, dword [ebp - 0x50]
push eax
lea ebx, [ebp - 0x4c]
mov byte [ebp - 0x4c], 0x40
call fcn.00403680
mov ecx, dword [ebp - 0x50]
push eax
push ecx
lea esi, [ebp - 0x48]
call fcn.00402800
mov esi, eax
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
lea edx, [ebp - 0x2c]
mov ebx, 0x10
cmp edx, esi
je 0x401a5f
cmp dword [ebp - 0x18], ebx
jb 0x401a1b
mov eax, dword [ebp - 0x2c]
push eax
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 0x401a46
mov eax, dword [esi + 0x10]
inc eax
push eax
lea ecx, [ebp - 0x2c]
push esi
push ecx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
xor eax, eax
jmp 0x401a4d
mov edx, dword [esi]
mov dword [ebp - 0x2c], edx
mov dword [esi], eax
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x1c], ecx
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x18], edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], ebx
jb 0x401a71
mov eax, dword [ebp - 0x48]
push eax
call edi
add esp, 4
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x2c]
mov eax, edi
cmp esi, ebx
jae 0x401a80
lea eax, [ebp - 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401a83
sub eax, edx
cmp esi, ebx
jb 0x401a9a
mov ecx, edi
test edi, edi
jne 0x401a9d
xor ebx, ebx
jmp 0x401aa7
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.00401270
mov ebx, eax
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ab0
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [ebp - 0x2c]
call fcn.00403b10
push 2
mov eax, 0x4062ac
mov ecx, esi
call fcn.00403520
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 0x401ae8
mov eax, esi
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x54]
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 0x401bdd
mov edi, ebx
call fcn.00401870
test al, al
je 0x401bdd
mov esi, dword [ebx + 0x50]
lea edx, [ebx + 0x3c]
cmp esi, 0x10
jb 0x401b26
mov eax, dword [edx]
jmp 0x401b28
mov eax, edx
lea edi, [eax + 1]
jmp 0x401b30
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b30
sub eax, edi
cmp esi, 0x10
jb 0x401b40
mov edx, dword [edx]
test edx, edx
jne 0x401b48
xor esi, esi
jmp 0x401b52
push edx
mov ecx, eax
call fcn.00401270
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
mov eax, esi
call fcn.004027a0
lea ecx, [ebp - 0x2c]
push ecx
mov eax, 0x4062ac
call fcn.004027d0
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.00401820
test al, al
je 0x401bdd
mov edi, ebx
call fcn.00401870
test al, al
je 0x401bdd
mov edi, dword [ebp - 0x58]
mov esi, dword [sym.imp.MSVCR100.dll_strstr]
push 0x4062c0
push edi
call esi
add esp, 8
test eax, eax
je 0x401bb6
lea esi, [ebp - 0x2c]
call fcn.00402770
mov eax, 2
jmp 0x401c09
push 0x4062c4
push edi
call esi
add esp, 8
lea esi, [ebp - 0x2c]
test eax, eax
je 0x401bd4
call fcn.00402770
mov eax, 3
jmp 0x401c09
call fcn.00402770
xor eax, eax
jmp 0x401c09
lea esi, [ebp - 0x2c]
call fcn.00402770
jmp 0x401c04
cmp dword [ebp - 0x18], esi
jb 0x401c04
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x401bfb
cmp dword [ebp - 0x18], edi
jb 0x401c04
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.00404eea
mov esp, ebp
pop ebp
ret