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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406bcd
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x40a008]
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
mov ebx, ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push 5
push str.EHLO
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004014f0
cmp dword [ebx + 0x30], 0x10
lea edi, [ebx + 0x1c]
mov edx, edi
jb 0x402199
mov edx, dword [edi]
mov ecx, dword [edi + 0x10]
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
sub eax, esi
mov dword [ebp - 0x2c], ecx
push ecx
push edx
cmp ecx, eax
ja 0x4021d2
cmp dword [ebp - 0x14], 0x10
lea eax, [esi + ecx]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
add esi, eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x4021e2
mov byte [ebp - 0x2c], 0
push dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004057f0
mov edx, dword [ebp - 0x14]
mov esi, 0xa0d
mov ecx, dword [ebp - 0x18]
mov eax, edx
sub eax, ecx
cmp eax, 2
jb 0x402211
lea eax, [ecx + 2]
cmp edx, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov word [eax + ecx], si
mov byte [eax + ecx + 2], 0
jmp 0x402229
push 2
push 0x407430
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x2c]
push 2
call fcn.004057f0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [ebx + 0x4a4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x40252c
push 0x401
lea esi, [ebx + 0x9c]
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push 0x400
push esi
push dword [ebx + 0x4a4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x40252c
push 0xc
push str.AUTH_LOGIN_r_n
lea ecx, [ebp - 0x28]
mov byte [ebx + eax + 0x9c], 0
call fcn.004014f0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [ebx + 0x4a4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x40252c
push 0x401
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push 0x400
push esi
push dword [ebx + 0x4a4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x40252c
mov byte [ebx + eax + 0x9c], 0
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x402311
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x402305
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.004014f0
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
cmp edx, 0x10
cmovae ecx, edi
lea eax, [ecx + 1]
mov dword [ebp - 0x2c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402326
sub ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
cmp edx, 0x10
push ecx
cmovae eax, edi
push eax
call fcn.004019f0
mov edi, eax
mov edx, edi
lea eax, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x402347
sub edx, eax
lea ecx, [ebp - 0x28]
push edx
push edi
call fcn.004014f0
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
cmp eax, 2
jb 0x402389
lea eax, [ecx + 2]
cmp edx, 0x10
mov dword [ebp - 0x18], eax
mov edx, 0xa0d
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov word [eax + ecx], dx
mov byte [eax + ecx + 2], 0
jmp 0x4023a1
push 2
push 0x407430
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x2c]
push 2
call fcn.004057f0
push edi
call fcn.00405cae
add esp, 4
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
push 0
push dword [ebp - 0x18]
push eax
push dword [ebx + 0x4a4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x40252c
push 0x401
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push 0x400
push esi
push dword [ebx + 0x4a4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x40252c
lea edx, [ebx + 0x34]
mov byte [ebx + eax + 0x9c], 0
cmp dword [edx + 0x14], 0x10
jb 0x40241e
mov ecx, dword [edx]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402413
mov edx, dword [edx]
jmp 0x40242a
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402423
sub ecx, edi
push ecx
push edx
call fcn.004019f0
mov edi, eax
mov edx, edi
lea eax, [edx + 1]
nop word [eax + eax]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x402440
sub edx, eax
lea ecx, [ebp - 0x28]
push edx
push edi
call fcn.004014f0
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
cmp eax, 2
jb 0x402482
lea eax, [ecx + 2]
cmp edx, 0x10
mov dword [ebp - 0x18], eax
mov edx, 0xa0d
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov word [eax + ecx], dx
mov byte [eax + ecx + 2], 0
jmp 0x40249a
push 2
push 0x407430
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x2c]
push 2
call fcn.004057f0
push edi
call fcn.00405cae
add esp, 4
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
push 0
push dword [ebp - 0x18]
push eax
push dword [ebx + 0x4a4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x40252c
push 0x401
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push 0x400
push esi
push dword [ebx + 0x4a4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x40252c
mov edi, dword [sym.imp.VCRUNTIME140.dll_strstr]
push 0x407444
push esi
mov byte [ebx + eax + 0x9c], 0
call edi
add esp, 8
test eax, eax
je 0x402512
mov esi, 2
jmp 0x402531
push 0x407448
push esi
call edi
add esp, 8
test eax, eax
je 0x402528
mov esi, 3
jmp 0x402531
xor esi, esi
jmp 0x402531
mov esi, 1
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x402567
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40255d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40255d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00405c7d
add esp, 8
mov eax, esi
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.00405c3f
mov esp, ebp
pop ebp
ret