Function at 0x405ce0
Capabilities:
Encode data using base64

Disassembly:
push 0xffffffffffffffff
push 0x4734d9
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
mov eax, dword [0x48c0d0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], esi
mov dword [esp + 0x20], edi
mov byte [edi + 4], 0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], 1
cmp dword [esp + 0x38], esi
je 0x405f1e
mov eax, dword [esp + 0x34]
mov cl, byte [eax]
dec dword [esp + 0x38]
mov byte [esp + esi + 0x14], cl
mov bl, byte [esp + 0x15]
inc esi
inc eax
mov dword [esp + 0x34], eax
cmp esi, 3
jne 0x405dd0
mov al, byte [esp + 0x14]
mov dl, al
shr dl, 2
and al, 3
shl al, 4
mov byte [esp + 0x10], dl
mov cl, bl
shr cl, 4
add al, cl
mov byte [esp + 0x11], al
mov al, byte [esp + 0x16]
mov dl, bl
and dl, 0xf
add dl, dl
mov cl, al
add dl, dl
shr cl, 6
add dl, cl
and al, 0x3f
mov byte [esp + 0x12], dl
mov byte [esp + 0x13], al
xor esi, esi
movzx ebp, byte [esp + esi + 0x10]
cmp ebp, dword [0x48d17c]
jbe 0x405da0
call fcn.0045808d
cmp dword [0x48d180], 0x10
mov eax, dword [0x48d16c]
jae 0x405db3
mov eax, 0x48d16c
mov dl, byte [eax + ebp]
mov byte [esp + 0x18], dl
mov eax, dword [esp + 0x18]
push eax
push 1
mov ecx, edi
call fcn.00402690
inc esi
cmp esi, 4
jl 0x405d8e
xor esi, esi
cmp dword [esp + 0x38], 0
jne 0x405d34
test esi, esi
je 0x405f1e
cmp esi, 3
jge 0x405e03
mov ecx, 3
sub ecx, esi
push ecx
lea eax, [esp + esi + 0x18]
push 0
push eax
call fcn.00459f00
mov bl, byte [esp + 0x21]
add esp, 0xc
mov al, byte [esp + 0x14]
mov dl, al
mov cl, bl
and al, 3
shl al, 4
shr cl, 4
add al, cl
shr dl, 2
and bl, 0xf
mov byte [esp + 0x11], al
mov al, byte [esp + 0x16]
add bl, bl
mov byte [esp + 0x10], dl
mov dl, al
add bl, bl
shr dl, 6
add bl, dl
mov byte [esp + 0x12], bl
and al, 0x3f
lea ebp, [esi + 1]
xor ebx, ebx
mov byte [esp + 0x13], al
test ebp, ebp
jle 0x405e8a
movzx eax, byte [esp + ebx + 0x10]
cmp eax, dword [0x48d17c]
jbe 0x405e57
call fcn.0045808d
cmp dword [0x48d180], 0x10
mov ecx, dword [0x48d16c]
jae 0x405e6b
mov ecx, 0x48d16c
movzx eax, byte [esp + ebx + 0x10]
mov al, byte [ecx + eax]
mov byte [esp + 0x18], al
mov ecx, dword [esp + 0x18]
push ecx
push 1
mov ecx, edi
call fcn.00402690
inc ebx
cmp ebx, ebp
jl 0x405e45
cmp esi, 3
jge 0x405f1e
mov ebp, 3
sub ebp, esi
lea ebx, [ebx]
or edx, 0xffffffff
sub edx, dword [edi + 0x14]
cmp edx, 1
ja 0x405eb0
call fcn.0042c943
mov esi, dword [edi + 0x14]
inc esi
cmp esi, 0xfffffffe
jbe 0x405ebe
call fcn.0042c943
mov eax, dword [edi + 0x18]
cmp eax, esi
jae 0x405ee9
mov eax, dword [edi + 0x14]
push eax
push esi
mov ecx, edi
call fcn.00403c10
test esi, esi
jbe 0x405f19
mov edx, dword [edi + 0x14]
mov ebx, 0x10
lea eax, [edi + 4]
cmp dword [edi + 0x18], ebx
jb 0x405f05
mov ecx, dword [eax]
jmp 0x405f07
test esi, esi
jne 0x405ed3
mov dword [edi + 0x14], esi
cmp eax, 0x10
jb 0x405efd
mov eax, dword [edi + 4]
mov byte [eax], 0
jmp 0x405f19
lea eax, [edi + 4]
mov byte [eax], 0
jmp 0x405f19
mov ecx, eax
mov byte [ecx + edx], 0x3d
mov dword [edi + 0x14], esi
cmp dword [edi + 0x18], ebx
jb 0x405f15
mov eax, dword [eax]
mov byte [eax + esi], 0
sub ebp, 1
jne 0x405ea0
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x20
ret