Function at 0x74bae486
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x74ccd724]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x124], ecx
mov eax, edx
mov ecx, dword [ebp + 8]
xor edx, edx
push 3
mov dword [ebp - 0x12c], ecx
pop ecx
mov dword [ebp - 0x10c], eax
div ecx
mov esi, edx
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x128], esi
test esi, esi
je 0x74bae4d5
inc eax
mov dword [ebp - 0x120], eax
push 4
pop ecx
mul ecx
lea ecx, [ebp - 0x120]
push edx
push eax
call fcn.74bc119a
xor ebx, ebx
mov dword [ebp - 0x114], eax
test eax, eax
jns 0x74bae5c0
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x10c], eax
cmp dword [0x74ccdac8], ebx
je 0x74bae7d5
mov ecx, dword [0x74ccdad0]
mov edx, 0x800
mov eax, dword [0x74ccdad4]
mov esi, 0x40000000
and ecx, edx
and eax, esi
or ecx, eax
je 0x74bae7d5
mov eax, dword [0x74ccdad8]
mov edi, dword [0x74ccdadc]
and eax, edx
mov edx, edi
and edx, esi
cmp dword [0x74ccdad8], eax
jne 0x74bae7d5
cmp edi, edx
jne 0x74bae7d5
lea ecx, [ebp - 0x84]
call fcn.74b99ab6
lea ecx, [ebp - 0x84]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x74bae569
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x84]
push eax
push 0x11
push 0x74b89f34
push 4
lea eax, [ebp - 0x118]
push eax
push 1
push 0x74b88558
push 4
lea eax, [ebp - 0x10c]
push eax
push 5
push 0x74b883a0
push 0x74ccdab8
call fcn.74b99be6
add esp, 0x34
jmp 0x74bae7d5
push dword [ebp - 0x120]
push ebx
call dword [0x74cd1050]
mov edi, eax
test edi, edi
jne 0x74bae6a7
mov edi, 0x8007000e
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x10c], edi
cmp dword [0x74ccdac8], ebx
je 0x74bae7db
mov ecx, dword [0x74ccdad0]
mov edx, 0x800
mov eax, dword [0x74ccdad4]
mov esi, 0x40000000
and ecx, edx
and eax, esi
or ecx, eax
je 0x74bae7db
mov eax, dword [0x74ccdad8]
and eax, edx
mov edx, dword [0x74ccdadc]
and edx, esi
cmp dword [0x74ccdad8], eax
jne 0x74bae7db
cmp dword [0x74ccdadc], edx
jne 0x74bae7db
lea ecx, [ebp - 0x104]
call fcn.74b99ab6
lea ecx, [ebp - 0x104]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x74bae650
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x104]
push eax
push 0x11
push 0x74b89f34
push 4
lea eax, [ebp - 0x118]
push eax
push 1
push 0x74b88558
push 4
lea eax, [ebp - 0x10c]
push eax
push 5
push 0x74b883a0
push 0x74ccdab8
call fcn.74b99be6
add esp, 0x34
jmp 0x74bae7db
mov edx, ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x118], edx
cmp dword [ebp - 0x10c], edx
je 0x74bae7b5
mov esi, dword [ebp - 0x124]
lea eax, [edx + 1]
mov cl, byte [esi + eax - 1]
mov byte [ebp - 0x10d], cl
mov ecx, dword [ebp - 0x10c]
cmp eax, ecx
jae 0x74bae6f0
mov cl, byte [edx + esi + 1]
mov byte [ebp - 0x105], cl
mov ecx, dword [ebp - 0x10c]
jmp 0x74bae6f6
mov byte [ebp - 0x105], bl
inc eax
cmp eax, ecx
jae 0x74bae707
mov al, byte [edx + esi + 2]
mov byte [ebp - 0x106], al
jmp 0x74bae70d
mov byte [ebp - 0x106], bl
movzx ecx, byte [ebp - 0x10d]
mov edx, dword [ebp - 0x11c]
mov eax, ecx
shr eax, 2
and ecx, 3
shl ecx, 4
movsx ax, byte [eax + 0x74b89ef0]
mov word [edi + edx*2], ax
movzx edx, byte [ebp - 0x105]
mov eax, edx
and edx, 0xf
shr eax, 4
or ecx, eax
shl edx, 2
movsx ax, byte [ecx + 0x74b89ef0]
mov ecx, dword [ebp - 0x11c]
mov word [edi + ecx*2 + 2], ax
movzx ecx, byte [ebp - 0x106]
mov eax, ecx
and ecx, 0x3f
shr eax, 6
or eax, edx
mov edx, dword [ebp - 0x11c]
movsx ax, byte [eax + 0x74b89ef0]
mov word [edi + edx*2 + 4], ax
movsx ax, byte [ecx + 0x74b89ef0]
mov ecx, edx
mov edx, dword [ebp - 0x118]
add edx, 3
mov dword [ebp - 0x118], edx
mov word [edi + ecx*2 + 6], ax
add ecx, 4
mov dword [ebp - 0x11c], ecx
cmp edx, dword [ebp - 0x10c]
jb 0x74bae6c7
mov esi, dword [ebp - 0x128]
push 0x3d
pop ecx
sub esi, 1
je 0x74bae7f5
sub esi, 1
jne 0x74bae7cd
mov eax, dword [ebp - 0x120]
mov word [edi + eax*2 - 2], cx
mov eax, dword [ebp - 0x12c]
mov dword [eax], edi
mov edi, dword [ebp - 0x114]
xor ecx, ecx
call fcn.74b99a27
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.74b98d40
leave
ret 4
mov eax, dword [ebp - 0x120]
mov word [edi + eax*2 - 4], cx
jmp 0x74bae7c8