Function at 0x4dc590
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x44
mov eax, dword [0x56a8e0]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
mov dword [esp + 0x28], esi
mov byte [esp + 0x10], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x12], 0
test eax, eax
je 0x4dc5c6
push eax
call fcn.004934fd
add esp, 4
mov eax, dword [esp + 0x58]
mov dword [esi], 0
xor edi, edi
cmp byte [eax], 0
mov ebx, eax
je 0x4dc641
lea esi, [esp + 0x58]
lea ecx, [ecx]
movsx eax, byte [ebx]
sub eax, 0x23
je 0x4dc60e
sub eax, 2
je 0x4dc5fc
sub eax, 5
je 0x4dc5f5
inc edi
jmp 0x4dc63b
add esi, 8
add edi, dword [esi]
jmp 0x4dc63b
mov eax, dword [esi + 4]
add esi, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4dc605
jmp 0x4dc637
mov eax, dword [esi + 4]
add esi, 4
push eax
lea ecx, [esp + 0x30]
push 0x56de84
push ecx
call fcn.00496d63
lea eax, [esp + 0x38]
add esp, 0xc
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4dc630
sub eax, edx
add edi, eax
inc ebx
cmp byte [ebx], 0
jne 0x4dc5e0
lea ecx, [edi*4]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 0xe]
push ecx
call fcn.00494940
mov ebp, eax
add esp, 4
mov dword [esp + 0x24], ebp
test ebp, ebp
je 0x4dc81c
mov edx, dword [esp + 0x58]
xor esi, esi
lea ebx, [esp + 0x5c]
mov dword [esp + 0x1c], edx
xor edi, edi
nop
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0
jne 0x4dc699
test esi, esi
je 0x4dc80e
test edi, edi
je 0x4dc80e
xor edx, edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edx
test esi, esi
je 0x4dc6ba
test edi, edi
je 0x4dc6ba
mov cl, byte [esi]
mov byte [esp + edx + 0x10], cl
jmp 0x4dc761
mov eax, dword [esp + 0x1c]
mov cl, byte [eax]
test cl, cl
jne 0x4dc6cd
mov byte [esp + edx + 0x10], cl
jmp 0x4dc767
test esi, esi
je 0x4dc6d9
test edi, edi
jg 0x4dc753
movsx eax, cl
sub eax, 0x23
je 0x4dc719
sub eax, 2
je 0x4dc701
sub eax, 5
je 0x4dc6f5
inc dword [esp + 0x18]
mov byte [esp + edx + 0x10], cl
jmp 0x4dc74f
mov esi, dword [ebx]
add ebx, 4
mov edi, dword [ebx]
add ebx, 4
jmp 0x4dc74f
mov esi, dword [ebx]
add ebx, 4
mov eax, esi
lea edx, [eax + 1]
jmp 0x4dc710
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4dc710
jmp 0x4dc747
mov ecx, dword [ebx]
add ebx, 4
push ecx
lea edx, [esp + 0x30]
push 0x56de88
push edx
call fcn.00496d63
lea esi, [esp + 0x38]
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4dc740
sub eax, edx
mov edx, dword [esp + 0x14]
mov edi, eax
inc dword [esp + 0x1c]
test esi, esi
je 0x4dc767
test edi, edi
je 0x4dc767
mov al, byte [esi]
mov byte [esp + edx + 0x10], al
inc dword [esp + 0x18]
inc esi
dec edi
inc edx
cmp edx, 3
mov dword [esp + 0x14], edx
jl 0x4dc6a7
mov al, byte [esp + 0x10]
mov cl, byte [esp + 0x11]
mov dl, al
and al, 3
mov dword [esp + 0x14], ebx
shl al, 4
mov bl, cl
shr bl, 4
or al, bl
mov bl, byte [esp + 0x12]
mov byte [esp + 0x21], al
and cl, 0xf
shr dl, 2
add cl, cl
mov al, bl
shr al, 6
movzx edx, dl
add cl, cl
or cl, al
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edx, byte [esp + 0x21]
mov byte [ebp], al
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ebp
mov byte [ebp], al
mov eax, dword [esp + 0x18]
and bl, 0x3f
inc ebp
cmp eax, 1
jle 0x4dc7e0
movzx ecx, cl
mov dl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp], dl
jmp 0x4dc7e4
mov byte [ebp], 0x3d
inc ebp
cmp eax, 2
jle 0x4dc800
movzx eax, bl
mov cl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ebx, dword [esp + 0x14]
mov byte [ebp], cl
inc ebp
jmp 0x4dc680
mov ebx, dword [esp + 0x14]
mov byte [ebp], 0x3d
inc ebp
jmp 0x4dc680
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov byte [ebp], 0
mov dword [edx], eax
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00493d56
add esp, 0x44
ret