Function at 0x401290
Capabilities:
Encode data using base64

Disassembly:
push 0xffffffffffffffff
push 0x437a79
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x449af0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov dword [esp + 0x20], esi
mov byte [esi + 4], bl
xor edi, edi
cmp dword [esp + 0x38], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], 1
je 0x4014cf
mov al, byte [ebp]
sub dword [esp + 0x38], 1
mov byte [esp + edi + 0x18], al
add edi, 1
add ebp, 1
cmp edi, 3
jne 0x401389
mov al, byte [esp + 0x18]
mov cl, al
shr cl, 2
mov dl, al
mov al, byte [esp + 0x19]
and dl, 3
mov byte [esp + 0x14], cl
shl dl, 4
mov cl, al
shr cl, 4
add dl, cl
mov byte [esp + 0x15], dl
mov dl, al
mov al, byte [esp + 0x1a]
and dl, 0xf
add dl, dl
mov cl, al
add dl, dl
shr cl, 6
add dl, cl
and al, 0x3f
mov byte [esp + 0x16], dl
mov byte [esp + 0x17], al
xor edi, edi
jmp 0x401350
movzx ebx, byte [esp + edi + 0x14]
cmp ebx, dword [0x44b860]
jbe 0x401362
call fcn.004224f7
cmp dword [0x44b864], 0x10
mov eax, dword [0x44b850]
jae 0x401375
mov eax, 0x44b850
mov bl, byte [eax + ebx]
call fcn.00401590
add edi, 1
cmp edi, 4
jl 0x401350
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x38], ebx
jne 0x4012ec
cmp edi, ebx
je 0x4014cf
cmp edi, 3
jge 0x4013b6
mov edx, 3
sub edx, edi
push edx
lea eax, [esp + edi + 0x1c]
push ebx
push eax
call fcn.00424840
add esp, 0xc
mov cl, byte [esp + 0x18]
mov al, cl
shr al, 2
mov byte [esp + 0x14], al
mov al, byte [esp + 0x19]
mov dl, al
and cl, 3
shl cl, 4
shr dl, 4
add cl, dl
and al, 0xf
mov byte [esp + 0x15], cl
mov cl, byte [esp + 0x1a]
add al, al
mov dl, cl
add al, al
shr dl, 6
add al, dl
mov byte [esp + 0x16], al
and cl, 0x3f
lea eax, [edi + 1]
xor ebp, ebp
cmp eax, ebx
mov byte [esp + 0x17], cl
jle 0x401439
lea ecx, [ecx]
movzx ebx, byte [esp + ebp + 0x14]
cmp ebx, dword [0x44b860]
jbe 0x401412
call fcn.004224f7
cmp dword [0x44b864], 0x10
mov eax, dword [0x44b850]
jae 0x401425
mov eax, 0x44b850
mov bl, byte [eax + ebx]
call fcn.00401590
add ebp, 1
lea eax, [edi + 1]
cmp ebp, eax
jl 0x401400
xor ebx, ebx
cmp edi, 3
jge 0x4014cf
mov eax, 3
sub eax, edi
mov dword [esp + 0x14], eax
lea ecx, [ecx]
or eax, 0xffffffff
sub eax, dword [esi + 0x14]
cmp eax, 1
ja 0x401460
call fcn.00436238
mov edi, dword [esi + 0x14]
add edi, 1
cmp edi, 0xfffffffe
jbe 0x401470
call fcn.00436238
mov eax, dword [esi + 0x18]
cmp eax, edi
jae 0x40149b
mov ecx, dword [esi + 0x14]
push ecx
push edi
mov ecx, esi
call fcn.00401940
cmp edi, ebx
jbe 0x4014c8
mov edx, dword [esi + 0x14]
mov ebp, 0x10
cmp dword [esi + 0x18], ebp
lea eax, [esi + 4]
jb 0x4014b5
mov ecx, dword [eax]
jmp 0x4014b7
cmp edi, ebx
jne 0x401485
cmp eax, 0x10
mov dword [esi + 0x14], ebx
jb 0x4014ae
mov eax, dword [esi + 4]
mov byte [eax], bl
jmp 0x4014c8
lea eax, [esi + 4]
mov byte [eax], bl
jmp 0x4014c8
mov ecx, eax
mov byte [ecx + edx], 0x3d
cmp dword [esi + 0x18], ebp
mov dword [esi + 0x14], edi
jb 0x4014c5
mov eax, dword [eax]
mov byte [eax + edi], bl
sub dword [esp + 0x14], 1
jne 0x401450
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret