Function at 0x20404600
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x614
mov eax, dword [0x204a31e0]
xor eax, esp
mov dword [esp + 0x610], eax
mov eax, dword [esp + 0x61c]
push ebx
push ebp
mov ebp, dword [esp + 0x620]
push esi
push edi
push 0x1ff
mov ebx, ecx
lea ecx, [esp + 0x25]
push 0
push ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], eax
mov byte [esp + 0x2c], 0
call sub.MSVCR80.dll_memset
push 0x3fe
lea edx, [esp + 0x232]
push 0
push edx
mov word [esp + 0x238], 0
call sub.MSVCR80.dll_memset
add esp, 0x18
test ebx, ebx
je 0x20404891
mov edi, dword [esp + 0x630]
lea ecx, [edi + 2]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea esi, [edx*4 + 2]
cmp esi, 0x200
ja 0x2040485c
mov eax, 0xaaaaaaab
mul edi
xor esi, esi
xor ecx, ecx
shr edx, 1
mov dword [esp + 0x1c], edx
je 0x20404745
mov dword [esp + 0x10], edx
movzx eax, byte [ebx + esi]
movzx edi, byte [ebx + esi + 1]
mov edx, eax
sar edx, 2
and edx, 0x3f
movzx edx, byte [edx + 0x204856a8]
mov byte [esp + ecx + 0x20], dl
add esi, 1
movzx ebp, byte [ebx + esi + 1]
mov edx, edi
sar edx, 4
and edx, 0xf
and eax, 3
add esi, 1
shl eax, 4
or edx, eax
movzx eax, byte [edx + 0x204856a8]
and edi, 0xf
mov edx, ebp
sar edx, 6
add ecx, 1
add edi, edi
mov byte [esp + ecx + 0x20], al
and edx, 3
add edi, edi
or edx, edi
movzx eax, byte [edx + 0x204856a8]
add ecx, 1
and ebp, 0x3f
movzx edx, byte [ebp + 0x204856a8]
mov byte [esp + ecx + 0x20], al
add ecx, 1
mov byte [esp + ecx + 0x20], dl
add esi, 1
add ecx, 1
sub dword [esp + 0x10], 1
jne 0x204046b0
mov edi, dword [esp + 0x630]
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
lea eax, [edx + edx*2]
sub edi, eax
sub edi, 1
je 0x204047ad
sub edi, 1
jne 0x204047e9
movzx eax, byte [ebx + esi]
movzx esi, byte [ebx + esi + 1]
mov edx, eax
sar edx, 2
and edx, 0x3f
movzx edx, byte [edx + 0x204856a8]
mov byte [esp + ecx + 0x20], dl
mov edx, esi
sar edx, 4
and eax, 3
and edx, 0xf
shl eax, 4
or edx, eax
mov al, byte [edx + 0x204856a8]
add ecx, 1
and esi, 0xf
movzx edx, byte [esi*4 + 0x204856a8]
mov byte [esp + ecx + 0x20], al
add ecx, 1
mov byte [esp + ecx + 0x20], dl
add ecx, 1
mov byte [esp + ecx + 0x20], 0x3d
jmp 0x204047e6
movzx eax, byte [ebx + esi]
mov edx, eax
sar edx, 2
and eax, 3
and edx, 0x3f
mov dl, byte [edx + 0x204856a8]
mov byte [esp + ecx + 0x20], dl
shl eax, 4
mov al, byte [eax + 0x204856a8]
add ecx, 1
mov byte [esp + ecx + 0x20], al
add ecx, 1
mov al, 0x3d
mov byte [esp + ecx + 0x20], al
add ecx, 1
mov byte [esp + ecx + 0x20], al
add ecx, 1
push 0x200
mov byte [esp + ecx + 0x24], 0
lea ecx, [esp + 0x224]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x2c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [ebp + 0x34]
lea ebx, [ebp + 0x28]
mov edi, 1
lea eax, [esp + 0x220]
mov word [esp + 0x61e], 0
mov dword [ebp + 0x30], esi
call fcn.20403950
test eax, eax
jne 0x20404855
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
push eax
mov eax, dword [esp + 0x1c]
push esi
push str.VALUE
push eax
push ecx
call fcn.20402220
add esp, 0x14
jmp 0x20404901
mov eax, edi
jmp 0x20404901
test esi, esi
je 0x20404891
mov ebp, dword [sym.imp.MSVCR80.dll_malloc]
push esi
call ebp
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
je 0x20404891
lea ecx, [esi + esi]
push ecx
call ebp
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x20404898
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov eax, 1
jmp 0x20404901
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push edi
mov byte [ecx], 0
push ebx
mov eax, esi
mov edi, ecx
mov word [ebp], 0
call fcn.20405230
add esp, 0xc
test al, al
je 0x204048e7
test esi, esi
jbe 0x204048cb
mov eax, dword [esp + 0x10]
mov edi, ebp
call fcn.20404dd0
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
push str.VALUE
push ecx
mov eax, ebp
call fcn.204022f0
add esp, 8
mov esi, eax
jmp 0x204048ec
mov esi, 1
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.MSVCR80.dll_free]
push edx
call edi
push ebp
call edi
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x620]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.20478952
add esp, 0x614
ret