Function at 0x4221d8
Capabilities:
Check for time delay via gettickcount
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push ebx
push esi
xor esi, esi
push edi
mov ebx, eax
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], esi
mov word [ebp - 0x1c], si
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp + 0x14], esi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
jne 0x42224d
mov eax, dword [edi + 0x14]
inc eax
push eax
call fcn.0042819a
pop ecx
mov ecx, dword [edi + 0x18]
cmp ecx, 8
mov esi, eax
mov dword [ebp - 4], esi
lea eax, [edi + 4]
jb 0x422229
mov edx, dword [eax]
jmp 0x42222b
mov edx, eax
cmp ecx, 8
jb 0x422234
mov ebx, dword [eax]
jmp 0x422236
mov ebx, eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
inc eax
push eax
push ebx
call fcn.0042343c
mov ebx, dword [edi + 0x14]
mov dword [ebp + 0x14], esi
cmp dword [ebp + 8], 0
jne 0x42225f
mov edx, dword [ebp + 0x14]
push ebx
call fcn.004224a3
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
dec eax
je 0x42237f
dec eax
je 0x422349
dec eax
je 0x4222f8
dec eax
jne 0x422405
mov esi, dword [ebp + 0x10]
mov eax, str.base64
call fcn.0040f4fc
xor eax, eax
push ebx
push dword [ebp + 0x14]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x466658
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
call fcn.0041fa12
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov dword [ebp + 0x14], eax
call esi
lea eax, [eax + eax + 2]
push eax
call fcn.0042819a
pop ecx
push dword [ebp + 0x14]
mov ebx, eax
call esi
push 0
inc eax
push eax
push dword [ebp + 0x14]
mov esi, ebx
call fcn.0042346f
lea ecx, [ebp - 0x40]
call fcn.0041f8e6
mov eax, ebx
mov esi, edi
call fcn.0040f4fc
push ebx
call fcn.004280b8
pop ecx
jmp 0x4223fb
mov esi, dword [ebp + 0x10]
mov eax, str.quoted_printable
call fcn.0040f4fc
lea eax, [ebx + ebx + 2]
push eax
call fcn.0042819a
pop ecx
push dword [ebp + 0x14]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
inc eax
push eax
push dword [ebp + 0x14]
mov esi, ebx
call fcn.0042346f
mov eax, ebx
mov esi, edi
call fcn.0040f4fc
push ebx
call fcn.004280b8
pop ecx
lea eax, [ebp - 0x20]
push eax
mov eax, edi
call fcn.00421e53
jmp 0x422405
mov esi, dword [ebp + 0x10]
mov eax, str.8bit
call fcn.0040f4fc
lea eax, [ebx + ebx + 2]
push eax
call fcn.0042819a
pop ecx
push dword [ebp + 0x14]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
inc eax
push eax
push dword [ebp + 0x14]
mov esi, ebx
call fcn.0042346f
jmp 0x4222e3
mov esi, dword [ebp + 0x10]
mov eax, str.7bit
call fcn.0040f4fc
lea eax, [ebx + ebx + 2]
push eax
call fcn.0042819a
pop ecx
push dword [ebp + 0x14]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
inc eax
push eax
push dword [ebp + 0x14]
mov esi, ebx
call fcn.0042346f
mov eax, ebx
mov esi, edi
call fcn.0040f4fc
push ebx
call fcn.004280b8
pop ecx
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push eax
xor ebx, ebx
mov eax, edi
call fcn.004123a7
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x4223db
lea eax, [ebp - 0x1c]
cmp word [eax], 0x7e
jbe 0x4223e6
mov word [eax], 0x3f
inc eax
inc eax
cmp word [eax], 0
jne 0x4223db
push 0xffffffffffffffff
push edi
xor ebx, ebx
lea eax, [ebp - 0x20]
call fcn.004123a7
push edi
lea eax, [ebp - 0x20]
push eax
call fcn.0042205c
cmp dword [ebp - 4], 0
je 0x422414
push dword [ebp - 4]
call fcn.004280b8
pop ecx
mov esi, dword [ebp + 0xc]
push 0xffffffffffffffff
xor edi, edi
call fcn.00412917
cmp dword [ebp - 8], 8
mov ebx, dword [ebp - 0x1c]
jae 0x42242c
lea ebx, [ebp - 0x1c]
push 0x466d38
push ebx
call fcn.00429365
pop ecx
pop ecx
mov edi, eax
test edi, edi
push ebx
push esi
je 0x42245f
and word [edi], 0
call fcn.00422fe1
push str._r_n..
push esi
mov word [edi], 0xd
call fcn.00422fe1
lea ebx, [edi + 6]
jmp 0x42242c
call fcn.00422fe1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x248]
push str.Encoding_took__dms_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00410e15
pop edi
pop esi
pop ebx
leave
ret 0x10