Function at 0x40e7a0
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [0x43278c]
sub esp, 0x10
mov ecx, dword [eax + 0x22c]
push ebx
push ebp
xor ebp, ebp
push esi
cmp ecx, ebp
push edi
jne 0x40ed47
mov esi, dword [eax + 0x1c]
inc esi
mov dword [eax + 0x1c], esi
mov eax, dword [0x43278c]
mov ecx, dword [eax + 0x1c]
cmp ecx, 0x18
jge 0x40e7ef
mov dword [eax + ecx*4 + 0x20], 0x4b
mov eax, dword [0x43278c]
cmp dword [eax + 0x240], ebp
je 0x40e7ef
call fcn.0040b8a0
mov eax, dword [0x43278c]
mov ecx, dword [eax + 4]
cmp ecx, ebp
je 0x40ed35
cmp ecx, 0x100
ja 0x40ed35
cmp dword [eax + 0x8c], ebp
jne 0x40e815
push 0x12
jmp 0x40ed37
mov edi, dword [esp + 0x24]
xor esi, esi
push edi
mov dword [esp + 0x18], esi
call fcn.0040c4b0
push edi
push 1
mov dword [esp + 0x28], eax
call fcn.0040c4d0
mov ebx, dword [edi]
mov eax, dword [0x43278c]
add esp, 0xc
cmp ebx, ebp
mov ecx, 0x3c
jne 0x40e89c
cmp dword [eax + 4], ecx
ja 0x40e89c
cmp dword [eax + 0x84], ebp
jne 0x40e85e
mov eax, dword [esp + 0x28]
mov byte [eax], 0x30
mov byte [eax + 1], 0
jmp 0x40e883
mov eax, dword [eax + 0x94]
push eax
push 0x30
call fcn.00413b69
mov ecx, dword [0x43278c]
mov edx, dword [ecx + 0x94]
push edx
push 0xa
call fcn.00413b69
add esp, 0x10
mov eax, dword [0x43278c]
pop edi
pop esi
pop ebp
mov ecx, dword [eax + 0x1c]
pop ebx
dec ecx
mov dword [eax + 0x1c], ecx
mov eax, 1
add esp, 0x10
ret
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], ebp
cmp edx, 0xffffffff
jne 0x40e8de
cmp dword [eax + 4], ecx
ja 0x40e8de
cmp dword [eax + 0x84], ebp
jne 0x40e8bf
mov eax, dword [esp + 0x28]
mov byte [eax], 0x2d
jmp 0x40e8d0
mov ecx, dword [eax + 0x94]
push ecx
push 0x2d
call fcn.00413b69
add esp, 8
mov eax, dword [0x43278c]
mov esi, 1
mov dword [esp + 0x14], esi
mov edx, dword [eax + 0x1ec]
mov dword [esp + 0x18], ebp
push edx
push edi
call fcn.0040cba0
mov eax, dword [0x43278c]
add esp, 8
cmp dword [eax + 0x23c], ebp
je 0x40ea3d
mov eax, dword [eax + 0x1e8]
push eax
push edi
call fcn.0040cca0
mov ecx, dword [0x43278c]
mov edx, dword [ecx + 0x1e8]
push edx
call fcn.0040c940
add esp, 0xc
cmp eax, 1
jle 0x40ea38
mov edi, ebx
and edi, 0xffff
shr ebx, 0x10
cmp edi, ebp
jne 0x40e942
mov edi, 1
mov eax, dword [0x43278c]
cmp ebx, edi
mov dword [eax + 0x80], ebp
jge 0x40e96e
mov ecx, dword [0x43278c]
mov edx, edi
sub edx, ebx
mov eax, dword [ecx + 0x1e8]
push eax
push edx
push eax
call fcn.0040c7d0
add esp, 0xc
cmp ebx, edi
jle 0x40e98a
mov eax, dword [0x43278c]
mov ecx, ebx
sub ecx, edi
mov eax, dword [eax + 0x1ec]
push eax
push ecx
push eax
call fcn.0040c7d0
add esp, 0xc
mov eax, dword [0x43278c]
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1e8]
mov eax, dword [eax + 0x1ec]
push edx
push eax
call fcn.0040c980
add esp, 8
test eax, eax
jl 0x40e9ad
dec esi
mov eax, dword [0x43278c]
mov ecx, dword [eax + 0x1d4]
mov edx, dword [eax + 0x1ec]
push ecx
push edx
call fcn.0040c700
mov eax, dword [0x43278c]
add esp, 8
mov ecx, dword [eax + 0x1d4]
mov eax, dword [eax + 0x18]
shl eax, 1
mov edx, dword [ecx]
lea ebp, [edx + esi]
cmp ebp, eax
jle 0x40e9e5
sub eax, edx
mov esi, eax
push ecx
push esi
push ecx
call fcn.0040c7d0
mov eax, dword [0x43278c]
mov ecx, dword [eax + 0x1ec]
mov edx, dword [eax + 0x1e8]
mov eax, dword [eax + 0x1d4]
push ecx
push edx
push eax
call fcn.0040faf0
mov ecx, dword [0x43278c]
sub esi, edi
add esi, ebx
add esp, 0x18
mov dword [ecx + 0x80], 1
mov eax, dword [0x43278c]
imul esi, dword [eax + 8]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x14]
xor ebp, ebp
jmp 0x40ea3d
mov eax, dword [0x43278c]
mov edx, dword [eax + 0x1ec]
mov edi, dword [esp + 0x10]
push edx
call fcn.0040c5a0
add esp, 4
cmp edi, eax
mov dword [esp + 0x14], eax
jle 0x40ea5a
mov eax, edi
cmp eax, ebp
mov edi, eax
jle 0x40ebce
mov ecx, dword [0x43278c]
mov eax, dword [ecx + 0x84]
cmp eax, ebp
jne 0x40ea93
mov edx, dword [esp + 0x28]
mov ebx, dword [ecx + 0x220]
cmp edx, ebx
jne 0x40ea93
mov edx, dword [ecx + 0x224]
sub edx, 5
cmp esi, edx
jge 0x40ec67
cmp edi, dword [esp + 0x10]
jne 0x40eac5
cmp dword [ecx + 4], 0x3c
ja 0x40eac5
cmp eax, ebp
jne 0x40eaad
mov eax, dword [esp + 0x28]
mov byte [esi + eax], 0x2e
jmp 0x40eabe
mov ecx, dword [ecx + 0x94]
push ecx
push 0x2e
call fcn.00413b69
add esp, 8
mov ecx, dword [0x43278c]
inc esi
cmp edi, dword [esp + 0x14]
jle 0x40ead5
mov ebx, 0x30
jmp 0x40eb73
mov edx, dword [ecx + 0x1ec]
push edi
push edx
call fcn.0040c540
mov ebx, eax
mov eax, dword [0x43278c]
push edi
mov dword [eax + 0x80], ebp
mov ecx, dword [0x43278c]
mov edx, dword [ecx + 0x1ec]
push edx
push ebp
call fcn.0040c5f0
mov eax, dword [0x43278c]
add esp, 0x14
mov dword [eax + 0x80], 1
mov ecx, dword [0x43278c]
mov eax, dword [ecx + 4]
cmp eax, 0x3c
ja 0x40eb36
add ebx, 0x30
cmp ebx, 0x3a
jl 0x40eb2e
add ebx, 7
cmp ebx, 0x5b
jl 0x40eb36
add ebx, 6
cmp eax, 0x40
jne 0x40eb73
cmp ebx, 0x1a
jge 0x40eb48
add ebx, 0x41
cmp ebx, 0x1a
jl 0x40eb50
cmp ebx, 0x34
jge 0x40eb55
add ebx, 0x47
cmp ebx, 0x34
jl 0x40eb5d
cmp ebx, 0x3e
jge 0x40eb60
sub ebx, 4
cmp ebx, 0x3e
jne 0x40eb69
mov ebx, 0x2b
jmp 0x40eb73
cmp ebx, 0x3f
jne 0x40eb73
mov ebx, 0x2f
cmp edi, dword [esp + 0x10]
jge 0x40eb9d
cmp dword [ecx + 4], 0x3c
ja 0x40eb9d
cmp ebx, 0x30
jne 0x40eb9d
mov ecx, dword [ecx + 0x1ec]
push ecx
call fcn.0040c940
add esp, 4
test eax, eax
je 0x40ebce
mov ecx, dword [0x43278c]
cmp dword [ecx + 0x84], ebp
jne 0x40ebae
mov edx, dword [esp + 0x28]
mov byte [esi + edx], bl
jmp 0x40ebc4
mov eax, dword [ecx + 0x94]
and ebx, 0xff
push eax
push ebx
call fcn.00413b69
add esp, 8
inc esi
dec edi
cmp edi, ebp
jg 0x40ea64
cmp dword [esp + 0x18], ebp
jne 0x40ec87
mov ecx, dword [0x43278c]
cmp dword [ecx + 0x23c], ebp
jne 0x40ec8d
mov ecx, dword [ecx + 0x1ec]
mov edx, dword [esp + 0x24]
push ecx
push edx
call fcn.0040cca0
mov eax, dword [0x43278c]
mov ecx, dword [eax + 0x1ec]
push ecx
call fcn.0040c940
add esp, 0xc
cmp eax, 1
je 0x40ec87
mov eax, dword [0x43278c]
cmp dword [eax + 4], 0x3c
ja 0x40ec5a
cmp dword [eax + 0x84], ebp
jne 0x40ec43
mov edx, dword [esp + 0x28]
inc esi
mov dword [esp + 0x18], 1
mov byte [esi + edx - 1], 0x2f
mov eax, dword [0x43278c]
jmp 0x40ea3d
mov eax, dword [eax + 0x94]
push eax
push 0x2f
call fcn.00413b69
mov eax, dword [0x43278c]
add esp, 8
inc esi
mov dword [esp + 0x18], 1
jmp 0x40ea3d
push 0x11
call fcn.0040b630
mov eax, dword [0x43278c]
add esp, 4
mov ecx, dword [eax + 0x1c]
pop edi
dec ecx
mov dword [eax + 0x1c], ecx
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, dword [0x43278c]
cmp dword [ecx + 4], 0x40
jne 0x40ecdb
mov eax, esi
mov edi, 3
cdq
idiv edi
test edx, edx
je 0x40ecdb
mov edi, dword [esp + 0x28]
mov eax, dword [ecx + 0x84]
test eax, eax
jne 0x40ecb5
mov byte [esi + edi], 0x3d
jmp 0x40ecc6
mov ecx, dword [ecx + 0x94]
push ecx
push 0x3d
call fcn.00413b69
add esp, 8
inc esi
mov ecx, 3
mov eax, esi
cdq
idiv ecx
mov ecx, dword [0x43278c]
test edx, edx
jne 0x40eca5
mov eax, dword [ecx + 0x84]
test eax, eax
jne 0x40ecef
mov edx, dword [esp + 0x28]
mov byte [esi + edx], 0
jmp 0x40ed0d
mov eax, dword [ecx + 4]
cmp eax, 0x3c
jbe 0x40ecfc
cmp eax, 0x40
jne 0x40ed0d
mov eax, dword [ecx + 0x94]
push eax
push 0xa
call fcn.00413b69
add esp, 8
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call fcn.0040c4d0
mov eax, dword [0x43278c]
add esp, 8
mov ecx, dword [eax + 0x1c]
pop edi
dec ecx
mov dword [eax + 0x1c], ecx
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 1
call fcn.0040b630
mov eax, dword [0x43278c]
add esp, 4
dec dword [eax + 0x1c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret