Function at 0x413190
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push edi
mov byte [esi], 0
test ebp, ebp
je 0x413463
mov ecx, dword [esp + 0x24]
mov edi, edi
mov al, byte [ecx]
mov byte [esp + ebx + 0x14], al
mov ah, byte [esp + 0x16]
mov dl, byte [esp + 0x15]
mov dh, byte [esp + 0x14]
inc ebx
inc ecx
dec ebp
mov dword [esp + 0x24], ecx
mov byte [esp + 0x13], ah
mov byte [esp + 0x28], dl
mov byte [esp + 0x12], dh
cmp ebx, 3
jne 0x4132db
mov al, dh
shr al, 2
mov byte [esp + 0x18], al
mov cl, dh
and cl, 3
shl cl, 4
mov al, dl
shr al, 4
add cl, al
mov byte [esp + 0x19], cl
mov cl, dl
and cl, 0xf
mov al, ah
shr al, 6
shl cl, 2
add cl, al
mov al, ah
and al, 0x3f
mov byte [esp + 0x1a], cl
mov byte [esp + 0x1b], al
xor ebx, ebx
jmp 0x413230
cmp dword [0x5c222c], 0x10
movzx eax, byte [esp + ebx + 0x18]
mov ecx, 0x5c2218
cmovae ecx, dword [0x5c2218]
mov dl, byte [eax + ecx]
mov ecx, dword [esi + 0x10]
or eax, 0xffffffff
sub eax, ecx
mov byte [esp + 0x20], dl
cmp eax, 1
jbe 0x41346d
lea edi, [ecx + 1]
cmp edi, 0xfffffffe
ja 0x41346d
mov eax, dword [esi + 0x14]
cmp eax, edi
jae 0x413291
push ecx
push edi
mov ecx, esi
call fcn.00406b20
mov dl, byte [esp + 0x20]
test edi, edi
je 0x4132c3
cmp dword [esi + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x4132ab
mov eax, dword [esi]
jmp 0x4132ad
test edi, edi
jne 0x413284
mov dword [esi + 0x10], edi
cmp eax, 0x10
jb 0x4132a4
mov eax, dword [esi]
mov byte [eax], 0
jmp 0x4132c3
mov eax, esi
mov byte [eax], 0
jmp 0x4132c3
mov eax, esi
mov byte [eax + ecx], dl
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], edi
jb 0x4132bd
mov eax, dword [esi]
jmp 0x4132bf
mov eax, esi
mov byte [eax + edi], 0
inc ebx
cmp ebx, 4
jl 0x413230
mov ecx, dword [esp + 0x24]
mov dl, byte [esp + 0x28]
mov dh, byte [esp + 0x12]
xor ebx, ebx
test ebp, ebp
jne 0x4131c0
test ebx, ebx
je 0x413463
mov eax, ebx
cmp ebx, 3
jge 0x413314
cmp eax, 3
jae 0x413477
mov byte [esp + eax + 0x14], 0
inc eax
cmp eax, 3
jl 0x4132f5
mov cl, byte [esp + 0x16]
mov dl, byte [esp + 0x15]
mov dh, byte [esp + 0x14]
jmp 0x413318
mov cl, byte [esp + 0x13]
mov al, dh
shr al, 2
mov byte [esp + 0x18], al
mov al, dl
and dh, 3
shr al, 4
and dl, 0xf
shl dh, 4
add dh, al
shl dl, 2
shr cl, 6
add dl, cl
lea eax, [ebx + 1]
xor ebp, ebp
mov byte [esp + 0x19], dh
mov byte [esp + 0x1a], dl
test eax, eax
jle 0x4133ef
mov edi, edi
cmp dword [0x5c222c], 0x10
movzx eax, byte [esp + ebp + 0x18]
mov ecx, 0x5c2218
cmovae ecx, dword [0x5c2218]
mov dl, byte [eax + ecx]
mov ecx, dword [esi + 0x10]
or eax, 0xffffffff
sub eax, ecx
mov byte [esp + 0x20], dl
cmp eax, 1
jbe 0x41346d
lea edi, [ecx + 1]
cmp edi, 0xfffffffe
ja 0x41346d
mov eax, dword [esi + 0x14]
cmp eax, edi
jae 0x4133b1
push ecx
push edi
mov ecx, esi
call fcn.00406b20
mov dl, byte [esp + 0x20]
test edi, edi
je 0x4133e3
cmp dword [esi + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x4133cb
mov eax, dword [esi]
jmp 0x4133cd
test edi, edi
jne 0x4133a4
mov dword [esi + 0x10], edi
cmp eax, 0x10
jb 0x4133c4
mov eax, dword [esi]
mov byte [eax], 0
jmp 0x4133e3
mov eax, esi
mov byte [eax], 0
jmp 0x4133e3
mov eax, esi
mov byte [eax + ecx], dl
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], edi
jb 0x4133dd
mov eax, dword [esi]
jmp 0x4133df
mov eax, esi
mov byte [eax + edi], 0
inc ebp
lea eax, [ebx + 1]
cmp ebp, eax
jl 0x413350
cmp ebx, 3
jge 0x413463
mov ecx, dword [esi + 0x10]
or eax, 0xffffffff
sub eax, ecx
inc ebx
cmp eax, 1
jbe 0x41346d
lea edi, [ecx + 1]
cmp edi, 0xfffffffe
ja 0x41346d
mov eax, dword [esi + 0x14]
cmp eax, edi
jae 0x41342b
push ecx
push edi
mov ecx, esi
call fcn.00406b20
test edi, edi
je 0x41345e
cmp dword [esi + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x413445
mov eax, dword [esi]
jmp 0x413447
test edi, edi
jne 0x41341e
mov dword [esi + 0x10], edi
cmp eax, 0x10
jb 0x41343e
mov eax, dword [esi]
mov byte [eax], 0
jmp 0x41345e
mov eax, esi
mov byte [eax], 0
jmp 0x41345e
mov eax, esi
mov byte [ecx + eax], 0x3d
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], edi
jb 0x413458
mov eax, dword [esi]
jmp 0x41345a
mov eax, esi
mov byte [edi + eax], 0
cmp ebx, 3
jl 0x4133f4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push str.string_too_long
call fcn.00552e60
call fcn.005544d6
int3