Function at 0x412168
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov eax, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
test dl, dl
mov edx, 0x41dd40
mov dword [ebp - 0x40], ecx
cmove eax, edx
mov esi, eax
xor eax, eax
test ecx, ecx
je 0x41218d
mov eax, dword [ecx]
fld dword [0x41dd80]
mov dword [ebp - 0x3c], eax
lea ebx, [eax*4]
fimul dword [ebp - 0x3c]
mov dword [ebp - 0x3c], ebx
fild dword [ebp - 0x3c]
fxch st(1)
fucomi st(1)
jp 0x4121ae
je 0x4121cd
fld st(0)
fabs
fxch st(2)
fsubrp st(1)
fabs
fmul dword [0x41dd84]
fxch st(1)
fcompi st(1)
fstp st(0)
jae 0x4121d1
call fcn.0040483b
jmp 0x4121d1
fstp st(0)
fstp st(0)
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
lea ecx, [ebp - 0x38]
mov edx, 6
call fcn.00412150
test al, al
je 0x4121f1
call fcn.0040483b
mov eax, dword [ebp - 0x38]
test eax, eax
jns 0x412227
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 0x10], 0x7fffffff
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
call fcn.004058d5
mov edx, dword [ebp - 0x38]
xor ecx, ecx
call fcn.00405519
cmp dword [ebp - 0x40], 0
mov ebx, eax
je 0x41224a
mov eax, dword [ebp - 0x40]
mov edi, 3
mov ecx, dword [eax]
mov eax, ecx
cdq
idiv edi
jmp 0x41224e
xor edx, edx
xor ecx, ecx
mov eax, ecx
sub eax, edx
xor ecx, eax
mov dword [ebp - 0x44], eax
jns 0x412262
xor edx, eax
js 0x412262
call fcn.0040483b
mov dword [ebp - 0x3c], 0
xor edi, edi
cmp edi, dword [ebp - 0x44]
jne 0x41227f
cmp dword [ebp - 0x40], 0
jne 0x412465
jmp 0x4126f3
cmp dword [ebp - 0x40], 0
je 0x412291
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
cmp edi, eax
jb 0x4122a0
dec eax
jmp 0x412294
or eax, 0xffffffff
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00405a04
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x34]
mov edx, 1
movzx eax, byte [eax + edi + 8]
shl eax, 0x10
mov dword [ebp - 0x48], eax
mov eax, edi
call fcn.00412150
test al, al
je 0x4122c6
call fcn.0040483b
mov edi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x34]
mov edx, dword [edi]
cmp eax, edx
jb 0x4122e5
dec edx
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [ebp - 0x4c], eax
call fcn.00405a04
mov eax, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x40]
lea ecx, [ebp - 0x30]
mov edx, 1
movzx edi, byte [edi + eax + 8]
shl edi, 8
call fcn.00412150
test al, al
je 0x412306
call fcn.0040483b
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x30]
mov edx, dword [ecx]
cmp eax, edx
jb 0x412325
dec edx
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [ebp - 0x4c], eax
call fcn.00405a04
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x40]
movzx edx, byte [ecx + eax + 8]
lea ecx, [ebp - 0x2c]
or edi, edx
mov edx, 1
or edi, dword [ebp - 0x48]
mov dword [ebp - 0x48], edi
call fcn.00412150
test al, al
je 0x41234b
call fcn.0040483b
mov edi, dword [ebp - 0x2c]
test ebx, ebx
je 0x41235c
mov eax, dword [ebx]
cmp dword [ebp - 0x3c], eax
jb 0x41236e
dec eax
jmp 0x41235f
or eax, 0xffffffff
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.00405a04
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x3c]
mov edx, 1
shr eax, 0x12
mov al, byte [esi + eax]
mov byte [ebx + ecx + 8], al
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x28]
call fcn.00412150
test al, al
je 0x412397
call fcn.0040483b
mov eax, dword [ebp - 0x28]
mov edx, dword [ebx]
cmp eax, edx
jb 0x4123b3
dec edx
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [ebp - 0x3c], eax
call fcn.00405a04
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x48]
lea ecx, [ebp - 0x24]
shr edx, 0xc
and edx, 0x3f
mov dl, byte [esi + edx]
mov byte [ebx + eax + 8], dl
mov edx, 1
call fcn.00412150
test al, al
je 0x4123d9
call fcn.0040483b
mov eax, dword [ebp - 0x24]
mov edx, dword [ebx]
cmp eax, edx
jb 0x4123f5
dec edx
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [ebp - 0x3c], eax
call fcn.00405a04
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x48]
lea ecx, [ebp - 0x20]
shr edx, 6
and edx, 0x3f
mov dl, byte [esi + edx]
mov byte [ebx + eax + 8], dl
mov edx, 1
call fcn.00412150
test al, al
je 0x41241b
call fcn.0040483b
mov eax, dword [ebp - 0x20]
mov edx, dword [ebx]
cmp eax, edx
jb 0x412437
dec edx
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [ebp - 0x3c], eax
call fcn.00405a04
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x48]
lea ecx, [ebp - 0x1c]
and edx, 0x3f
mov dl, byte [esi + edx]
mov byte [ebx + eax + 8], dl
mov edx, 1
call fcn.00412150
test al, al
je 0x41245a
call fcn.0040483b
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
jmp 0x41226b
mov eax, dword [ebp - 0x40]
mov edi, 3
mov ecx, dword [eax]
mov eax, ecx
cdq
idiv edi
cmp edx, 1
je 0x412487
cmp edx, 2
je 0x412570
jmp 0x4126f3
cmp dword [ebp - 0x44], ecx
jb 0x41249c
mov eax, dword [ebp - 0x44]
dec ecx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00405a04
mov eax, dword [ebp - 0x40]
mov edi, dword [ebp - 0x44]
lea ecx, [ebp - 0x2c]
mov edx, 1
movzx edi, byte [eax + edi + 8]
mov eax, dword [ebp - 0x44]
shl edi, 0x10
call fcn.00412150
test al, al
je 0x4124c3
call fcn.0040483b
test ebx, ebx
je 0x4124d1
mov eax, dword [ebx]
cmp dword [ebp - 0x3c], eax
jb 0x4124e3
dec eax
jmp 0x4124d4
or eax, 0xffffffff
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.00405a04
mov eax, edi
mov ecx, dword [ebp - 0x3c]
mov edx, 1
shr eax, 0x12
mov al, byte [esi + eax]
mov byte [ebx + ecx + 8], al
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x28]
call fcn.00412150
test al, al
je 0x41250b
call fcn.0040483b
mov eax, dword [ebp - 0x28]
mov edx, dword [ebx]
cmp eax, edx
jb 0x412527
dec edx
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [ebp - 0x3c], eax
call fcn.00405a04
mov eax, dword [ebp - 0x3c]
shr edi, 0xc
lea ecx, [ebp - 0x24]
and edi, 0x3f
mov dl, byte [esi + edi]
mov byte [ebx + eax + 8], dl
mov edx, 1
call fcn.00412150
test al, al
je 0x41254a
call fcn.0040483b
mov eax, dword [ebp - 0x24]
mov edx, dword [ebx]
cmp eax, edx
jb 0x412566
dec edx
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [ebp - 0x3c], eax
call fcn.00405a04
mov eax, dword [ebp - 0x3c]
mov byte [ebx + eax + 8], 0x3d
jmp 0x4126a0
cmp dword [ebp - 0x44], ecx
jb 0x412585
mov eax, dword [ebp - 0x44]
dec ecx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00405a04
mov eax, dword [ebp - 0x40]
mov edi, dword [ebp - 0x44]
lea ecx, [ebp - 0x30]
mov edx, 1
movzx edi, byte [eax + edi + 8]
mov eax, dword [ebp - 0x44]
shl edi, 0x10
call fcn.00412150
test al, al
je 0x4125ac
call fcn.0040483b
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x30]
mov edx, dword [ecx]
cmp eax, edx
jb 0x4125cb
dec edx
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [ebp - 0x44], eax
call fcn.00405a04
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
movzx edx, byte [ecx + eax + 8]
lea ecx, [ebp - 0x2c]
shl edx, 8
or edi, edx
mov edx, 1
call fcn.00412150
test al, al
je 0x4125ee
call fcn.0040483b
test ebx, ebx
je 0x4125fc
mov eax, dword [ebx]
cmp dword [ebp - 0x3c], eax
jb 0x41260e
dec eax
jmp 0x4125ff
or eax, 0xffffffff
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.00405a04
mov eax, edi
mov ecx, dword [ebp - 0x3c]
mov edx, 1
shr eax, 0x12
mov al, byte [esi + eax]
mov byte [ebx + ecx + 8], al
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x28]
call fcn.00412150
test al, al
je 0x412636
call fcn.0040483b
mov eax, dword [ebp - 0x28]
mov edx, dword [ebx]
cmp eax, edx
jb 0x412652
dec edx
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [ebp - 0x3c], eax
call fcn.00405a04
mov eax, dword [ebp - 0x3c]
mov edx, edi
lea ecx, [ebp - 0x24]
shr edx, 0xc
and edx, 0x3f
mov dl, byte [esi + edx]
mov byte [ebx + eax + 8], dl
mov edx, 1
call fcn.00412150
test al, al
je 0x412677
call fcn.0040483b
mov eax, dword [ebp - 0x24]
mov edx, dword [ebx]
cmp eax, edx
jb 0x412693
dec edx
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [ebp - 0x3c], eax
call fcn.00405a04
mov eax, dword [ebp - 0x3c]
shr edi, 6
and edi, 0x3f
mov dl, byte [esi + edi]
mov byte [ebx + eax + 8], dl
lea ecx, [ebp - 0x20]
mov edx, 1
call fcn.00412150
test al, al
je 0x4126b6
call fcn.0040483b
mov eax, dword [ebp - 0x20]
mov edx, dword [ebx]
cmp eax, edx
jb 0x4126d2
dec edx
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [ebp - 0x3c], eax
call fcn.00405a04
mov eax, dword [ebp - 0x3c]
mov byte [ebx + eax + 8], 0x3d
lea ecx, [ebp - 0x1c]
mov edx, 1
call fcn.00412150
test al, al
je 0x4126ed
call fcn.0040483b
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jns 0x41272b
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x10], 0x7fffffff
mov dword [esp + 0x14], 0
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
call fcn.004058d5
mov edx, dword [ebp - 0x3c]
mov ecx, ebx
call fcn.00405519
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret