Function at 0x41e3b0
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x124
mov eax, dword [0x536400]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
mov ebp, dword [esp + 0x134]
push esi
mov esi, ecx
lea ecx, [ebp + ebp*4 + 0xa]
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [ecx + ecx]
cdq
idiv dword [esi + 4]
mov ebx, dword [esp + 0x134]
push edi
mov edi, dword [esp + 0x140]
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], edi
lea eax, [eax + ecx + 3]
push eax
mov ecx, edi
call fcn.004084f0
xor ecx, ecx
cmp ebp, ecx
je 0x41e5fe
cmp ebx, ecx
je 0x41e5fe
mov eax, 0x55555556
imul ebp
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4ce918]
xor esi, esi
test eax, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], eax
jle 0x41e540
mov dword [esp + 0x18], eax
jmp 0x41e454
mov ebx, dword [esp + 0x14]
movzx eax, byte [ebx + esi]
movzx edi, byte [ebx + esi + 1]
add esi, 1
movzx ebp, byte [ebx + esi + 1]
mov ebx, eax
add esi, 1
sar ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + edx]
mov byte [esp + ecx + 0x28], bl
and eax, 3
shl eax, 4
mov ebx, edi
sar ebx, 4
and ebx, 0xf
or ebx, eax
movzx eax, byte [ebx + edx]
mov byte [esp + ecx + 0x29], al
add ecx, 1
and edi, 0xf
mov eax, ebp
sar eax, 6
and eax, 3
add edi, edi
add edi, edi
or eax, edi
movzx eax, byte [eax + edx]
mov edi, dword [esp + 0x24]
add ecx, 1
mov byte [esp + ecx + 0x28], al
and ebp, 0x3f
movzx eax, byte [edx + ebp]
add ecx, 1
mov byte [esp + ecx + 0x28], al
mov eax, dword [esp + 0x10]
add eax, 4
add esi, 1
add ecx, 1
cmp eax, dword [edi + 4]
mov dword [esp + 0x10], eax
jl 0x41e4ee
mov byte [esp + ecx + 0x28], 0xd
add ecx, 1
mov byte [esp + ecx + 0x28], 0xa
add ecx, 1
mov dword [esp + 0x10], 0
cmp ecx, 0x100
mov edi, dword [esp + 0x20]
jl 0x41e50f
push ecx
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.004087a0
mov edx, dword [0x4ce918]
xor ecx, ecx
sub dword [esp + 0x18], 1
jne 0x41e450
test ecx, ecx
je 0x41e531
push ecx
lea edx, [esp + 0x2c]
push edx
mov ecx, edi
call fcn.004087a0
mov edx, dword [0x4ce918]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x13c]
lea eax, [eax + eax*2]
sub ebp, eax
sub ebp, 0
je 0x41e5ec
sub ebp, 1
je 0x41e5aa
sub ebp, 1
jne 0x41e5fe
movzx ebp, byte [ebx + esi]
movzx esi, byte [ebx + esi + 1]
mov ecx, ebp
sar ecx, 2
and ecx, 0x3f
movzx edx, byte [ecx + edx]
push edx
mov ecx, edi
call fcn.00408240
mov ecx, dword [0x4ce918]
mov eax, esi
sar eax, 4
and ebp, 3
and eax, 0xf
shl ebp, 4
or eax, ebp
movzx edx, byte [eax + ecx]
push edx
mov ecx, edi
call fcn.00408240
mov eax, dword [0x4ce918]
and esi, 0xf
movzx ecx, byte [eax + esi*4]
push ecx
jmp 0x41e5dc
movzx esi, byte [ebx + esi]
mov eax, esi
sar eax, 2
and eax, 0x3f
movzx ecx, byte [eax + edx]
push ecx
mov ecx, edi
call fcn.00408240
mov edx, dword [0x4ce918]
and esi, 3
shl esi, 4
movzx eax, byte [esi + edx]
push eax
mov ecx, edi
call fcn.00408240
push 0x3d
mov ecx, edi
call fcn.00408240
push 0x3d
mov ecx, edi
call fcn.00408240
push 0xd
mov ecx, edi
call fcn.00408240
push 0xa
mov ecx, edi
call fcn.00408240
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046255c
add esp, 0x124
ret 0xc