Function at 0x40e8e0
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, eax
test edi, edi
je 0x40eae3
test esi, esi
je 0x40eae3
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x40eae3
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
push eax
mov eax, ebx
call fcn.0040e840
add esp, 4
cmp dword [ebp], eax
jl 0x40eae3
mov eax, 0x55555556
imul ebx
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
lea ecx, [ebx*4]
mov eax, 0x6bca1af3
imul ecx
sar edx, 5
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
xor ecx, ecx
mov eax, 0x13
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
test ebp, ebp
jl 0x40ea4e
mov edx, dword [esp + 0x2c]
and edx, 2
mov dword [esp + 0x1c], edx
cmp ecx, ebp
jne 0x40e992
mov edx, ebp
imul edx, edx, 0x4c
lea eax, [ebx*4]
sub eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0x14], eax
test eax, eax
jle 0x40ea0c
mov edx, eax
jmp 0x40e9a0
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
shl ecx, 8
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Try_to_use_another_path:]
mov byte [esi], al
shl ecx, 6
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Try_to_use_another_path:]
shl ecx, 6
mov byte [esi + 1], al
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Try_to_use_another_path:]
shr ecx, 0x14
and ecx, 0x3f
mov byte [esi + 2], al
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Try_to_use_another_path:]
mov byte [esi + 3], cl
add edi, 3
add esi, 4
sub edx, 1
jne 0x40e9a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x1c], 0
mov edx, dword [esp + 0x10]
lea edx, [edx + eax*4]
mov dword [esp + 0x10], edx
jne 0x40ea2b
mov byte [esi], 0xd
inc esi
mov byte [esi], 0xa
inc esi
add dword [esp + 0x10], 2
inc ecx
cmp ecx, ebp
mov dword [esp + 0x18], ecx
jle 0x40e975
cmp dword [esp + 0x10], 0
je 0x40ea4e
cmp dword [esp + 0x1c], 0
jne 0x40ea4e
sub esi, 2
sub dword [esp + 0x10], 2
mov ecx, dword [esp + 0x24]
lea eax, [ebx + ebx*2]
sub ecx, eax
je 0x40eacc
lea ebp, [ecx + 1]
test ebp, ebp
je 0x40eacc
xor eax, eax
test ecx, ecx
jle 0x40ea6a
movzx eax, byte [edi]
inc edi
shl eax, 8
cmp ecx, 1
jle 0x40ea78
movzx edx, byte [edi]
or eax, edx
inc edi
shl eax, 8
cmp ecx, 2
jle 0x40ea85
movzx ecx, byte [edi]
or eax, ecx
shl eax, 8
test ebp, ebp
jle 0x40eaa6
mov ecx, ebp
mov edi, edi
mov edx, eax
shr edx, 0x1a
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Try_to_use_another_path:]
mov byte [esi], dl
inc esi
shl eax, 6
sub ecx, 1
jne 0x40ea90
add dword [esp + 0x10], ebp
test byte [esp + 0x2c], 1
jne 0x40eacc
mov edi, 4
sub edi, ebp
test edi, edi
jle 0x40eac8
push edi
push 0x3d
push esi
call fcn.004f4810
add esp, 0xc
add dword [esp + 0x10], edi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret