Function at 0x406e50
Capabilities:
Encode data using base64

Disassembly:
push 0xffffffffffffffff
push 0x4127ef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x28]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x3c]
mov ebp, ecx
push edi
mov ecx, dword [esp + 0x38]
push eax
push ecx
mov ecx, ebp
mov dword [esp + 0x2c], ebp
call fcn.0040aab0
xor esi, esi
lea ecx, [ebp + 0x10]
mov dword [esp + 0x2c], esi
call fcn.0041188e
mov eax, 0x414e34
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x40], esi
mov dword [ebp + 0x3c], esi
mov dword [ebp + 0x38], esi
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x48], esi
mov dword [ebp + 0x54], esi
mov dword [ebp + 0x50], esi
mov dword [ebp + 0x4c], esi
mov dword [ebp + 0x58], eax
mov dword [ebp + 0x5c], esi
mov dword [ebp + 0x68], esi
mov dword [ebp + 0x64], esi
mov dword [ebp + 0x60], esi
mov dword [ebp + 0x6c], 0x414e20
mov dword [ebp + 0x70], esi
mov dword [ebp + 0x7c], esi
mov dword [ebp + 0x78], esi
mov dword [ebp + 0x74], esi
mov byte [esp + 0x2c], 5
xor ebx, ebx
push ebx
mov ecx, ebp
call fcn.0040ab40
cmp al, byte [ebx + 0x414e18]
jne 0x407392
inc ebx
cmp ebx, 8
jl 0x406ee2
push 0x2f
mov ecx, ebp
call fcn.0040ab40
push 0x2e
mov ecx, ebp
mov bl, al
call fcn.0040ab40
push 0x2d
mov ecx, ebp
mov byte [esp + 0x40], al
call fcn.0040ab40
push 0x2c
mov ecx, ebp
mov byte [esp + 0x3c], al
call fcn.0040ab40
mov ecx, dword [esp + 0x38]
xor edx, edx
mov dh, bl
and ecx, 0xff
mov dl, byte [esp + 0x3c]
and eax, 0xff
shl edx, 8
or edx, ecx
push 0x3f
shl edx, 8
or eax, edx
mov ecx, ebp
mov dword [ebp + 0x24], eax
call fcn.0040ab40
push 0x3e
mov ecx, ebp
mov bl, al
call fcn.0040ab40
push 0x3d
mov ecx, ebp
mov byte [esp + 0x40], al
call fcn.0040ab40
push 0x3c
mov ecx, ebp
mov byte [esp + 0x3c], al
call fcn.0040ab40
mov ecx, dword [esp + 0x38]
xor edx, edx
mov dh, bl
and ecx, 0xff
mov dl, byte [esp + 0x3c]
and eax, 0xff
shl edx, 8
or edx, ecx
push 0x33
shl edx, 8
or eax, edx
mov ecx, ebp
mov dword [ebp + 0x28], eax
call fcn.0040ab40
push 0x32
mov ecx, ebp
mov bl, al
call fcn.0040ab40
push 0x31
mov ecx, ebp
mov byte [esp + 0x40], al
call fcn.0040ab40
push 0x30
mov ecx, ebp
mov byte [esp + 0x3c], al
call fcn.0040ab40
mov ecx, dword [esp + 0x38]
xor edx, edx
mov dh, bl
and ecx, 0xff
mov dl, byte [esp + 0x3c]
and eax, 0xff
shl edx, 8
or edx, ecx
push 0x47
shl edx, 8
or eax, edx
mov ecx, ebp
mov dword [ebp + 0x2c], eax
call fcn.0040ab40
push 0x46
mov ecx, ebp
mov bl, al
call fcn.0040ab40
push 0x45
mov ecx, ebp
mov byte [esp + 0x40], al
call fcn.0040ab40
push 0x44
mov ecx, ebp
mov byte [esp + 0x3c], al
call fcn.0040ab40
mov ecx, dword [esp + 0x38]
xor edx, edx
mov dh, bl
and ecx, 0xff
mov dl, byte [esp + 0x3c]
and eax, 0xff
shl edx, 8
or edx, ecx
push 0x4b
shl edx, 8
or eax, edx
mov ecx, ebp
mov dword [esp + 0x18], eax
call fcn.0040ab40
push 0x4a
mov ecx, ebp
mov bl, al
call fcn.0040ab40
push 0x49
mov ecx, ebp
mov byte [esp + 0x40], al
call fcn.0040ab40
push 0x48
mov ecx, ebp
mov byte [esp + 0x3c], al
call fcn.0040ab40
mov ecx, dword [esp + 0x38]
xor edx, edx
mov dh, bl
and ecx, 0xff
mov dl, byte [esp + 0x3c]
and eax, 0xff
shl edx, 8
or edx, ecx
shl edx, 8
or eax, edx
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x24]
cmp eax, 0xa
jge 0x4070bf
mov eax, edi
cdq
and edx, 0x1ff
add eax, edx
sar eax, 9
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
lea edx, [eax + eax*2]
shl edx, 1
mov dword [ebp + 0x24], edx
mov ebx, dword [ebp + 0x24]
cmp ebx, esi
jne 0x4070e4
mov eax, dword [ebp + 0x5c]
cmp eax, esi
je 0x4070d9
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp + 0x5c], esi
mov dword [ebp + 0x64], esi
mov dword [ebp + 0x60], esi
jmp 0x4071dd
mov ecx, dword [ebp + 0x5c]
cmp ecx, esi
jne 0x40711f
lea edi, [ebx*4]
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [ebp + 0x5c], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 0x64], ebx
mov dword [ebp + 0x60], ebx
jmp 0x4071dd
mov edi, dword [ebp + 0x64]
cmp ebx, edi
jg 0x407143
mov eax, dword [ebp + 0x60]
cmp ebx, eax
jle 0x40713b
mov edx, ebx
sub edx, eax
lea eax, [ecx + eax*4]
push edx
push eax
call fcn.00408070
mov dword [ebp + 0x60], ebx
jmp 0x4071dd
mov eax, dword [ebp + 0x68]
cmp eax, esi
jne 0x40716e
mov eax, dword [ebp + 0x60]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x407162
mov eax, 4
jmp 0x40716e
cmp eax, 0x400
jle 0x40716e
mov eax, 0x400
add eax, edi
cmp ebx, eax
mov dword [esp + 0x3c], eax
jl 0x40717c
mov dword [esp + 0x3c], ebx
mov ecx, dword [esp + 0x3c]
lea edx, [ecx*4]
push edx
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 0x60]
mov esi, dword [ebp + 0x5c]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebx
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x60]
mov dword [esp + 0x34], eax
sub edx, ecx
lea eax, [eax + ecx*4]
push edx
push eax
call fcn.00408070
mov ecx, dword [ebp + 0x5c]
push ecx
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
add esp, 4
mov dword [ebp + 0x5c], edx
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x64], eax
xor esi, esi
mov eax, dword [esp + 0x38]
mov ebx, dword [ebp + 0x24]
cmp eax, esi
je 0x4071ed
mov ebx, 0x6d
xor edi, edi
cmp ebx, esi
jle 0x407264
mov esi, 0x4e
lea ecx, [esi + 1]
push ecx
mov ecx, ebp
call fcn.0040ab40
push esi
mov ecx, ebp
mov byte [esp + 0x38], al
call fcn.0040ab40
lea edx, [esi - 1]
mov ecx, ebp
push edx
mov byte [esp + 0x1c], al
call fcn.0040ab40
mov byte [esp + 0x3c], al
lea eax, [esi - 2]
push eax
mov ecx, ebp
call fcn.0040ab40
mov edx, dword [esp + 0x34]
xor ecx, ecx
mov cl, al
mov eax, dword [esp + 0x18]
mov ch, byte [esp + 0x3c]
push edx
push eax
mov dword [esp + 0x44], ecx
call fcn.004073b0
mov ecx, dword [esp + 0x44]
add esp, 8
shl eax, 0x10
or eax, ecx
mov ecx, dword [ebp + 0x5c]
add esi, 4
mov dword [ecx + edi*4], eax
inc edi
cmp edi, ebx
jl 0x4071f8
xor esi, esi
mov eax, dword [esp + 0x38]
cmp eax, esi
jle 0x40736e
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0x24]
sub eax, ebx
lea edi, [edx + 1]
shl edi, 9
cmp eax, 0x7f
jl 0x40728d
mov eax, 0x7f
add eax, ebx
cmp ebx, eax
mov dword [esp + 0x10], eax
jge 0x4072fa
lea esi, [edi + 2]
lea eax, [esi + 1]
mov ecx, ebp
push eax
call fcn.0040ab40
push esi
mov ecx, ebp
mov byte [esp + 0x3c], al
call fcn.0040ab40
lea ecx, [esi - 1]
mov byte [esp + 0x34], al
push ecx
mov ecx, ebp
call fcn.0040ab40
push edi
mov ecx, ebp
mov byte [esp + 0x40], al
call fcn.0040ab40
xor edx, edx
xor ecx, ecx
mov ch, byte [esp + 0x38]
mov dl, al
mov dh, byte [esp + 0x3c]
mov cl, byte [esp + 0x34]
mov eax, edx
mov edx, dword [ebp + 0x5c]
shl ecx, 0x10
or ecx, eax
mov eax, dword [esp + 0x10]
mov dword [edx + ebx*4], ecx
add edi, 4
add esi, 4
inc ebx
cmp ebx, eax
jl 0x40729a
mov ebx, eax
mov eax, dword [ebp + 0x24]
cmp ebx, eax
jge 0x40735f
lea eax, [edi + 3]
mov ecx, ebp
push eax
call fcn.0040ab40
lea ecx, [edi + 2]
mov byte [esp + 0x3c], al
push ecx
mov ecx, ebp
call fcn.0040ab40
lea edx, [edi + 1]
mov ecx, ebp
push edx
mov byte [esp + 0x3c], al
call fcn.0040ab40
push edi
mov ecx, ebp
mov byte [esp + 0x20], al
call fcn.0040ab40
mov edx, dword [esp + 0x1c]
xor ecx, ecx
mov ch, byte [esp + 0x3c]
and edx, 0xff
mov cl, byte [esp + 0x38]
and eax, 0xff
shl ecx, 8
or ecx, edx
shl ecx, 8
or eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x407274
mov ecx, ebp
call fcn.004074f0
mov ecx, ebp
call fcn.004076f0
lea eax, [ebp + 0x10]
mov ecx, ebp
push eax
mov eax, dword [ebp + 0x2c]
push eax
call fcn.00407d50
mov ecx, ebp
call fcn.00407910
mov ecx, dword [esp + 0x24]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc