Function at 0x51d48c
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x51d7b5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00414d68
mov dword [ebp - 0xc], eax
mov byte [ebp - 0xd], 0x3d
mov dword [ebp - 0x24], 0x3e
lea eax, [ebp - 0x20]
call fcn.00403f10
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x24]
call fcn.004044c4
mov eax, dword [ebp - 0x20]
call fcn.00404354
mov dword [ebp - 0x14], eax
mov cx, 2
xor edx, edx
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0xc]
mov ecx, ebx
mov dl, 1
mov eax, dword [0x51d2f4]
call fcn.0051d350
mov dword [ebp - 0x1c], eax
xor ecx, ecx
push ebp
push 0x51d757
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0x10]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
cmp ebx, dword [ebp - 0x18]
jb 0x51d548
xor ecx, ecx
mov edx, ebx
mov eax, dword [ebp - 0x1c]
call fcn.0051d3e8
test al, al
je 0x51d741
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0x10]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
mov al, byte [ebx]
mov byte [ebp - 0xe], al
inc ebx
xor eax, eax
mov al, byte [ebp - 0xe]
shr eax, 2
mov al, byte [eax + 0x64291c]
mov edx, dword [ebp - 0x14]
mov byte [edx], al
inc dword [ebp - 0x14]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jl 0x51d5ba
mov byte [ebp - 0xf], 0
mov al, byte [ebp - 0xe]
and al, 3
and eax, 0xff
shl eax, 4
mov dl, byte [ebp - 0xf]
and dl, 0xf0
and edx, 0xff
shr edx, 4
or eax, edx
mov al, byte [eax + 0x64291c]
mov edx, dword [ebp - 0x14]
mov byte [edx], al
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov dl, byte [ebp - 0xd]
mov byte [eax], dl
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov dl, byte [ebp - 0xd]
mov byte [eax], dl
inc dword [ebp - 0x14]
jmp 0x51d6c5
cmp ebx, dword [ebp - 0x18]
jb 0x51d5e2
xor ecx, ecx
mov edx, ebx
mov eax, dword [ebp - 0x1c]
call fcn.0051d3e8
test al, al
je 0x51d741
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0x10]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
mov al, byte [ebx]
mov byte [ebp - 0xf], al
inc ebx
mov al, byte [ebp - 0xe]
and al, 3
and eax, 0xff
shl eax, 4
mov dl, byte [ebp - 0xf]
and dl, 0xf0
and edx, 0xff
shr edx, 4
or eax, edx
mov al, byte [eax + 0x64291c]
mov edx, dword [ebp - 0x14]
mov byte [edx], al
inc dword [ebp - 0x14]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jl 0x51d657
xor edx, edx
mov al, byte [ebp - 0xf]
and al, 0xf
and eax, 0xff
shl eax, 2
and dl, 0xc0
and edx, 0xff
shr edx, 6
or eax, edx
mov al, byte [eax + 0x64291c]
mov edx, dword [ebp - 0x14]
mov byte [edx], al
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov dl, byte [ebp - 0xd]
mov byte [eax], dl
inc dword [ebp - 0x14]
jmp 0x51d6c5
cmp ebx, dword [ebp - 0x18]
jb 0x51d67f
xor ecx, ecx
mov edx, ebx
mov eax, dword [ebp - 0x1c]
call fcn.0051d3e8
test al, al
je 0x51d741
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0x10]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
mov dl, byte [ebx]
inc ebx
mov al, byte [ebp - 0xf]
and al, 0xf
and eax, 0xff
shl eax, 2
mov ecx, edx
and cl, 0xc0
and ecx, 0xff
shr ecx, 6
or eax, ecx
mov al, byte [eax + 0x64291c]
mov ecx, dword [ebp - 0x14]
mov byte [ecx], al
inc dword [ebp - 0x14]
inc dword [ebp - 8]
and dl, 0x3f
xor eax, eax
mov al, dl
mov al, byte [eax + 0x64291c]
mov edx, dword [ebp - 0x14]
mov byte [edx], al
inc dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ecx, 0x2d
cdq
idiv ecx
test edx, edx
je 0x51d6e3
mov eax, dword [ebp - 0x14]
dec eax
mov al, byte [eax]
cmp al, byte [ebp - 0xd]
jne 0x51d520
mov eax, dword [ebp - 0x14]
dec eax
mov al, byte [eax]
cmp al, byte [ebp - 0xd]
je 0x51d708
mov eax, dword [ebp - 0x14]
mov byte [eax], 0xd
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov byte [eax], 0xa
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov byte [eax], 0
jmp 0x51d71c
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x24]
call fcn.004044c4
mov eax, dword [ebp - 0x20]
call fcn.00404354
mov edx, eax
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 8]
mov eax, dword [ebp - 0x20]
call fcn.00404354
mov dword [ebp - 0x14], eax
jmp 0x51d520
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51d75e
mov eax, dword [ebp - 0x1c]
call fcn.00403170
ret