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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407360
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.00403b50
lea eax, [ebx + 0x20]
push 0
mov dword [ebp - 0x54], eax
push eax
or eax, 0xffffffff
mov edi, esi
call fcn.00403480
push 2
mov eax, 0x4082bc
mov ecx, esi
call fcn.00403530
mov eax, dword [ebp - 0x2c]
mov edi, 0x10
cmp dword [ebp - 0x18], edi
jae 0x4019b2
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 0x401c72
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 0x401c72
mov byte [ebx + eax + 0xb8], 0
mov edi, 0xc
mov eax, str.AUTH_LOGIN_r_n
lea esi, [ebp - 0x2c]
call fcn.00403b50
mov eax, dword [ebp - 0x2c]
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jae 0x401a30
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 0x401c67
mov edi, ebx
call fcn.004018f0
test al, al
je 0x401c67
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.00403690
push eax
push esi
xor ebx, ebx
lea esi, [ebp - 0x48]
call fcn.00402820
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 0x401ae3
cmp dword [ebp - 0x18], ebx
jb 0x401a9f
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 0x401aca
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 0x401ad1
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 0x401af5
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 0x401b04
lea eax, [ebp - 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b07
sub eax, edx
cmp esi, ebx
jb 0x401b1e
mov ecx, edi
test edi, edi
jne 0x401b21
xor ebx, ebx
jmp 0x401b2b
lea ecx, [ebp - 0x2c]
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 0x401b30
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [ebp - 0x2c]
call fcn.00403b50
push 2
mov eax, 0x4082bc
mov ecx, esi
call fcn.00403530
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 0x401b68
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 0x401c5d
mov edi, ebx
call fcn.004018f0
test al, al
je 0x401c5d
mov esi, dword [ebx + 0x50]
lea edx, [ebx + 0x3c]
cmp esi, 0x10
jb 0x401ba6
mov eax, dword [edx]
jmp 0x401ba8
mov eax, edx
lea edi, [eax + 1]
jmp 0x401bb0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401bb0
sub eax, edi
cmp esi, 0x10
jb 0x401bc0
mov edx, dword [edx]
test edx, edx
jne 0x401bc8
xor esi, esi
jmp 0x401bd2
push edx
mov ecx, eax
call fcn.004012f0
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
mov eax, esi
call fcn.004027c0
lea ecx, [ebp - 0x2c]
push ecx
mov eax, 0x4082bc
call fcn.004027f0
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.004018a0
test al, al
je 0x401c5d
mov edi, ebx
call fcn.004018f0
test al, al
je 0x401c5d
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 0x401c36
lea esi, [ebp - 0x2c]
call fcn.00402790
mov eax, 2
jmp 0x401c89
push 0x4082d4
push edi
call esi
add esp, 8
lea esi, [ebp - 0x2c]
test eax, eax
je 0x401c54
call fcn.00402790
mov eax, 3
jmp 0x401c89
call fcn.00402790
xor eax, eax
jmp 0x401c89
lea esi, [ebp - 0x2c]
call fcn.00402790
jmp 0x401c84
cmp dword [ebp - 0x18], esi
jb 0x401c84
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x401c7b
cmp dword [ebp - 0x18], edi
jb 0x401c84
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.0040663a
mov esp, ebp
pop ebp
ret