Function at 0x46a030
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov esi, edx
lea edi, [ebp - 0x34]
push ecx
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop ecx
mov byte [ebp - 1], cl
mov ebx, eax
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
xor eax, eax
push ebp
push 0x46a4b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.004039d0
cmp byte [ebp + 0xc], 0
je 0x46a086
cmp edi, 0x19
jge 0x46a086
mov edi, 0x19
mov eax, esi
call fcn.00403c4c
cmp eax, 4
jge 0x46a0bb
push 0x46a4cc
push esi
push 0
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.00403d0c
mov ecx, dword [ebp - 0x38]
mov dl, 1
mov eax, dword [0x406ff4]
call fcn.0040ae3c
call fcn.004034c8
mov al, byte [ebp - 1]
sub al, 0x42
je 0x46a0fc
sub al, 0xf
je 0x46a0fc
push 0x46a504
lea eax, [ebp - 0x3c]
mov dl, byte [ebp - 1]
call fcn.00403b74
push dword [ebp - 0x3c]
push 0
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.00403d0c
mov ecx, dword [ebp - 0x38]
mov dl, 1
mov eax, dword [0x406ff4]
call fcn.0040ae3c
call fcn.004034c8
lea eax, [ebp - 0x14]
call fcn.004039d0
push 0x46a53c
lea edx, [ebp - 0x38]
mov eax, esi
call fcn.00407bac
push dword [ebp - 0x38]
push 0x46a548
lea eax, [ebp - 0x3c]
mov dl, byte [ebp - 1]
call fcn.00403b74
push dword [ebp - 0x3c]
push 0x46a548
lea eax, [ebp - 0x10]
mov edx, 5
call fcn.00403d0c
mov eax, ebx
call fcn.00403c4c
mov esi, eax
mov dword [ebp - 8], 1
cmp byte [ebp - 1], 0x51
jne 0x46a2a6
cmp esi, dword [ebp - 8]
jl 0x46a291
push 1
lea eax, [ebp - 8]
push eax
mov al, byte [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00403c4c
mov edx, edi
sub edx, eax
sub edx, 2
push edx
push edi
lea esi, [ebp - 0x34]
lea edi, [ebp - 0x5c]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop edi
lea eax, [ebp - 0x5c]
mov edx, 0x46a54c
mov cl, 0x20
call fcn.00402c6c
lea ecx, [ebp - 0x5c]
mov eax, ebx
pop edx
call fcn.0046a59c
mov eax, dword [ebp - 0x14]
call fcn.00403c4c
test eax, eax
je 0x46a489
mov eax, dword [ebp - 0x14]
call fcn.00403c4c
mov edx, dword [ebp - 0x14]
cmp byte [edx + eax - 1], 0x3d
jne 0x46a1da
mov eax, dword [ebp - 0x14]
call fcn.00403c4c
mov edx, eax
dec edx
lea eax, [ebp - 0x14]
call fcn.00403f20
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x46a574
mov eax, dword [ebp + 8]
mov edx, 3
call fcn.00403d0c
jmp 0x46a291
push 1
lea eax, [ebp - 8]
push eax
mov al, byte [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00403c4c
mov edx, edi
sub edx, eax
sub edx, 2
push edx
push edi
lea esi, [ebp - 0x34]
lea edi, [ebp - 0x5c]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop edi
lea eax, [ebp - 0x5c]
mov edx, 0x46a54c
mov cl, 0x20
call fcn.00402c6c
lea ecx, [ebp - 0x5c]
mov eax, ebx
pop edx
call fcn.0046a59c
mov eax, dword [ebp - 0x14]
call fcn.00403c4c
test eax, eax
jle 0x46a291
mov eax, dword [ebp - 0x14]
call fcn.00403c4c
mov edx, dword [ebp - 0x14]
cmp byte [edx + eax - 1], 0x3d
jne 0x46a26f
mov eax, dword [ebp - 0x14]
call fcn.00403c4c
mov edx, eax
dec edx
lea eax, [ebp - 0x14]
call fcn.00403f20
mov eax, dword [ebp + 8]
push dword [eax]
push 0x46a580
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x46a574
mov eax, dword [ebp + 8]
mov edx, 5
call fcn.00403d0c
mov eax, ebx
call fcn.00403c4c
cmp eax, dword [ebp - 8]
jge 0x46a1f7
jmp 0x46a489
cmp byte [ebp + 0xc], 0
jne 0x46a2b1
mov edi, 0x7fffffff
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.00403c54
mov eax, dword [ebp - 0x10]
call fcn.00403c4c
add eax, 2
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jl 0x46a479
mov eax, dword [ebp - 0xc]
add eax, 4
cmp edi, eax
jge 0x46a308
push dword [ebp - 0x14]
push 0x46a574
push 0x46a580
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00403d0c
mov eax, dword [ebp - 0x10]
call fcn.00403c4c
add eax, 2
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 8]
mov dl, byte [ebx + edx - 1]
and dl, 0xfc
and edx, 0xff
shr edx, 2
mov dl, byte [edx + 0x4850d4]
call fcn.00403b74
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x14]
call fcn.00403c54
mov eax, dword [ebp - 8]
inc eax
cmp esi, eax
jl 0x46a42f
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 8]
mov dl, byte [ebx + edx - 1]
and dl, 3
and edx, 0xff
shl edx, 4
mov ecx, dword [ebp - 8]
mov cl, byte [ebx + ecx]
and cl, 0xf0
and ecx, 0xff
shr ecx, 4
add edx, ecx
mov dl, byte [edx + 0x4850d4]
call fcn.00403b74
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x14]
call fcn.00403c54
mov eax, dword [ebp - 8]
add eax, 2
cmp esi, eax
jl 0x46a3f5
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 8]
mov dl, byte [ebx + edx]
and dl, 0xf
and edx, 0xff
shl edx, 2
mov ecx, dword [ebp - 8]
mov cl, byte [ebx + ecx + 1]
and cl, 0xc0
and ecx, 0xff
shr ecx, 6
add edx, ecx
mov dl, byte [edx + 0x4850d4]
call fcn.00403b74
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x14]
call fcn.00403c54
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 8]
mov dl, byte [ebx + edx + 1]
and dl, 0x3f
and edx, 0xff
mov dl, byte [edx + 0x4850d4]
call fcn.00403b74
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x14]
call fcn.00403c54
jmp 0x46a468
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 8]
mov dl, byte [ebx + edx]
and dl, 0xf
and edx, 0xff
shl edx, 2
mov dl, byte [edx + 0x4850d4]
call fcn.00403b74
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x14]
call fcn.00403c54
lea eax, [ebp - 0x14]
mov edx, 0x46a58c
call fcn.00403c54
jmp 0x46a468
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 8]
mov dl, byte [ebx + edx - 1]
and dl, 3
and edx, 0xff
shl edx, 4
mov dl, byte [edx + 0x4850d4]
call fcn.00403b74
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x14]
call fcn.00403c54
lea eax, [ebp - 0x14]
mov edx, 0x46a598
call fcn.00403c54
add dword [ebp - 0xc], 4
add dword [ebp - 8], 3
cmp esi, dword [ebp - 8]
jge 0x46a2d3
mov ecx, 0x46a574
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
call fcn.00403c98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a4b8
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.004039f4
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004039f4
ret