Function at 0x45dda0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5394d9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x58ab78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
mov edi, dword [ebp + 8]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
test eax, eax
je 0x45e0af
mov ecx, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [ecx]
inc ecx
mov byte [ebp + ebx - 0x14], al
inc ebx
mov ah, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x10], ah
mov byte [ebp - 0xe], dl
mov byte [ebp - 0xf], dh
cmp ebx, 3
jne 0x45df07
mov al, dh
mov cl, dh
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ah
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
xor ebx, ebx
cmp dword [0x58a5f4], 0x10
mov ecx, dword [0x58a5e0]
jae 0x45de74
mov ecx, 0x58a5e0
movzx eax, byte [ebp + ebx - 0x18]
mov dl, byte [eax + ecx]
or eax, 0xffffffff
mov ecx, dword [edi + 0x10]
sub eax, ecx
mov byte [ebp - 0xd], dl
cmp eax, 1
jbe 0x45df3c
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x45df3c
mov eax, dword [edi + 0x14]
cmp eax, esi
jae 0x45dec0
push ecx
push esi
mov ecx, edi
call fcn.004303f0
mov dl, byte [ebp - 0xd]
test esi, esi
je 0x45def2
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x45deda
mov eax, dword [edi]
jmp 0x45dedc
test esi, esi
jne 0x45deb3
mov dword [edi + 0x10], esi
cmp eax, 0x10
jb 0x45ded3
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x45def2
mov eax, edi
mov byte [eax], 0
jmp 0x45def2
mov eax, edi
mov byte [eax + ecx], dl
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x45deec
mov eax, dword [edi]
jmp 0x45deee
mov eax, edi
mov byte [eax + esi], 0
inc ebx
cmp ebx, 4
jl 0x45de60
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov dl, byte [ebp - 0xe]
mov dh, byte [ebp - 0xf]
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x45de01
test ebx, ebx
je 0x45e0af
mov eax, ebx
cmp ebx, 3
jge 0x45df4b
cmp eax, 3
jae 0x45df46
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x45df24
mov cl, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
jmp 0x45df4e
push str.string_too_long
call fcn.004c3890
call fcn.004a3a6d
mov cl, byte [ebp - 0x10]
mov al, dh
and dh, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl dh, 4
add dh, al
shl dl, 2
mov al, cl
mov byte [ebp - 0x17], dh
shr al, 6
and cl, 0x3f
add dl, al
mov byte [ebp - 0x15], cl
mov byte [ebp - 0x16], dl
lea eax, [ebx + 1]
xor edx, edx
mov dword [ebp - 0x14], edx
test eax, eax
jle 0x45e033
lea esp, [esp]
cmp dword [0x58a5f4], 0x10
mov ecx, dword [0x58a5e0]
jae 0x45dfa4
mov ecx, 0x58a5e0
movzx eax, byte [ebp + edx - 0x18]
mov al, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov byte [ebp + 0x13], al
or eax, 0xffffffff
sub eax, ecx
cmp eax, 1
jbe 0x45df3c
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x45df3c
mov eax, dword [edi + 0x14]
cmp eax, esi
jae 0x45dfec
push ecx
push esi
mov ecx, edi
call fcn.004303f0
mov edx, dword [ebp - 0x14]
test esi, esi
je 0x45e024
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x45e006
mov eax, dword [edi]
jmp 0x45e008
test esi, esi
jne 0x45dfdf
mov dword [edi + 0x10], esi
cmp eax, 0x10
jb 0x45dfff
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x45e024
mov eax, edi
mov byte [eax], 0
jmp 0x45e024
mov eax, edi
mov dl, byte [ebp + 0x13]
mov byte [eax + ecx], dl
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x45e01b
mov eax, dword [edi]
jmp 0x45e01d
mov eax, edi
mov edx, dword [ebp - 0x14]
mov byte [eax + esi], 0
inc edx
lea eax, [ebx + 1]
mov dword [ebp - 0x14], edx
cmp edx, eax
jl 0x45df90
cmp ebx, 3
jge 0x45e0af
mov ecx, dword [edi + 0x10]
or eax, 0xffffffff
sub eax, ecx
inc ebx
cmp eax, 1
jbe 0x45df3c
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x45df3c
mov eax, dword [edi + 0x14]
cmp eax, esi
jae 0x45e077
push ecx
push esi
mov ecx, edi
call fcn.004303f0
test esi, esi
je 0x45e0aa
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x45e091
mov eax, dword [edi]
jmp 0x45e093
test esi, esi
jne 0x45e06a
mov dword [edi + 0x10], esi
cmp eax, 0x10
jb 0x45e08a
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x45e0aa
mov eax, edi
mov byte [eax], 0
jmp 0x45e0aa
mov eax, edi
mov byte [ecx + eax], 0x3d
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x45e0a4
mov eax, dword [edi]
jmp 0x45e0a6
mov eax, edi
mov byte [esi + eax], 0
cmp ebx, 3
jl 0x45e038
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret