Function at 0x570a12
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [0xd80dfc]
sub esp, 0x10
mov ecx, dword [eax + 0x22c]
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp ecx, esi
jne 0x570fb6
mov edi, dword [eax + 0x20]
inc edi
mov dword [eax + 0x20], edi
mov eax, dword [0xd80dfc]
mov ecx, dword [eax + 0x20]
cmp ecx, 0x18
jge 0x570a61
mov dword [eax + ecx*4 + 0x24], 0x4b
mov eax, dword [0xd80dfc]
cmp dword [eax + 0x244], esi
je 0x570a61
call fcn.0056e722
mov eax, dword [0xd80dfc]
mov ecx, dword [eax + 8]
cmp ecx, esi
je 0x570fa4
cmp ecx, 0x100
ja 0x570fa4
cmp dword [eax + 0x90], esi
jne 0x570a87
push 0x12
jmp 0x570fa6
mov edi, dword [esp + 0x24]
xor ebp, ebp
push edi
mov dword [esp + 0x18], ebp
call fcn.0056f142
push edi
push 1
mov dword [esp + 0x28], eax
call fcn.0056f162
mov ebx, dword [edi]
mov eax, dword [0xd80dfc]
add esp, 0xc
cmp ebx, esi
mov ecx, 0x3c
jne 0x570b0e
cmp dword [eax + 8], ecx
ja 0x570b0e
cmp dword [eax + 0x88], esi
jne 0x570ad0
mov eax, dword [esp + 0x28]
mov byte [eax], 0x30
mov byte [eax + 1], 0
jmp 0x570af5
mov eax, dword [eax + 0x98]
push eax
push 0x30
call fcn.0057436a
mov ecx, dword [0xd80dfc]
mov edx, dword [ecx + 0x98]
push edx
push 0xa
call fcn.0057436a
add esp, 0x10
mov eax, dword [0xd80dfc]
pop edi
pop esi
pop ebp
mov ecx, dword [eax + 0x20]
pop ebx
dec ecx
mov dword [eax + 0x20], ecx
mov eax, 1
add esp, 0x10
ret
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], esi
cmp edx, 0xffffffff
jne 0x570b50
cmp dword [eax + 8], ecx
ja 0x570b50
cmp dword [eax + 0x88], esi
jne 0x570b31
mov eax, dword [esp + 0x28]
mov byte [eax], 0x2d
jmp 0x570b42
mov ecx, dword [eax + 0x98]
push ecx
push 0x2d
call fcn.0057436a
add esp, 8
mov eax, dword [0xd80dfc]
mov ebp, 1
mov dword [esp + 0x14], ebp
mov edx, dword [eax + 0x1ec]
mov dword [esp + 0x18], esi
push edx
push edi
call fcn.0056f832
mov eax, dword [0xd80dfc]
add esp, 8
cmp dword [eax + 0x240], esi
je 0x570cba
mov eax, dword [eax + 0x1e8]
push eax
push edi
call fcn.0056f932
mov ecx, dword [0xd80dfc]
mov edx, dword [ecx + 0x1e8]
push edx
call fcn.0056f5d2
add esp, 0xc
cmp eax, 1
jle 0x570cb5
mov edi, ebx
and edi, 0xffff
shr ebx, 0x10
cmp edi, esi
jne 0x570bb4
mov edi, 1
mov eax, dword [0xd80dfc]
cmp ebx, edi
mov ecx, dword [eax + 0x84]
mov dword [eax + 0x84], esi
mov dword [esp + 0x10], ecx
jge 0x570bea
mov edx, dword [0xd80dfc]
mov ecx, edi
sub ecx, ebx
mov eax, dword [edx + 0x1e8]
push eax
push ecx
push eax
call fcn.0056f462
add esp, 0xc
cmp ebx, edi
jle 0x570c07
mov edx, dword [0xd80dfc]
mov ecx, ebx
sub ecx, edi
mov eax, dword [edx + 0x1ec]
push eax
push ecx
push eax
call fcn.0056f462
add esp, 0xc
mov eax, dword [0xd80dfc]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x1e8]
mov eax, dword [eax + 0x1ec]
push edx
push eax
call fcn.0056f612
add esp, 8
test eax, eax
jl 0x570c2a
dec esi
mov eax, dword [0xd80dfc]
mov ecx, dword [eax + 0x1d4]
mov edx, dword [eax + 0x1ec]
push ecx
push edx
call fcn.0056f392
mov eax, dword [0xd80dfc]
add esp, 8
mov ecx, dword [eax + 0x1d4]
mov eax, dword [eax + 0x1c]
shl eax, 1
mov edx, dword [ecx]
lea ebp, [edx + esi]
cmp ebp, eax
jle 0x570c62
sub eax, edx
mov esi, eax
push ecx
push esi
push ecx
call fcn.0056f462
mov eax, dword [0xd80dfc]
mov ecx, dword [eax + 0x1ec]
mov edx, dword [eax + 0x1e8]
mov eax, dword [eax + 0x1d4]
push ecx
push edx
push eax
call fcn.00572282
mov ecx, dword [0xd80dfc]
mov edx, dword [esp + 0x28]
sub esi, edi
mov ebp, dword [esp + 0x2c]
mov dword [ecx + 0x84], edx
mov eax, dword [0xd80dfc]
add esi, ebx
add esp, 0x18
imul esi, dword [eax + 0xc]
mov dword [esp + 0x10], esi
xor esi, esi
jmp 0x570cba
mov eax, dword [0xd80dfc]
mov eax, dword [eax + 0x1ec]
mov edi, dword [esp + 0x10]
push eax
call fcn.0056f232
add esp, 4
cmp edi, eax
mov dword [esp + 0x14], eax
jle 0x570cd7
mov eax, edi
cmp eax, esi
mov edi, eax
jle 0x570e3c
mov ecx, dword [0xd80dfc]
mov eax, dword [ecx + 0x88]
cmp eax, esi
jne 0x570d10
mov edx, dword [esp + 0x28]
mov ebx, dword [ecx + 0x24c]
cmp edx, ebx
jne 0x570d10
mov edx, dword [ecx + 0x224]
sub edx, 5
cmp ebp, edx
jge 0x570ed6
cmp edi, dword [esp + 0x10]
jne 0x570d42
cmp dword [ecx + 8], 0x3c
ja 0x570d42
cmp eax, esi
jne 0x570d2a
mov eax, dword [esp + 0x28]
mov byte [eax + ebp], 0x2e
jmp 0x570d3b
mov ecx, dword [ecx + 0x98]
push ecx
push 0x2e
call fcn.0057436a
add esp, 8
mov ecx, dword [0xd80dfc]
inc ebp
cmp edi, dword [esp + 0x14]
jle 0x570d52
mov ebx, 0x30
jmp 0x570de1
mov edx, dword [ecx + 0x1ec]
push edi
push edx
call fcn.0056f1d2
mov ebx, eax
mov eax, dword [0xd80dfc]
push edi
mov dword [eax + 0x84], esi
mov ecx, dword [0xd80dfc]
mov edx, dword [ecx + 0x1ec]
push edx
push esi
call fcn.0056f282
mov ecx, dword [0xd80dfc]
add esp, 0x14
mov eax, dword [ecx + 8]
cmp eax, 0x3c
ja 0x570da4
add ebx, 0x30
cmp ebx, 0x3a
jl 0x570d9c
add ebx, 7
cmp ebx, 0x5b
jl 0x570da4
add ebx, 6
cmp eax, 0x40
jne 0x570de1
cmp ebx, 0x1a
jge 0x570db6
add ebx, 0x41
cmp ebx, 0x1a
jl 0x570dbe
cmp ebx, 0x34
jge 0x570dc3
add ebx, 0x47
cmp ebx, 0x34
jl 0x570dcb
cmp ebx, 0x3e
jge 0x570dce
sub ebx, 4
cmp ebx, 0x3e
jne 0x570dd7
mov ebx, 0x2b
jmp 0x570de1
cmp ebx, 0x3f
jne 0x570de1
mov ebx, 0x2f
cmp edi, dword [esp + 0x10]
jge 0x570e0b
cmp dword [ecx + 8], 0x3c
ja 0x570e0b
cmp ebx, 0x30
jne 0x570e0b
mov eax, dword [ecx + 0x1ec]
push eax
call fcn.0056f5d2
add esp, 4
test eax, eax
je 0x570e3c
mov ecx, dword [0xd80dfc]
cmp dword [ecx + 0x88], esi
jne 0x570e1c
mov ecx, dword [esp + 0x28]
mov byte [ecx + ebp], bl
jmp 0x570e32
mov edx, dword [ecx + 0x98]
and ebx, 0xff
push edx
push ebx
call fcn.0057436a
add esp, 8
inc ebp
dec edi
cmp edi, esi
jg 0x570ce1
cmp dword [esp + 0x18], esi
jne 0x570ef6
mov ecx, dword [0xd80dfc]
cmp dword [ecx + 0x240], esi
jne 0x570efc
mov eax, dword [ecx + 0x1ec]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call fcn.0056f932
mov edx, dword [0xd80dfc]
mov eax, dword [edx + 0x1ec]
push eax
call fcn.0056f5d2
add esp, 0xc
cmp eax, 1
je 0x570ef6
mov eax, dword [0xd80dfc]
cmp dword [eax + 8], 0x3c
ja 0x570ec9
cmp dword [eax + 0x88], esi
jne 0x570eb2
mov ecx, dword [esp + 0x28]
inc ebp
mov dword [esp + 0x18], 1
mov byte [ecx + ebp - 1], 0x2f
mov eax, dword [0xd80dfc]
jmp 0x570cba
mov edx, dword [eax + 0x98]
push edx
push 0x2f
call fcn.0057436a
mov eax, dword [0xd80dfc]
add esp, 8
inc ebp
mov dword [esp + 0x18], 1
jmp 0x570cba
push 0x11
call fcn.0056e4b2
mov eax, dword [0xd80dfc]
add esp, 4
mov ecx, dword [eax + 0x20]
pop edi
dec ecx
pop esi
mov dword [eax + 0x20], ecx
mov eax, ebp
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, dword [0xd80dfc]
cmp dword [ecx + 8], 0x40
jne 0x570f4a
mov eax, ebp
mov esi, 3
cdq
idiv esi
test edx, edx
je 0x570f4a
mov esi, dword [esp + 0x28]
mov eax, dword [ecx + 0x88]
test eax, eax
jne 0x570f24
mov byte [esi + ebp], 0x3d
jmp 0x570f35
mov eax, dword [ecx + 0x98]
push eax
push 0x3d
call fcn.0057436a
add esp, 8
inc ebp
mov ecx, 3
mov eax, ebp
cdq
idiv ecx
mov ecx, dword [0xd80dfc]
test edx, edx
jne 0x570f14
mov eax, dword [ecx + 0x88]
test eax, eax
jne 0x570f5e
mov edx, dword [esp + 0x28]
mov byte [edx + ebp], 0
jmp 0x570f7c
mov eax, dword [ecx + 8]
cmp eax, 0x3c
jbe 0x570f6b
cmp eax, 0x40
jne 0x570f7c
mov eax, dword [ecx + 0x98]
push eax
push 0xa
call fcn.0057436a
add esp, 8
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call fcn.0056f162
mov eax, dword [0xd80dfc]
add esp, 8
mov ecx, dword [eax + 0x20]
pop edi
dec ecx
pop esi
mov dword [eax + 0x20], ecx
mov eax, ebp
pop ebp
pop ebx
add esp, 0x10
ret
push 1
call fcn.0056e4b2
mov eax, dword [0xd80dfc]
add esp, 4
dec dword [eax + 0x20]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret