Function at 0x451860
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3fa9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x56b114]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
mov eax, 0x55555556
imul ecx
mov dword [ebp - 0x18], 0
mov esi, dword [ebp + 8]
mov eax, edx
shr eax, 0x1f
add eax, edx
add ecx, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
lea eax, [ecx + 3]
add ecx, 7
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
lea eax, [ecx + eax*2]
xor ecx, ecx
mov word [esi], cx
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x18], 1
cmp eax, ecx
ja 0x4518f0
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x4518e8
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x4518fc
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.004336a0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x451906
mov eax, dword [esi]
mov ecx, 0xd
mov word [eax], cx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x451918
mov eax, dword [esi]
mov ecx, 0xa
xor ebx, ebx
mov word [eax + 2], cx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], ebx
lea edi, [ecx - 8]
xor ecx, ecx
test eax, eax
jle 0x451a2b
mov edx, dword [ebp + 0xc]
movzx edx, word [edx + ecx*2]
inc ecx
shl edx, 8
mov dword [ebp - 0x14], ecx
cmp ecx, eax
jge 0x45195a
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + ecx*2]
or edx, eax
mov eax, dword [ebp + 0x10]
inc ecx
mov dword [ebp - 0x14], ecx
jmp 0x45195e
inc ebx
mov dword [ebp - 0x10], ebx
shl edx, 8
cmp ecx, eax
jge 0x451974
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + ecx*2]
or edx, eax
inc ecx
mov dword [ebp - 0x14], ecx
jmp 0x451978
inc ebx
mov dword [ebp - 0x10], ebx
lea eax, [edi + 4]
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x4519cc
dec eax
test ebx, ebx
je 0x4519a7
mov ecx, edi
sub ecx, ebx
add ecx, 4
cmp eax, ecx
jl 0x4519a7
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x45199c
mov ecx, dword [esi]
mov ebx, 0x3d
mov word [ecx + eax*2], bx
jmp 0x4519c2
cmp dword [esi + 0x14], 8
mov ebx, esi
jb 0x4519b1
mov ebx, dword [esi]
mov ecx, edx
and ecx, 0x3f
mov cx, word [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [ebx + eax*2], cx
mov ebx, dword [ebp - 0x10]
shr edx, 6
cmp eax, edi
jne 0x451982
mov edi, dword [ebp - 0x1c]
mov eax, 0x3e0f83e1
imul edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
shl ecx, 5
add ecx, eax
mov eax, edi
add ecx, ecx
sub eax, ecx
je 0x4519f3
test ebx, ebx
je 0x451a1d
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4519fd
mov eax, dword [esi]
mov ecx, 0xd
mov word [eax + edi*2], cx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x451a10
mov eax, dword [esi]
mov ecx, 0xa
mov word [eax + edi*2 + 2], cx
add edi, 2
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
cmp ecx, eax
jl 0x451936
mov eax, dword [esi + 0x10]
cmp edi, eax
ja 0x451a59
mov dword [esi + 0x10], edi
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x451a3f
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + edi*2], cx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
sub edi, eax
mov ecx, esi
push edi
call fcn.004336a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret