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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406cb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x34], al
mov dword [ebp - 4], eax
lea edi, [eax + 5]
mov eax, str.EHLO
lea esi, [ebp - 0x34]
call fcn.00403aa0
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0x20]
push 0
mov dword [ebp - 0x14], eax
push eax
or eax, 0xffffffff
mov edi, esi
call fcn.004033c0
push 2
mov eax, 0x4072cc
mov ecx, esi
call fcn.00403470
mov eax, dword [ebp - 0x34]
mov edi, 0x10
cmp dword [ebp - 0x20], edi
jae 0x401933
mov eax, esi
mov ecx, dword [ebp - 0x24]
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 0x401c2b
push 0x401
lea esi, [ebx + 0xb8]
push 0
push esi
mov dword [ebp - 0x18], 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 0x401c2b
mov byte [eax + ebx + 0xb8], 0
mov edi, 0xc
mov eax, str.AUTH_LOGIN_r_n
lea esi, [ebp - 0x34]
call fcn.00403aa0
mov eax, dword [ebp - 0x34]
mov esi, 0x10
cmp dword [ebp - 0x20], esi
jae 0x4019b1
lea eax, [ebp - 0x34]
mov ecx, dword [ebp - 0x24]
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 0x401c20
mov edi, ebx
call fcn.00401880
test al, al
je 0x401c20
mov esi, dword [ebp - 0x14]
push 1
lea eax, [ebp - 0x10]
push eax
push esi
xor eax, eax
mov byte [ebp - 0x10], 0x40
call fcn.004035d0
push eax
push esi
xor ebx, ebx
lea esi, [ebp - 0x50]
call fcn.00402710
mov esi, eax
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
lea ecx, [ebp - 0x34]
mov ebx, 0x10
cmp ecx, esi
je 0x401a64
cmp dword [ebp - 0x20], ebx
jb 0x401a20
mov edx, dword [ebp - 0x34]
push edx
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x34], al
cmp dword [esi + 0x14], ebx
jae 0x401a4b
mov eax, dword [esi + 0x10]
inc eax
push eax
lea eax, [ebp - 0x34]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
xor eax, eax
jmp 0x401a52
mov ecx, dword [esi]
mov dword [ebp - 0x34], ecx
mov dword [esi], eax
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x24], edx
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x20], ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov byte [ebp - 4], 0
cmp dword [ebp - 0x3c], ebx
jb 0x401a76
mov edx, dword [ebp - 0x50]
push edx
call edi
add esp, 4
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x34]
mov eax, edi
cmp esi, ebx
jae 0x401a85
lea eax, [ebp - 0x34]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401a88
sub eax, edx
cmp esi, ebx
jb 0x401a9f
mov ecx, edi
test edi, edi
jne 0x401aa2
xor ebx, ebx
jmp 0x401aac
lea ecx, [ebp - 0x34]
push ecx
mov ecx, eax
call fcn.004012f0
mov ebx, eax
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ab1
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [ebp - 0x34]
call fcn.00403aa0
push 2
mov eax, 0x4072cc
mov ecx, esi
call fcn.00403470
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov eax, dword [ebp - 0x34]
add esp, 4
cmp dword [ebp - 0x20], 0x10
jae 0x401ae9
mov eax, esi
mov ecx, dword [ebp - 0x24]
mov ebx, dword [ebp + 8]
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 0x401c16
mov edi, ebx
call fcn.00401880
test al, al
je 0x401c16
mov esi, dword [ebx + 0x50]
lea edx, [ebx + 0x3c]
cmp esi, 0x10
jb 0x401b27
mov eax, dword [edx]
jmp 0x401b29
mov eax, edx
lea edi, [eax + 1]
lea esp, [esp]
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.004012f0
mov esi, eax
lea eax, [ebp - 0x34]
push eax
mov eax, esi
call fcn.004026b0
lea ecx, [ebp - 0x34]
push ecx
mov eax, 0x4072cc
call fcn.004026e0
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
push ebx
lea eax, [ebp - 0x34]
call fcn.00401850
test al, al
je 0x401c16
mov edi, ebx
call fcn.00401880
test al, al
je 0x401c16
mov edi, dword [ebp - 0x18]
mov esi, dword [sym.imp.MSVCR100.dll_strstr]
push 0x4072e0
push edi
call esi
add esp, 8
test eax, eax
je 0x401bcd
lea esi, [ebp - 0x34]
call fcn.00402680
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push 0x4072e4
push edi
call esi
add esp, 8
lea esi, [ebp - 0x34]
test eax, eax
je 0x401bfc
call fcn.00402680
pop edi
pop esi
mov eax, 3
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
call fcn.00402680
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
lea esi, [ebp - 0x34]
call fcn.00402680
jmp 0x401c3d
cmp dword [ebp - 0x20], esi
jb 0x401c3d
mov edx, dword [ebp - 0x34]
push edx
jmp 0x401c34
cmp dword [ebp - 0x20], edi
jb 0x401c3d
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4