Function at 0x46ea98
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x46eaa0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a98
xor eax, eax
push ebp
push 0x46effc
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
push 0
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00408ce8
mov edx, dword [ebp - 0x38]
mov ecx, 1
mov eax, 0x46f010
call fcn.0046e978
pop ecx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x46eb11
push ebp
push 0
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00408ce8
mov edx, dword [ebp - 0x3c]
mov ecx, 1
mov eax, 0x46f020
call fcn.0046e978
pop ecx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jle 0x46ef9b
mov byte [ebp - 0x31], 1
push ebp
push 0
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 4]
call fcn.00408ce8
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x28]
add ecx, 5
mov eax, 0x46f034
call fcn.0046e978
pop ecx
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x46eb4e
mov byte [ebp - 0x31], 0
cmp byte [ebp - 0x31], 0
je 0x46eb81
push ebp
push 0
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.00408ce8
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x2c]
inc ecx
mov eax, 0x46f034
call fcn.0046e978
pop ecx
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x46eb81
mov byte [ebp - 0x31], 0
cmp byte [ebp - 0x31], 0
je 0x46ef27
push ebp
push 0
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
call fcn.00408ce8
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x2c]
inc ecx
mov eax, 0x46f040
call fcn.0046e978
pop ecx
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jle 0x46ef27
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x28]
add ecx, 2
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00404b08
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 0x30]
mov eax, 0x46f034
call fcn.00404bec
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x30]
call fcn.004048a8
mov ecx, eax
sub ecx, dword [ebp - 0x10]
inc ecx
mov edx, dword [ebp - 0x10]
inc edx
mov eax, dword [ebp - 0x30]
call fcn.00404b08
cmp dword [ebp - 0xc], 1
jne 0x46ec2e
lea eax, [ebp - 0x18]
push eax
mov edx, dword [ebp - 0x30]
mov eax, 0x46f034
call fcn.00404bec
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x30]
call fcn.00404b08
jmp 0x46ec4a
cmp dword [ebp - 0xc], 2
jne 0x46ec4a
lea eax, [ebp - 0x14]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 0x30]
call fcn.00404b08
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 4
jne 0x46ebd7
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x30]
call fcn.004048a8
mov edx, eax
dec edx
mov ecx, 2
mov eax, dword [ebp - 0x30]
call fcn.00404b08
mov eax, dword [ebp - 0x4c]
mov edx, 0x46f040
call fcn.004049f4
je 0x46ec82
mov byte [ebp - 0x31], 0
mov edx, 0x46f04c
mov eax, dword [ebp - 0x14]
call fcn.00408f68
test al, al
je 0x46edc4
cmp byte [ebp - 0x31], 0
je 0x46edc4
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0x1c]
call fcn.004045e8
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx - 1], 0x5f
jne 0x46eccf
lea eax, [ebp - 0x1c]
mov edx, 0x46f058
call fcn.004048b0
jmp 0x46ed9b
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx - 1], 0x3d
jne 0x46ed7e
mov eax, dword [ebp - 0x30]
call fcn.004048a8
mov edx, dword [ebp - 0xc]
add edx, 2
add edx, 2
cmp eax, edx
jl 0x46ed7e
mov edx, 0x46f05c
lea eax, [ebp - 0x58]
call fcn.00403030
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dl, byte [edx + ecx]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x5c]
lea eax, [ebp - 0x58]
mov cl, 2
call fcn.00403000
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x60]
call fcn.00403030
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dl, byte [edx + ecx + 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x5c]
lea eax, [ebp - 0x60]
mov cl, 3
call fcn.00403000
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x54]
call fcn.0040484c
mov eax, dword [ebp - 0x54]
call fcn.00409614
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.004047d0
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x1c]
call fcn.004048b0
add dword [ebp - 0xc], 2
jmp 0x46ed9b
lea eax, [ebp - 0x64]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dl, byte [edx + ecx - 1]
call fcn.004047d0
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0x1c]
call fcn.004048b0
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx - 1], 0x3f
jne 0x46ecb0
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx], 0x3d
jne 0x46ecb0
jmp 0x46eea9
cmp byte [ebp - 0x31], 0
je 0x46eea9
jmp 0x46ee98
mov eax, dword [ebp - 0x30]
mov al, byte [eax]
call fcn.0046e940
mov byte [ebp - 0x23], al
mov eax, dword [ebp - 0x30]
mov al, byte [eax + 1]
call fcn.0046e940
mov byte [ebp - 0x22], al
mov eax, dword [ebp - 0x30]
mov al, byte [eax + 2]
call fcn.0046e940
mov byte [ebp - 0x21], al
mov eax, dword [ebp - 0x30]
mov al, byte [eax + 3]
call fcn.0046e940
mov byte [ebp - 0x20], al
mov al, byte [ebp - 0x23]
shl eax, 2
xor edx, edx
mov dl, byte [ebp - 0x22]
shr edx, 4
or al, dl
mov byte [ebp - 0x1f], al
mov al, byte [ebp - 0x22]
shl eax, 4
xor edx, edx
mov dl, byte [ebp - 0x21]
shr edx, 2
or al, dl
mov byte [ebp - 0x1e], al
mov al, byte [ebp - 0x21]
shl eax, 6
xor edx, edx
mov dl, byte [ebp - 0x20]
shr edx, 0
or al, dl
mov byte [ebp - 0x1d], al
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x30]
call fcn.004048a8
mov ecx, eax
mov edx, 5
mov eax, dword [ebp - 0x30]
call fcn.00404b08
push dword [ebp - 0x1c]
lea eax, [ebp - 0x68]
mov dl, byte [ebp - 0x1f]
call fcn.004047d0
push dword [ebp - 0x68]
lea eax, [ebp - 0x6c]
mov dl, byte [ebp - 0x1e]
call fcn.004047d0
push dword [ebp - 0x6c]
lea eax, [ebp - 0x70]
mov dl, byte [ebp - 0x1d]
call fcn.004047d0
push dword [ebp - 0x70]
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00404968
mov eax, dword [ebp - 0x30]
call fcn.004048a8
cmp eax, 4
jge 0x46edd3
cmp byte [ebp - 0x31], 0
je 0x46ef27
mov edx, 0x46f068
mov eax, dword [ebp - 0x18]
call fcn.00408f68
test al, al
je 0x46eecd
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
call fcn.0046f080
jmp 0x46eed8
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x1c]
call fcn.00404680
lea eax, [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x28]
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404b08
push dword [ebp - 0x74]
push dword [ebp - 0x30]
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp - 4]
call fcn.004048a8
mov ecx, eax
mov edx, dword [ebp - 0x2c]
add edx, 2
mov eax, dword [ebp - 4]
call fcn.00404b08
push dword [ebp - 0x78]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404968
lea eax, [ebp - 0x30]
call fcn.004045e8
push ebp
push 0
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 4]
call fcn.00408ce8
mov edx, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x28]
inc ecx
mov eax, 0x46f010
call fcn.0046e978
pop ecx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x46ef73
push ebp
push 0
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 4]
call fcn.00408ce8
mov edx, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x28]
inc ecx
mov eax, 0x46f020
call fcn.0046e978
pop ecx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jg 0x46eb1b
jmp 0x46ef9b
mov edx, dword [ebp - 4]
mov eax, 0x46f07c
call fcn.00404bec
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call fcn.00404b48
mov edx, dword [ebp - 4]
mov eax, 0x46f07c
call fcn.00404bec
test eax, eax
jg 0x46ef7f
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040463c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f003
lea eax, [ebp - 0x80]
mov edx, 8
call fcn.0040460c
lea eax, [ebp - 0x54]
mov edx, 8
call fcn.0040460c
lea eax, [ebp - 0x30]
call fcn.004045e8
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.0040460c
lea eax, [ebp - 4]
call fcn.004045e8
ret