Function at 0x4226e4
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe80
push ebx
push esi
push edi
lea ebx, [ebp - 0x28]
mov eax, 0x589ce4
call fcn.0057b678
mov word [ebp - 0x3c], 0xc
lea edx, [ebp - 0x54]
push edx
call fcn.00423158
pop ecx
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebx + 8]
push ecx
call fcn.00423180
add esp, 8
mov eax, 0xf
mov dword [ebx + 0x24], eax
mov byte [ebp - 0x55], 0
cmp dword [ebx + 0x24], 0x10
jb 0x422734
mov edx, dword [ebx + 0x10]
jmp 0x422737
lea edx, [ebx + 0x10]
xor eax, eax
mov dword [ebx + 0x20], eax
add edx, eax
mov dword [ebp - 0x5c], edx
mov edx, dword [ebp - 0x5c]
mov cl, byte [ebp - 0x55]
mov byte [edx], cl
inc dword [ebp - 0x30]
mov word [ebp - 0x3c], 0x18
xor ecx, ecx
mov dword [ebp - 0x60], ecx
mov word [ebp - 0x3c], 0x18
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp + 0x10]
jae 0x422b68
xor edx, edx
mov dword [ebp - 0x64], edx
mov word [ebp - 0x3c], 0x18
mov word [ebp - 0x3c], 0x18
xor eax, eax
mov edx, dword [ebp - 0x60]
add edx, eax
cmp edx, dword [ebp + 0x10]
jae 0x4227a1
mov edx, dword [ebp - 0x60]
mov esi, dword [ebp + 0xc]
add edx, eax
mov ecx, 2
sub ecx, eax
movsx edx, byte [esi + edx]
shl ecx, 3
shl edx, cl
or dword [ebp - 0x64], edx
inc eax
cmp eax, 3
jb 0x42277c
xor eax, eax
mov dword [ebp - 0x68], eax
mov word [ebp - 0x3c], 0x18
cmp dword [ebp - 0x68], 4
jae 0x422b58
mov eax, dword [ebp - 0x60]
xor edx, edx
mov ecx, 3
mov esi, 3
div ecx
mov ecx, eax
mov eax, dword [ebp + 0x10]
add eax, 2
xor edx, edx
div esi
shl ecx, 2
add ecx, dword [ebp - 0x68]
shl eax, 2
cmp ecx, eax
jae 0x4229a6
mov eax, 3
sub eax, dword [ebp - 0x68]
mov ecx, eax
add ecx, ecx
lea ecx, [ecx + ecx*2]
mov edx, dword [ebp - 0x64]
shr edx, cl
and edx, 0x3f
mov eax, dword [0x589a94]
mov dl, byte [eax + edx]
mov byte [ebp - 0x69], dl
or ecx, 0xffffffff
sub ecx, dword [ebx + 0x20]
cmp ecx, 1
ja 0x42281e
push ebx
call fcn.005721a0
pop ecx
mov ecx, dword [ebx + 0x20]
lea eax, [ebx + 8]
inc ecx
mov dword [ebp - 0x70], ecx
push eax
mov esi, ecx
call fcn.004233a8
pop ecx
mov dword [ebp - 0x74], eax
mov word [ebp - 0x3c], 0x18
cmp dword [ebp - 0x74], 1
ja 0x422847
mov edx, 1
jmp 0x42284b
mov edx, dword [ebp - 0x74]
dec edx
cmp esi, edx
jbe 0x422856
push ebx
call fcn.005721a0
pop ecx
cmp esi, dword [ebx + 0x24]
jbe 0x4228f2
mov eax, dword [ebx + 0x20]
push eax
push esi
push ebx
call fcn.004231a8
add esp, 0xc
jmp 0x422926
test esi, esi
jne 0x422926
mov byte [ebp - 0x89], 0
cmp dword [ebx + 0x24], 0x10
jb 0x422908
mov ecx, dword [ebx + 0x10]
jmp 0x42290b
lea ecx, [ebx + 0x10]
xor eax, eax
mov dword [ebx + 0x20], eax
add ecx, eax
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x90]
mov cl, byte [ebp - 0x89]
mov byte [edx], cl
test esi, esi
seta cl
and ecx, 1
test cl, cl
je 0x422b4b
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x94], eax
cmp dword [ebx + 0x24], 0x10
jb 0x42294a
mov edx, dword [ebx + 0x10]
jmp 0x42294d
lea edx, [ebx + 0x10]
add edx, dword [ebp - 0x94]
mov dword [ebp - 0x98], edx
mov eax, dword [ebp - 0x98]
mov cl, byte [ebp - 0x69]
mov byte [eax], cl
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x9c], ecx
mov byte [ebp - 0x9d], 0
cmp dword [ebx + 0x24], 0x10
jb 0x42297f
mov eax, dword [ebx + 0x10]
jmp 0x422982
lea eax, [ebx + 0x10]
mov edx, dword [ebp - 0x9c]
mov dword [ebx + 0x20], edx
add eax, edx
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov cl, byte [ebp - 0x9d]
mov byte [eax], cl
jmp 0x422b4b
or ecx, 0xffffffff
sub ecx, dword [ebx + 0x20]
cmp ecx, 1
ja 0x4229b8
push ebx
call fcn.005721a0
pop ecx
mov eax, dword [ebx + 0x20]
lea edx, [ebx + 8]
inc eax
mov dword [ebp - 0xa8], eax
push edx
mov esi, eax
call fcn.004233a8
pop ecx
mov dword [ebp - 0xac], eax
mov word [ebp - 0x3c], 0x18
cmp dword [ebp - 0xac], 1
ja 0x4229ea
mov ecx, 1
jmp 0x4229f1
mov ecx, dword [ebp - 0xac]
dec ecx
cmp esi, ecx
jbe 0x4229fc
push ebx
call fcn.005721a0
pop ecx
cmp esi, dword [ebx + 0x24]
jbe 0x422ab4
mov eax, dword [ebx + 0x20]
push eax
push esi
push ebx
call fcn.004231a8
add esp, 0xc
jmp 0x422ae8
test esi, esi
jne 0x422ae8
mov byte [ebp - 0xc1], 0
cmp dword [ebx + 0x24], 0x10
jb 0x422aca
mov ecx, dword [ebx + 0x10]
jmp 0x422acd
lea ecx, [ebx + 0x10]
xor eax, eax
mov dword [ebx + 0x20], eax
add ecx, eax
mov dword [ebp - 0xc8], ecx
mov edx, dword [ebp - 0xc8]
mov cl, byte [ebp - 0xc1]
mov byte [edx], cl
test esi, esi
seta cl
and ecx, 1
test cl, cl
je 0x422b4b
mov al, 0x3d
mov edx, dword [ebx + 0x20]
cmp dword [ebx + 0x24], 0x10
jb 0x422b04
mov esi, dword [ebx + 0x10]
jmp 0x422b07
lea esi, [ebx + 0x10]
add esi, edx
mov byte [esi], al
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xcc], eax
mov byte [ebp - 0xcd], 0
cmp dword [ebx + 0x24], 0x10
jb 0x422b29
mov edx, dword [ebx + 0x10]
jmp 0x422b2c
lea edx, [ebx + 0x10]
mov eax, dword [ebp - 0xcc]
mov dword [ebx + 0x20], eax
add edx, eax
mov dword [ebp - 0xd4], edx
mov edx, dword [ebp - 0xd4]
mov cl, byte [ebp - 0xcd]
mov byte [edx], cl
inc dword [ebp - 0x68]
cmp dword [ebp - 0x68], 4
jb 0x4227bc
add dword [ebp - 0x60], 3
mov ecx, dword [ebp - 0x60]
cmp ecx, dword [ebp + 0x10]
jb 0x422769
mov word [ebp - 0x3c], 0x54
lea eax, [ebx + 8]
push eax
lea edx, [ebp - 0xdc]
push edx
call fcn.00423180
add esp, 8
lea ecx, [ebp - 0xdc]
push ecx
mov eax, dword [ebp + 8]
add eax, 8
push eax
call fcn.00423180
add esp, 8
mov edx, dword [ebp + 8]
mov eax, 0xf
mov dword [edx + 0x24], eax
mov byte [ebp - 0xdd], 0
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 0x20], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], 0x10
jb 0x422bc2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
jmp 0x422bc8
mov eax, dword [ebp + 8]
add eax, 0x10
add ecx, eax
mov dword [ebp - 0xe4], ecx
mov edx, dword [ebp - 0xe4]
mov cl, byte [ebp - 0xdd]
mov byte [edx], cl
cmp dword [ebx + 0x20], 0
jae 0x422bee
mov ecx, dword [ebp + 8]
push ecx
call fcn.00572dd0
pop ecx
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0xe8], eax
cmp dword [ebp - 0xe8], 0xffffffff
jbe 0x422c0a
mov dword [ebp - 0xe8], 0xffffffff
cmp ebx, dword [ebp + 8]
jne 0x422e67
mov dword [ebp - 0xec], 0xffffffff
mov edx, dword [ebp - 0xe8]
mov dword [ebp - 0xf0], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x20]
cmp eax, dword [ebp - 0xf0]
jae 0x422c41
mov edx, dword [ebp + 8]
push edx
call fcn.00572dd0
pop ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x20]
sub eax, dword [ebp - 0xf0]
cmp eax, dword [ebp - 0xec]
jae 0x422c67
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x20]
sub ecx, dword [ebp - 0xf0]
mov dword [ebp - 0xec], ecx
cmp dword [ebp - 0xec], 0
jbe 0x422d53
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x20]
sub edx, dword [ebp - 0xf0]
sub edx, dword [ebp - 0xec]
mov dword [ebp - 0xf4], edx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x24], 0x10
jb 0x422c9d
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x10]
jmp 0x422ca3
mov edx, dword [ebp + 8]
add edx, 0x10
add edx, dword [ebp - 0xf0]
add edx, dword [ebp - 0xec]
mov dword [ebp - 0xf8], edx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], 0x10
jb 0x422cc6
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x10]
jmp 0x422ccc
mov ecx, dword [ebp + 8]
add ecx, 0x10
add ecx, dword [ebp - 0xf0]
mov dword [ebp - 0xfc], ecx
mov eax, dword [ebp - 0xf4]
push eax
mov edx, dword [ebp - 0xf8]
push edx
mov ecx, dword [ebp - 0xfc]
push ecx
call fcn.0057b12d
add esp, 0xc
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x20]
sub edx, dword [ebp - 0xec]
mov dword [ebp - 0x100], edx
mov ecx, dword [ebp - 0x100]
mov dword [ebp - 0x104], ecx
mov byte [ebp - 0x105], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x104]
mov dword [eax + 0x20], edx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], 0x10
jb 0x422d37
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
jmp 0x422d3d
mov eax, dword [ebp + 8]
add eax, 0x10
add edx, eax
mov dword [ebp - 0x10c], edx
mov edx, dword [ebp - 0x10c]
mov cl, byte [ebp - 0x105]
mov byte [edx], cl
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
jae 0x422d6e
mov edx, dword [ebp + 8]
push edx
call fcn.00572dd0
pop ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x20]
cmp eax, dword [ebp - 0x110]
jae 0x422d88
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x20]
mov dword [ebp - 0x110], ecx
cmp dword [ebp - 0x110], 0
jbe 0x4230cb
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x20]
sub edx, dword [ebp - 0x110]
mov dword [ebp - 0x114], edx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x24], 0x10
jb 0x422db8
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x10]
jmp 0x422dbe
mov edx, dword [ebp + 8]
add edx, 0x10
add edx, dword [ebp - 0x110]
mov dword [ebp - 0x118], edx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], 0x10
jb 0x422ddb
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x10]
jmp 0x422de1
mov ecx, dword [ebp + 8]
add ecx, 0x10
mov dword [ebp - 0x11c], ecx
mov eax, dword [ebp - 0x114]
push eax
mov edx, dword [ebp - 0x118]
push edx
mov ecx, dword [ebp - 0x11c]
push ecx
call fcn.0057b12d
add esp, 0xc
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x20]
sub edx, dword [ebp - 0x110]
mov dword [ebp - 0x120], edx
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x124], ecx
mov byte [ebp - 0x125], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x124]
mov dword [eax + 0x20], edx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], 0x10
jb 0x422e46
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
jmp 0x422e4c
mov eax, dword [ebp + 8]
add eax, 0x10
add edx, eax
mov dword [ebp - 0x12c], edx
mov edx, dword [ebp - 0x12c]
mov cl, byte [ebp - 0x125]
mov byte [edx], cl
jmp 0x4230cb
mov ecx, dword [ebp - 0xe8]
mov dword [ebp - 0x130], ecx
mov eax, dword [ebp + 8]
add eax, 8
push eax
call fcn.004233a8
pop ecx
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 1
ja 0x422e96
mov edx, 1
jmp 0x422e9d
mov edx, dword [ebp - 0x134]
dec edx
cmp edx, dword [ebp - 0x130]
jae 0x422eaf
mov eax, dword [ebp + 8]
push eax
call fcn.005721a0
pop ecx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x24]
cmp ecx, dword [ebp - 0x130]
jae 0x422fcb
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x20]
push edx
mov ecx, dword [ebp - 0x130]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.004231a8
add esp, 0xc
jmp 0x423010
cmp dword [ebp - 0x130], 0
jne 0x423010
mov byte [ebp - 0x151], 0
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 0x20], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x24], 0x10
jb 0x422ff4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
jmp 0x422ffa
mov edx, dword [ebp + 8]
add edx, 0x10
add eax, edx
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x158]
mov cl, byte [ebp - 0x151]
mov byte [eax], cl
cmp dword [ebp - 0x130], 0
seta cl
and ecx, 1
test cl, cl
je 0x4230cb
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x15c], eax
cmp dword [ebx + 0x24], 0x10
jb 0x42303c
mov edx, dword [ebx + 0x10]
jmp 0x42303f
lea edx, [ebx + 0x10]
mov dword [ebp - 0x160], edx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], 0x10
jb 0x423056
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x10]
jmp 0x42305c
mov ecx, dword [ebp + 8]
add ecx, 0x10
mov dword [ebp - 0x164], ecx
mov eax, dword [ebp - 0x15c]
push eax
mov edx, dword [ebp - 0x160]
push edx
mov ecx, dword [ebp - 0x164]
push ecx
call fcn.0057aff8
add esp, 0xc
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x168], eax
mov byte [ebp - 0x169], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x168]
mov dword [edx + 0x20], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x24], 0x10
jb 0x4230af
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
jmp 0x4230b5
mov edx, dword [ebp + 8]
add edx, 0x10
add eax, edx
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x170]
mov cl, byte [ebp - 0x169]
mov byte [eax], cl
dec dword [ebp - 0x30]
mov eax, dword [ebp + 8]
mov word [ebp - 0x3c], 0x9c
push eax
dec dword [ebp - 0x30]
cmp dword [ebx + 0x24], 0x10
jb 0x423103
mov edx, dword [ebx + 0x10]
mov dword [ebp - 0x174], edx
mov ecx, dword [ebp - 0x174]
mov dword [ebp - 0x178], ecx
mov ecx, dword [ebp - 0x178]
push ecx
call fcn.00566060
pop ecx
mov eax, 0xf
mov dword [ebx + 0x24], eax
mov byte [ebp - 0x179], 0
cmp dword [ebx + 0x24], 0x10
jb 0x42311d
mov edx, dword [ebx + 0x10]
jmp 0x423120
lea edx, [ebx + 0x10]
xor eax, eax
mov dword [ebx + 0x20], eax
add edx, eax
mov dword [ebp - 0x180], edx
mov edx, dword [ebp - 0x180]
mov cl, byte [ebp - 0x179]
mov byte [edx], cl
pop eax
mov word [ebp - 0x3c], 0x54
inc dword [ebp - 0x30]
mov edx, dword [ebp - 0x4c]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret