Function at 0x5b1330
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
test eax, eax
je 0x5b1568
mov eax, dword [0x67d88c]
mov ecx, dword [eax + 0x38]
mov al, byte [ecx + 4]
cmp al, 5
push edi
jne 0x5b13bc
cmp dword [esi + 0x1c], 0x15
jne 0x5b13bc
mov eax, dword [ecx + 0x150]
mov ecx, dword [ecx + 0x154]
mov edx, dword [0x652ec0]
mov edi, dword [0x652ec4]
and eax, edx
push 1
and ecx, edi
or eax, ecx
mov ecx, dword [0x67d8ac]
mov eax, dword [ecx + 0x40]
mov edx, dword [eax + 0x2c]
mov ecx, dword [esi + 0x20]
push 0
push edx
mov edx, dword [eax + 0x28]
push edx
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x30]
push edx
mov edx, dword [esi + 0xc]
push edx
mov edx, dword [esi + 8]
push edx
mov edx, dword [ecx + 0x34]
push eax
mov eax, dword [ecx + 0x30]
push edx
push eax
push 0
push 0
je 0x5b1348
push 0xa
push 0
call fcn.00476060
mov edx, dword [esi + 4]
cmp edx, 0xa
je 0x5b1320
mov ecx, dword [0x67d8ac]
mov eax, dword [ecx + 0x40]
mov edi, dword [eax + 0x2c]
mov ecx, dword [esi + 0x20]
push 1
push 0
push edi
mov edi, dword [eax + 0x28]
push edi
mov edi, dword [eax + 0x24]
mov eax, dword [eax + 0x30]
push edi
mov edi, dword [esi + 0xc]
push edi
mov edi, dword [esi + 8]
push edi
push eax
mov eax, dword [ecx + 0x34]
push eax
mov eax, dword [ecx + 0x30]
push eax
push 0
push 0
push edx
push 0
call fcn.00476060
cmp dword [ebp + 8], 1
jne 0x5b14ed
mov ecx, dword [esi + 4]
inc ecx
mov eax, ecx
cmp eax, 0x14
mov dword [esi + 4], ecx
jne 0x5b14ed
mov dword [esi + 4], 0xa
jmp 0x5b14ed
push 0
push 0
call fcn.00476060
mov edx, dword [esi + 4]
test edx, edx
je 0x5b1394
mov ecx, dword [0x67d8ac]
mov eax, dword [ecx + 0x40]
mov edi, dword [eax + 0x2c]
mov ecx, dword [esi + 0x20]
push 1
push 0
push edi
mov edi, dword [eax + 0x28]
push edi
mov edi, dword [eax + 0x24]
mov eax, dword [eax + 0x30]
push edi
mov edi, dword [esi + 0xc]
push edi
mov edi, dword [esi + 8]
push edi
push eax
mov eax, dword [ecx + 0x34]
push eax
mov eax, dword [ecx + 0x30]
push eax
push 0
push 0
push edx
push 0
call fcn.00476060
cmp dword [ebp + 8], 1
jne 0x5b14ed
mov ecx, dword [esi + 4]
inc ecx
mov eax, ecx
cmp eax, 0xa
mov dword [esi + 4], ecx
jne 0x5b14ed
mov dword [esi + 4], 0
jmp 0x5b14ed
test al, al
jne 0x5b13fd
mov eax, dword [esi + 0x1c]
cmp eax, 6
je 0x5b13cd
cmp eax, 0x14
jne 0x5b13fd
mov eax, dword [ecx + 0x158]
mov edx, dword [0x652ee0]
mov ecx, dword [ecx + 0x15c]
mov edi, dword [0x652ee4]
and eax, edx
and ecx, edi
or eax, ecx
je 0x5b13f6
mov dword [esi + 4], 1
jmp 0x5b13fd
mov dword [esi + 4], 0
mov eax, dword [esi]
cmp eax, 2
jle 0x5b14a6
mov ecx, dword [0x67d8ac]
mov eax, dword [ecx + 0x40]
mov edx, dword [eax + 0x2c]
mov ecx, dword [esi + 0x20]
push 1
push 0
push edx
mov edx, dword [eax + 0x28]
push edx
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x30]
push edx
mov edx, dword [esi + 0xc]
push edx
mov edx, dword [esi + 8]
push edx
mov edx, dword [ecx + 0x34]
push eax
mov eax, dword [ecx + 0x30]
push edx
push eax
push 0
push 0
push 0
push 0
call fcn.00476060
mov edx, dword [esi + 4]
test edx, edx
je 0x5b1488
mov ecx, dword [0x67d8ac]
mov eax, dword [ecx + 0x40]
mov edi, dword [eax + 0x2c]
mov ecx, dword [esi + 0x20]
push 1
push 0
push edi
mov edi, dword [eax + 0x28]
push edi
mov edi, dword [eax + 0x24]
mov eax, dword [eax + 0x30]
push edi
mov edi, dword [esi + 0xc]
push edi
mov edi, dword [esi + 8]
push edi
push eax
mov eax, dword [ecx + 0x34]
push eax
mov eax, dword [ecx + 0x30]
push eax
push 0
push 0
push edx
push 0
call fcn.00476060
cmp dword [ebp + 8], 1
jne 0x5b14ed
mov edx, dword [esi + 4]
mov ecx, dword [esi]
inc edx
mov eax, edx
cmp eax, ecx
mov dword [esi + 4], edx
jne 0x5b14ed
mov dword [esi + 4], 0
jmp 0x5b14ed
mov ecx, dword [0x67d8ac]
push 1
push 0
test eax, eax
mov eax, dword [ecx + 0x40]
mov edx, dword [eax + 0x2c]
mov ecx, dword [esi + 0x20]
push edx
mov edx, dword [eax + 0x28]
push edx
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x30]
push edx
mov edx, dword [esi + 0xc]
push edx
mov edx, dword [esi + 8]
push edx
mov edx, dword [ecx + 0x34]
push eax
mov eax, dword [ecx + 0x30]
push edx
push eax
push 0
push 0
jne 0x5b14e2
push 0
jmp 0x5b14e6
mov edx, dword [esi + 4]
push edx
push 0
call fcn.00476060
mov eax, dword [0x68e1d0]
cmp eax, dword [esi + 0x1c]
pop edi
jne 0x5b152d
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x5b152d
mov eax, dword [0x67cb5c]
test eax, eax
je 0x5b152d
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push 1
push edx
mov edx, dword [0x67d8ac]
push eax
mov eax, dword [edx + 0x40]
mov edx, dword [esi + 0x14]
push eax
mov eax, dword [esi + 0x10]
push edx
push eax
push 0
push 0
call fcn.0044e140
mov al, byte [ebp + 0xc]
test al, al
je 0x5b1568
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x5b1568
mov eax, dword [esi + 0x1c]
inc eax
push eax
mov eax, dword [esi + 0xc]
mov edx, dword [ecx]
push eax
mov eax, dword [esi + 8]
push eax
mov eax, dword [0x67d88c]
mov eax, dword [eax + 0x118]
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [esi + 0x14]
push eax
mov eax, dword [esi + 0x10]
push eax
push 0
push 0
call dword [edx + 4]
pop esi
pop ebp
ret 8