Function at 0x4b6297
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov edx, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
test edx, edx
jne 0x4b62b1
mov eax, 0x80004003
jmp 0x4b67f2
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4b62a7
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
jne 0x4b62c2
mov dword [eax], ebx
mov eax, dword [eax]
push edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], eax
call fcn.004b32c9
test eax, eax
je 0x4b633f
mov eax, dword [ebp + 0x10]
cmp edx, eax
jne 0x4b631b
push 6
pop edi
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.004b9941
test eax, eax
js 0x4b67f0
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 6]
cmp eax, ecx
jl 0x4b6306
mov eax, ecx
sub eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jge 0x4b6310
mov eax, 0x80004005
jmp 0x4b67f0
mov edx, dword [ebp + 8]
add edx, 0xc
mov dword [ebp + 8], edx
jmp 0x4b6347
test eax, eax
jne 0x4b6324
push 6
pop edi
jmp 0x4b6341
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.004b9912
test eax, eax
js 0x4b67f0
mov edi, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
jmp 0x4b6341
mov edi, ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x18]
and ecx, 0x20
mov byte [ebp - 1], bl
mov dword [ebp - 0x28], ecx
or ecx, 0xffffffff
or dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
push esi
mov esi, ebx
test eax, eax
jle 0x4b6783
mov dword [ebp - 0x30], 0x3f
movzx ecx, word [edx + esi*2]
mov dword [ebp - 0xc], ecx
cmp cx, word [ebp - 0x30]
je 0x4b66d7
push 0x25
pop ebx
cmp cx, bx
jne 0x4b675e
add eax, 0xfffffffe
cmp esi, eax
jge 0x4b675e
movzx eax, word [edx + esi*2 + 2]
push eax
call fcn.0056ec63
test eax, eax
je 0x4b675e
mov ebx, dword [ebp + 8]
movzx eax, word [ebx + esi*2 + 4]
push eax
call fcn.0056ec63
test eax, eax
je 0x4b675e
movzx eax, word [ebx + esi*2 + 2]
push eax
call fcn.0056ecd0
mov ebx, eax
mov eax, dword [ebp + 8]
shl bl, 4
movzx ecx, word [eax + esi*2 + 4]
push ecx
call fcn.0056ecd0
add bl, al
mov byte [ebp + 0xf], bl
je 0x4b675e
cmp bl, 0x7f
jbe 0x4b6732
cmp dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
je 0x4b6649
mov eax, dword [ebp - 0x18]
cmp ecx, 0xffffffff
cmove ecx, esi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], ecx
cmove eax, edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffffa
cmp esi, eax
jg 0x4b6649
push 0x25
pop eax
cmp word [edx + esi*2 + 6], ax
jne 0x4b6649
movzx eax, word [edx + esi*2 + 8]
push eax
call fcn.0056ec63
test eax, eax
je 0x4b6640
mov ebx, dword [ebp + 8]
movzx eax, word [ebx + esi*2 + 0xa]
push eax
call fcn.0056ec63
test eax, eax
je 0x4b6640
movzx eax, word [ebx + esi*2 + 8]
push eax
call fcn.0056ecd0
mov bl, al
mov eax, dword [ebp + 8]
shl bl, 4
movzx ecx, word [eax + esi*2 + 0xa]
push ecx
call fcn.0056ecd0
add al, bl
mov cl, al
mov dword [ebp - 0x24], eax
and cl, 0xc0
cmp cl, 0x80
jne 0x4b6640
mov bl, byte [ebp + 0xf]
mov cl, bl
and cl, 0xe0
cmp cl, 0xc0
je 0x4b66b8
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
add eax, 0xfffffff7
cmp esi, eax
jg 0x4b6646
push 0x25
pop eax
cmp word [edx + esi*2 + 0xc], ax
jne 0x4b6646
movzx eax, word [edx + esi*2 + 0xe]
push eax
call fcn.0056ec63
test eax, eax
je 0x4b6640
mov ebx, dword [ebp + 8]
movzx eax, word [ebx + esi*2 + 0x10]
push eax
call fcn.0056ec63
test eax, eax
je 0x4b6640
movzx eax, word [ebx + esi*2 + 0xe]
push eax
call fcn.0056ecd0
mov bl, al
mov eax, dword [ebp + 8]
shl bl, 4
movzx ecx, word [eax + esi*2 + 0x10]
push ecx
call fcn.0056ecd0
mov edx, eax
add dl, bl
mov cl, dl
mov dword [ebp - 0x20], edx
and cl, 0xc0
cmp cl, 0x80
jne 0x4b6640
mov bl, byte [ebp + 0xf]
mov cl, bl
and cl, 0xf0
cmp cl, 0xe0
je 0x4b668e
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
add eax, 0xfffffff4
cmp esi, eax
jg 0x4b6646
push 0x25
pop eax
cmp word [edx + esi*2 + 0x12], ax
jne 0x4b6646
movzx eax, word [edx + esi*2 + 0x14]
push eax
call fcn.0056ec63
test eax, eax
je 0x4b6640
mov ebx, dword [ebp + 8]
movzx eax, word [ebx + esi*2 + 0x16]
push eax
call fcn.0056ec63
test eax, eax
je 0x4b6640
movzx eax, word [ebx + esi*2 + 0x14]
push eax
call fcn.0056ecd0
mov bl, al
mov eax, dword [ebp + 8]
shl bl, 4
movzx ecx, word [eax + esi*2 + 0x16]
push ecx
call fcn.0056ecd0
add al, bl
mov cl, al
mov dword [ebp - 0x34], eax
and cl, 0xc0
cmp cl, 0x80
jne 0x4b6640
mov bl, byte [ebp + 0xf]
mov cl, bl
and cl, 0xf8
cmp cl, 0xf0
jne 0x4b6643
lea eax, [edi + 2]
cmp eax, dword [ebp - 0x1c]
jg 0x4b6643
mov eax, dword [ebp - 0x24]
movzx edx, al
shr edx, 4
movzx eax, bl
and edx, 3
and eax, 7
shl eax, 2
or edx, eax
dec edx
cmp edx, 0x10000
jge 0x4b6643
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x20]
test ecx, ecx
je 0x4b6617
cmp edi, dword [ebp - 0x1c]
jge 0x4b6617
mov eax, dword [ebp - 0x24]
or edx, 0xff60
and al, 0xf
shl edx, 4
movzx eax, al
or dx, ax
mov al, bl
shr al, 4
and al, 3
shl dx, 2
movzx eax, al
or dx, ax
mov word [ecx + edi*2], dx
and bl, 0xf
mov eax, 0xff70
movzx ecx, bl
inc edi
or cx, ax
mov eax, dword [ebp - 0x34]
and al, 0x3f
shl cx, 6
movzx eax, al
or cx, ax
add esi, 0xb
movzx ecx, cx
jmp 0x4b6761
mov bl, byte [ebp + 0xf]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
and dword [ebp - 0x28], 0
test byte [ebp + 0x18], 1
jne 0x4b66ec
or ebx, 0xffffffff
cmp ecx, ebx
je 0x4b675e
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x4b67dc
mov esi, ecx
mov dword [ebp - 0x10], ebx
push 0x3f
mov edi, eax
mov dword [ebp - 0x18], ebx
pop eax
movzx ecx, word [edx + esi*2]
mov dword [ebp - 0xc], ecx
cmp cx, ax
je 0x4b66d5
mov eax, dword [ebp - 0x14]
jmp 0x4b637f
mov eax, dword [ebp - 0x24]
and dl, 0x3f
and al, 0x3f
movzx ecx, al
movzx eax, bl
shl ax, 6
or cx, ax
movzx eax, dl
shl cx, 6
or cx, ax
add esi, 8
movzx ecx, cx
jmp 0x4b6761
and bl, 0x1f
and al, 0x3f
movzx ecx, bl
shl cx, 6
movzx eax, al
or cx, ax
add esi, 5
movzx ecx, cx
jmp 0x4b6761
xor ebx, ebx
or ecx, 0xffffffff
mov dword [ebp - 0x28], ebx
or dword [ebp - 0x18], ecx
mov byte [ebp - 1], 1
mov dword [ebp - 0x10], ecx
jmp 0x4b67de
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x1c], 0x4b0
je 0x4b672d
cmp dword [eax + 0x1c], 0x4b1
je 0x4b672d
push dword [eax + 4]
lea ecx, [ebp - 8]
push 1
push ecx
push 1
lea ecx, [ebp + 0xf]
push ecx
push dword [eax + 0x1c]
call fcn.0056d723
test eax, eax
je 0x4b675e
mov ax, word [ebp - 8]
test ax, ax
je 0x4b675e
movzx ecx, ax
add esi, 2
jmp 0x4b6761
movzx ecx, bl
jmp 0x4b6728
test byte [ebp + 0x18], 8
jne 0x4b675e
cmp byte [ebp - 1], 0
je 0x4b6753
cmp bl, 0x3d
je 0x4b674d
cmp bl, 0x26
je 0x4b674d
cmp bl, 0x2b
jne 0x4b6753
test byte [ebp + 0x18], 0x40
jne 0x4b675e
cmp bl, 0x23
jne 0x4b672d
test byte [ebp + 0x18], 4
je 0x4b672d
mov ecx, dword [ebp - 0xc]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4b6773
cmp edi, dword [ebp - 0x1c]
jge 0x4b6773
mov word [eax + edi*2], cx
mov eax, dword [ebp - 0x14]
inc esi
mov edx, dword [ebp + 8]
inc edi
cmp esi, eax
jl 0x4b636e
mov edx, dword [ebp - 0x1c]
mov eax, edx
mov ecx, dword [ebp - 0x2c]
sub eax, edi
mov dword [ebp + 8], eax
call fcn.004b32c9
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x4b67be
mov ecx, esi
lea eax, [ebp + 8]
neg ecx
push eax
sbb ecx, ecx
lea eax, [esi + edi*2]
and ecx, eax
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.004b9941
test eax, eax
js 0x4b67ef
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
add edi, ebx
test esi, esi
je 0x4b67ce
cmp edi, edx
jg 0x4b67ce
xor ecx, ecx
mov word [esi + edi*2], cx
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], edi
test esi, esi
jne 0x4b67e3
inc eax
jmp 0x4b67ef
xor ebx, ebx
mov ecx, dword [ebp - 0xc]
jmp 0x4b6763
cmp edi, edx
jle 0x4b67ef
mov word [esi], ax
mov eax, 0x8007007a
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14