Function at 0x5b7b90
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5b81b0
sub esp, 0x44
movzx eax, byte [esp + 0x48]
cmp al, 0x13
ja 0x5b7c90
cmp al, 0xc
je 0x5b7be8
cmp al, 0x12
jne 0x5b7bd0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
xor edx, edx
jmp 0x5b811e
cmp al, 0x13
jne 0x5b7d5c
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
xor edx, edx
jmp 0x5b8046
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov ecx, dword [esp + 0x50]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x54]
mov dword [esp + 8], edx
call fcn.0048f440
movzx eax, byte [esp + 0xc]
test al, al
je 0x5b7c4d
mov dword [esp], 0
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 8], eax
call fcn.0044e9d0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
add esp, 0x44
ret
lea eax, [0x676c40]
mov dword [esp], eax
call fcn.0040bcc0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x14
lea ecx, [0x6ae33b]
mov dword [eax], ecx
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
lea ecx, [0x7105e8]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
add esp, 0x44
ret
cmp al, 0x14
je 0x5b7e08
cmp al, 0x16
je 0x5b7dd8
cmp al, 0x1e
jne 0x5b7d5c
mov eax, dword [esp + 0x50]
test eax, 1
jne 0x5b7d19
cmp eax, 2
jl 0x5b7cd6
mov ecx, dword [esp + 0x4c]
movzx edx, byte [eax + ecx - 1]
test dl, dl
jne 0x5b7cda
movzx edx, byte [eax + ecx - 2]
test dl, dl
jne 0x5b7cda
add eax, 0xfffffffe
jmp 0x5b7cda
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x30], eax
lea ecx, [0x66c380]
mov dword [esp], ecx
mov dword [esp + 4], 0
shr eax, 1
mov dword [esp + 0x28], eax
mov dword [esp + 8], eax
call fcn.0044ab50
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x30]
xor esi, esi
jmp 0x5b7f72
lea eax, [0x676c40]
mov dword [esp], eax
call fcn.0040bcc0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x11
lea ecx, [0x6ac3cc]
mov dword [eax], ecx
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
lea ecx, [0x7105e8]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
add esp, 0x44
ret
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
lea ecx, [0x678980]
mov dword [esp + 0x3c], ecx
movzx eax, al
lea ecx, [0x8a4920]
lea eax, [ecx + eax*8]
mov dword [esp + 0x40], eax
lea eax, [0x6b29c7]
mov dword [esp], eax
mov dword [esp + 4], 0x1b
lea eax, [esp + 0x3c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004cac10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
add esp, 0x44
ret
mov dword [esp], 0
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 8], eax
call fcn.0044e9d0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], ecx
xor edx, edx
jmp 0x5b7e48
mov dword [esp], 0
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 8], eax
call fcn.0044e9d0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
add esp, 0x44
ret
cmp edx, ecx
jge 0x5b7ef0
movzx ebx, byte [eax + edx]
cmp ebx, 0x80
jge 0x5b7e5f
inc edx
jmp 0x5b7e7f
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.0045ccd0
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
cmp ebx, 0x7f
jle 0x5b7e48
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00409600
mov eax, dword [esp + 8]
lea ecx, [0x66c280]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
lea eax, [0x6b8f88]
mov dword [esp], eax
mov dword [esp + 4], 0x2a
lea eax, [esp + 0x3c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004cac10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov edx, eax
mov eax, dword [esp + 0x34]
jmp 0x5b7ef2
xor edx, edx
test edx, edx
je 0x5b7f39
lea eax, [0x676c40]
mov dword [esp], eax
call fcn.0040bcc0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x11
lea ecx, [0x6ac3dd]
mov dword [eax], ecx
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
lea ecx, [0x7105e8]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
add esp, 0x44
ret
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
add esp, 0x44
ret
mov word [eax + esi*2 - 2], bp
add edx, 0xfffffffe
mov edi, edx
neg edx
sar edx, 0x1f
and edx, 2
add ebx, edx
mov edx, edi
mov edi, dword [esp + 0x30]
lea ebp, [edi - 2]
test ebp, ebp
je 0x5b7fe1
movzx edi, byte [ebx]
cmp ebp, 1
jbe 0x5b8039
mov dword [esp + 0x30], ebp
inc esi
shl edi, 8
movzx ebp, byte [ebx + 1]
add ebp, edi
cmp ecx, esi
jae 0x5b7f55
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], ebx
mov word [esp + 0x22], bp
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x66c380]
mov dword [esp + 0x10], eax
call fcn.0044acd0
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x38]
movzx ebp, word [esp + 0x22]
jmp 0x5b7f55
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
call fcn.0046ece0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call fcn.0044ed80
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
add esp, 0x44
ret
mov eax, 1
mov ecx, eax
call fcn.00463b30
inc edx
cmp eax, edx
jle 0x5b80e5
movzx ebx, byte [edx + ecx]
lea ebp, [ebx - 0x61]
xchg ebp, eax
cmp al, 0x19
xchg ebp, eax
jbe 0x5b8045
lea ebp, [ebx - 0x41]
xchg ebp, eax
cmp al, 0x19
xchg ebp, eax
jbe 0x5b8045
lea ebp, [ebx - 0x30]
xchg ebp, eax
cmp al, 9
xchg ebp, eax
jbe 0x5b8045
lea ebp, [ebx - 0x27]
xchg ebp, eax
cmp al, 2
xchg ebp, eax
jbe 0x5b8045
lea ebp, [ebx - 0x2b]
xchg ebp, eax
cmp al, 4
xchg ebp, eax
jbe 0x5b8045
cmp bl, 0x20
je 0x5b8045
cmp bl, 0x3a
je 0x5b8045
cmp bl, 0x3d
je 0x5b8045
cmp bl, 0x3f
je 0x5b8045
cmp bl, 0x2a
je 0x5b8045
cmp bl, 0x26
je 0x5b8045
lea eax, [0x676c40]
mov dword [esp], eax
call fcn.0040bcc0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x17
lea ecx, [0x6b0149]
mov dword [eax], ecx
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
lea ecx, [0x7105e8]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
add esp, 0x44
ret
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0044e9d0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
add esp, 0x44
ret
inc edx
cmp eax, edx
jle 0x5b8178
movzx ebx, byte [edx + ecx]
lea ebp, [ebx - 0x30]
xchg ebp, eax
cmp al, 9
xchg ebp, eax
jbe 0x5b811d
cmp bl, 0x20
je 0x5b811d
lea eax, [0x676c40]
mov dword [esp], eax
call fcn.0040bcc0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x15
lea ecx, [0x6aec4c]
mov dword [eax], ecx
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
lea ecx, [0x7105e8]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
add esp, 0x44
ret
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0044e9d0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
add esp, 0x44
ret
call fcn.004626a0
jmp fcn.005b7b90