Function at 0x4132f8
Capabilities:
Encode data using base64

Disassembly:
push ebp
lea eax, [edx*4]
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x6c
cmp byte [ebp + 8], 0
mov dword [ebp - 0x50], edx
fld dword [0xe3b620]
fimul dword [ebp - 0x50]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], eax
fild dword [ebp - 0x50]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
jne 0x413360
fxch st(1)
fucomi st(1)
jp 0x41333f
je 0x4137f5
fld st(0)
fabs
fxch st(2)
fsubrp st(1)
fabs
fmul dword [0xe3b624]
fxch st(1)
fcompi st(1)
fstp st(0)
jae 0x4137f9
jmp 0x413b9f
fxch st(1)
fucomi st(1)
jp 0x413368
je 0x413386
fld st(0)
fabs
fxch st(2)
fsubrp st(1)
fabs
fmul dword [0xe3b624]
fxch st(1)
fcompi st(1)
fstp st(0)
jb 0x413b9f
jmp 0x41338a
fstp st(0)
fstp st(0)
cdq
mov esi, 3
lea ecx, [ebp - 0x40]
idiv esi
mov edx, 6
call fcn.004132c4
test al, al
jne 0x413b9f
mov edx, dword [ebp - 0x40]
test edx, edx
js 0x41381d
lea ecx, [ebp - 0x20]
call fcn.0040637c
mov eax, ebx
cdq
idiv esi
mov eax, ebx
sub eax, edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x58], eax
xor eax, ebx
xor edx, dword [ebp - 0x58]
not eax
or eax, edx
jns 0x413b9f
xor esi, esi
xor edi, edi
cmp edi, dword [ebp - 0x58]
jne 0x4133f0
cmp dword [ebp - 0x54], 1
jne 0x4135bb
jmp 0x4135ca
test edi, edi
js 0x413b74
cmp ebx, edi
jle 0x413b74
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x3c]
mov edx, 1
movzx eax, byte [eax + edi]
shl eax, 0x10
mov dword [ebp - 0x50], eax
mov eax, edi
call fcn.004132c4
test al, al
jne 0x413b9f
mov eax, dword [ebp - 0x3c]
test eax, eax
js 0x4138ee
cmp eax, ebx
jge 0x4138ee
mov edi, dword [ebp - 0x4c]
lea ecx, [ebp - 0x38]
mov edx, 1
movzx edi, byte [edi + eax]
shl edi, 8
call fcn.004132c4
test al, al
jne 0x413b9f
mov eax, dword [ebp - 0x38]
test eax, eax
js 0x4138ee
cmp eax, ebx
jge 0x4138ee
mov ecx, dword [ebp - 0x4c]
movzx edx, byte [ecx + eax]
lea ecx, [ebp - 0x34]
or edx, edi
or edx, dword [ebp - 0x50]
mov dword [ebp - 0x50], edx
mov edx, 1
call fcn.004132c4
test al, al
jne 0x413b9f
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x20]
test esi, esi
js 0x413c79
cmp esi, eax
jge 0x413c79
lea eax, [ebp - 0x20]
call fcn.004132e1
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x30]
shr eax, 0x12
mov dl, byte [eax + 0xe3b5e0]
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi + 4], dl
mov edx, 1
mov eax, esi
call fcn.004132c4
test al, al
jne 0x413b9f
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
test esi, esi
js 0x413c79
cmp esi, eax
jge 0x413c79
lea eax, [ebp - 0x20]
call fcn.004132e1
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x2c]
shr eax, 0xc
and eax, 0x3f
mov dl, byte [eax + 0xe3b5e0]
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi + 4], dl
mov edx, 1
mov eax, esi
call fcn.004132c4
test al, al
jne 0x413b9f
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
test esi, esi
js 0x413c79
cmp esi, eax
jge 0x413c79
lea eax, [ebp - 0x20]
call fcn.004132e1
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x28]
shr eax, 6
and eax, 0x3f
mov dl, byte [eax + 0xe3b5e0]
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi + 4], dl
mov edx, 1
mov eax, esi
call fcn.004132c4
test al, al
jne 0x413b9f
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
test esi, esi
js 0x413c79
cmp esi, eax
jge 0x413c79
lea eax, [ebp - 0x20]
call fcn.004132e1
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x24]
and eax, 0x3f
mov dl, byte [eax + 0xe3b5e0]
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi + 4], dl
mov edx, 1
mov eax, esi
call fcn.004132c4
test al, al
jne 0x413b9f
mov esi, dword [ebp - 0x24]
jmp 0x4133dc
cmp dword [ebp - 0x54], 2
jne 0x413cfc
jmp 0x4136bc
test edi, edi
js 0x413b74
cmp ebx, edi
jle 0x413b74
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x34]
mov edx, 1
movzx ebx, byte [eax + edi]
mov eax, edi
call fcn.004132c4
test al, al
jne 0x413b9f
mov eax, dword [ebp - 0x20]
test esi, esi
js 0x413c79
cmp esi, eax
jge 0x413c79
shl ebx, 0x10
lea eax, [ebp - 0x20]
call fcn.004132e1
mov eax, ebx
lea ecx, [ebp - 0x30]
shr eax, 0x12
mov dl, byte [eax + 0xe3b5e0]
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi + 4], dl
mov edx, 1
mov eax, esi
call fcn.004132c4
test al, al
jne 0x413b9f
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
test esi, esi
js 0x413c79
cmp esi, eax
jge 0x413c79
shr ebx, 0xc
lea eax, [ebp - 0x20]
call fcn.004132e1
and ebx, 0x3f
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
mov dl, byte [ebx + 0xe3b5e0]
mov byte [eax + esi + 4], dl
mov edx, 1
mov eax, esi
call fcn.004132c4
test al, al
jne 0x413b9f
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
test ebx, ebx
js 0x413cc3
cmp ebx, eax
jge 0x413cc3
lea eax, [ebp - 0x20]
call fcn.004132e1
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
mov edx, 1
mov byte [eax + ebx + 4], 0x3d
mov eax, ebx
jmp 0x413ca8
test edi, edi
js 0x413b74
cmp ebx, edi
jle 0x413b74
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x38]
mov edx, 1
mov al, byte [eax + edi]
mov byte [ebp - 0x50], al
mov eax, edi
call fcn.004132c4
test al, al
jne 0x413b9f
mov eax, dword [ebp - 0x38]
test eax, eax
js 0x4138ee
cmp ebx, eax
jle 0x4138ee
mov edi, dword [ebp - 0x4c]
lea ecx, [ebp - 0x34]
mov edx, 1
movzx ebx, byte [edi + eax]
call fcn.004132c4
test al, al
jne 0x413b9f
mov eax, dword [ebp - 0x20]
test esi, esi
js 0x413c79
cmp esi, eax
jge 0x413c79
movzx eax, byte [ebp - 0x50]
shl ebx, 8
shl eax, 0x10
or ebx, eax
lea eax, [ebp - 0x20]
call fcn.004132e1
mov eax, ebx
lea ecx, [ebp - 0x30]
shr eax, 0x12
mov dl, byte [eax + 0xe3b5e0]
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi + 4], dl
mov edx, 1
mov eax, esi
call fcn.004132c4
test al, al
jne 0x413b9f
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
test esi, esi
js 0x413c79
cmp eax, esi
jle 0x413c79
lea eax, [ebp - 0x20]
call fcn.004132e1
mov eax, ebx
lea ecx, [ebp - 0x2c]
shr eax, 0xc
and eax, 0x3f
mov dl, byte [eax + 0xe3b5e0]
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi + 4], dl
mov edx, 1
mov eax, esi
call fcn.004132c4
test al, al
jne 0x413b9f
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
test esi, esi
js 0x413c79
cmp esi, eax
jge 0x413c79
shr ebx, 6
lea eax, [ebp - 0x20]
call fcn.004132e1
and ebx, 0x3f
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
mov dl, byte [ebx + 0xe3b5e0]
mov byte [eax + esi + 4], dl
mov edx, 1
mov eax, esi
jmp 0x413b48
fstp st(0)
fstp st(0)
cdq
mov esi, 3
lea ecx, [ebp - 0x40]
idiv esi
mov edx, 6
call fcn.004132c4
test al, al
jne 0x413b9f
mov edx, dword [ebp - 0x40]
test edx, edx
jns 0x413847
mov dword [esp + 0x10], 0x7fffffff
mov eax, edx
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp], edx
jmp 0x413d25
lea ecx, [ebp - 0x20]
call fcn.0040637c
mov eax, ebx
cdq
idiv esi
mov eax, ebx
sub eax, edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x58], eax
xor eax, ebx
xor edx, dword [ebp - 0x58]
not eax
or eax, edx
jns 0x413b9f
xor esi, esi
xor edi, edi
cmp edi, dword [ebp - 0x58]
jne 0x413885
cmp dword [ebp - 0x54], 1
jne 0x413a4c
jmp 0x413a5b
test edi, edi
js 0x413b74
cmp ebx, edi
jle 0x413b74
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x3c]
mov edx, 1
movzx eax, byte [eax + edi]
shl eax, 0x10
mov dword [ebp - 0x50], eax
mov eax, edi
call fcn.004132c4
test al, al
jne 0x413b9f
mov eax, dword [ebp - 0x3c]
test eax, eax
js 0x4138ee
cmp ebx, eax
jle 0x4138ee
mov edi, dword [ebp - 0x4c]
lea ecx, [ebp - 0x38]
mov edx, 1
movzx edi, byte [edi + eax]
shl edi, 8
call fcn.004132c4
test al, al
jne 0x413b9f
mov eax, dword [ebp - 0x38]
test eax, eax
js 0x4138ee
cmp ebx, eax
jg 0x4138fa
lea edx, [ebx - 1]
mov dword [esp + 4], edx
jmp 0x413bb9
mov ecx, dword [ebp - 0x4c]
movzx edx, byte [ecx + eax]
lea ecx, [ebp - 0x34]
or edx, edi
or edx, dword [ebp - 0x50]
mov dword [ebp - 0x50], edx
mov edx, 1
call fcn.004132c4
test al, al
jne 0x413b9f
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x20]
test esi, esi
js 0x413c79
cmp esi, eax
jge 0x413c79
lea eax, [ebp - 0x20]
call fcn.004132e1
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x30]
shr eax, 0x12
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi + 4], dl
mov edx, 1
mov eax, esi
call fcn.004132c4
test al, al
jne 0x413b9f
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
test esi, esi
js 0x413c79
cmp esi, eax
jge 0x413c79
lea eax, [ebp - 0x20]
call fcn.004132e1
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x2c]
shr eax, 0xc
and eax, 0x3f
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi + 4], dl
mov edx, 1
mov eax, esi
call fcn.004132c4
test al, al
jne 0x413b9f
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
test esi, esi
js 0x413c79
cmp esi, eax
jge 0x413c79
lea eax, [ebp - 0x20]
call fcn.004132e1
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x28]
shr eax, 6
and eax, 0x3f
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi + 4], dl
mov edx, 1
mov eax, esi
call fcn.004132c4
test al, al
jne 0x413b9f
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
test esi, esi
js 0x413c79
cmp esi, eax
jge 0x413c79
lea eax, [ebp - 0x20]
call fcn.004132e1
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x24]
and eax, 0x3f
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi + 4], dl
mov edx, 1
mov eax, esi
call fcn.004132c4
test al, al
jne 0x413b9f
mov esi, dword [ebp - 0x24]
jmp 0x413871
cmp dword [ebp - 0x54], 2
jne 0x413cfc
jmp 0x413b6c
test edi, edi
js 0x413b74
cmp ebx, edi
jle 0x413b74
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x34]
mov edx, 1
movzx ebx, byte [eax + edi]
mov eax, edi
call fcn.004132c4
test al, al
jne 0x413b9f
mov eax, dword [ebp - 0x20]
test esi, esi
js 0x413c79
cmp eax, esi
jle 0x413c79
shl ebx, 0x10
lea eax, [ebp - 0x20]
call fcn.004132e1
mov eax, ebx
lea ecx, [ebp - 0x30]
shr eax, 0x12
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi + 4], dl
mov edx, 1
mov eax, esi
call fcn.004132c4
test al, al
jne 0x413b9f
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
test esi, esi
js 0x413c79
cmp esi, eax
jge 0x413c79
shr ebx, 0xc
lea eax, [ebp - 0x20]
call fcn.004132e1
and ebx, 0x3f
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
mov dl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [eax + esi + 4], dl
mov edx, 1
mov eax, esi
call fcn.004132c4
test al, al
jne 0x413b9f
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
test ebx, ebx
js 0x413cc3
cmp ebx, eax
jge 0x413cc3
lea eax, [ebp - 0x20]
call fcn.004132e1
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
mov edx, 1
mov byte [eax + ebx + 4], 0x3d
mov eax, ebx
call fcn.004132c4
test al, al
jne 0x413b9f
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
test ebx, ebx
js 0x413cc3
cmp ebx, eax
jge 0x413cc3
jmp 0x413cd2
test edi, edi
js 0x413b74
cmp ebx, edi
jg 0x413b83
lea eax, [ebx - 1]
mov dword [esp], edi
mov dword [esp + 4], eax
jmp 0x413ccb
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x38]
mov edx, 1
mov al, byte [eax + edi]
mov byte [ebp - 0x50], al
mov eax, edi
call fcn.004132c4
test al, al
je 0x413ba9
call fcn.00404f18
jmp 0x413d3d
mov eax, dword [ebp - 0x38]
test eax, eax
js 0x413bb4
cmp ebx, eax
jg 0x413bc1
dec ebx
mov dword [esp + 4], ebx
mov dword [esp], eax
jmp 0x413ccb
mov edi, dword [ebp - 0x4c]
lea ecx, [ebp - 0x34]
mov edx, 1
movzx ebx, byte [edi + eax]
call fcn.004132c4
test al, al
jne 0x413b9f
mov eax, dword [ebp - 0x20]
test esi, esi
js 0x413c79
cmp eax, esi
jle 0x413c79
movzx eax, byte [ebp - 0x50]
shl ebx, 8
shl eax, 0x10
or ebx, eax
lea eax, [ebp - 0x20]
call fcn.004132e1
mov eax, ebx
lea ecx, [ebp - 0x30]
shr eax, 0x12
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi + 4], dl
mov edx, 1
mov eax, esi
call fcn.004132c4
test al, al
jne 0x413b9f
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
test esi, esi
js 0x413c79
cmp esi, eax
jge 0x413c79
lea eax, [ebp - 0x20]
call fcn.004132e1
mov eax, ebx
lea ecx, [ebp - 0x2c]
shr eax, 0xc
and eax, 0x3f
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi + 4], dl
mov edx, 1
mov eax, esi
call fcn.004132c4
test al, al
jne 0x413b9f
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
test esi, esi
js 0x413c79
cmp eax, esi
jg 0x413c83
dec eax
mov dword [esp], esi
mov dword [esp + 4], eax
jmp 0x413ccb
shr ebx, 6
lea eax, [ebp - 0x20]
call fcn.004132e1
and ebx, 0x3f
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
mov dl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [eax + esi + 4], dl
mov edx, 1
mov eax, esi
call fcn.004132c4
test al, al
jne 0x413b9f
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
test ebx, ebx
js 0x413cc3
cmp eax, ebx
jg 0x413cd2
dec eax
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00406bbc
jmp 0x413d3d
lea eax, [ebp - 0x20]
call fcn.004132e1
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x24]
mov edx, 1
mov byte [eax + ebx + 4], 0x3d
mov eax, ebx
call fcn.004132c4
test al, al
jne 0x413b9f
mov esi, dword [ebp - 0x24]
test esi, esi
jns 0x413d33
mov dword [esp + 0x10], 0x7fffffff
mov eax, esi
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp], esi
sar eax, 0x1f
mov dword [esp + 4], eax
call fcn.00405686
jmp 0x413d3d
mov edx, esi
lea ecx, [ebp - 0x20]
call fcn.0040637c
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret 4