Function at 0x52b180
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x52b188
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c44
xor eax, eax
push ebp
push 0x52b6e4
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
push 0
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00409044
mov edx, dword [ebp - 0x38]
mov ecx, 1
mov eax, 0x52b6f8
call fcn.0052b060
pop ecx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x52b1f9
push ebp
push 0
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00409044
mov edx, dword [ebp - 0x3c]
mov ecx, 1
mov eax, 0x52b708
call fcn.0052b060
pop ecx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jle 0x52b683
mov byte [ebp - 0x31], 1
push ebp
push 0
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 4]
call fcn.00409044
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x28]
add ecx, 5
mov eax, 0x52b71c
call fcn.0052b060
pop ecx
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x52b236
mov byte [ebp - 0x31], 0
cmp byte [ebp - 0x31], 0
je 0x52b269
push ebp
push 0
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.00409044
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x2c]
inc ecx
mov eax, 0x52b71c
call fcn.0052b060
pop ecx
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x52b269
mov byte [ebp - 0x31], 0
cmp byte [ebp - 0x31], 0
je 0x52b60f
push ebp
push 0
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
call fcn.00409044
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x2c]
inc ecx
mov eax, 0x52b728
call fcn.0052b060
pop ecx
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jle 0x52b60f
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x28]
add ecx, 2
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00404cb4
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 0x30]
mov eax, 0x52b71c
call fcn.00404d98
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x30]
call fcn.00404a54
mov ecx, eax
sub ecx, dword [ebp - 0x10]
inc ecx
mov edx, dword [ebp - 0x10]
inc edx
mov eax, dword [ebp - 0x30]
call fcn.00404cb4
cmp dword [ebp - 0xc], 1
jne 0x52b316
lea eax, [ebp - 0x18]
push eax
mov edx, dword [ebp - 0x30]
mov eax, 0x52b71c
call fcn.00404d98
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x30]
call fcn.00404cb4
jmp 0x52b332
cmp dword [ebp - 0xc], 2
jne 0x52b332
lea eax, [ebp - 0x14]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 0x30]
call fcn.00404cb4
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 4
jne 0x52b2bf
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x30]
call fcn.00404a54
mov edx, eax
dec edx
mov ecx, 2
mov eax, dword [ebp - 0x30]
call fcn.00404cb4
mov eax, dword [ebp - 0x4c]
mov edx, 0x52b728
call fcn.00404ba0
je 0x52b36a
mov byte [ebp - 0x31], 0
mov edx, 0x52b734
mov eax, dword [ebp - 0x14]
call fcn.0040930c
test al, al
je 0x52b4ac
cmp byte [ebp - 0x31], 0
je 0x52b4ac
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0x1c]
call fcn.00404794
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx - 1], 0x5f
jne 0x52b3b7
lea eax, [ebp - 0x1c]
mov edx, 0x52b740
call fcn.00404a5c
jmp 0x52b483
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx - 1], 0x3d
jne 0x52b466
mov eax, dword [ebp - 0x30]
call fcn.00404a54
mov edx, dword [ebp - 0xc]
add edx, 2
add edx, 2
cmp eax, edx
jl 0x52b466
mov edx, 0x52b744
lea eax, [ebp - 0x58]
call fcn.004030d0
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dl, byte [edx + ecx]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x5c]
lea eax, [ebp - 0x58]
mov cl, 2
call fcn.004030a0
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x60]
call fcn.004030d0
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dl, byte [edx + ecx + 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x5c]
lea eax, [ebp - 0x60]
mov cl, 3
call fcn.004030a0
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x54]
call fcn.004049f8
mov eax, dword [ebp - 0x54]
call fcn.00409ba4
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.0040497c
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x1c]
call fcn.00404a5c
add dword [ebp - 0xc], 2
jmp 0x52b483
lea eax, [ebp - 0x64]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dl, byte [edx + ecx - 1]
call fcn.0040497c
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0x1c]
call fcn.00404a5c
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx - 1], 0x3f
jne 0x52b398
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx], 0x3d
jne 0x52b398
jmp 0x52b591
cmp byte [ebp - 0x31], 0
je 0x52b591
jmp 0x52b580
mov eax, dword [ebp - 0x30]
mov al, byte [eax]
call fcn.0052b028
mov byte [ebp - 0x23], al
mov eax, dword [ebp - 0x30]
mov al, byte [eax + 1]
call fcn.0052b028
mov byte [ebp - 0x22], al
mov eax, dword [ebp - 0x30]
mov al, byte [eax + 2]
call fcn.0052b028
mov byte [ebp - 0x21], al
mov eax, dword [ebp - 0x30]
mov al, byte [eax + 3]
call fcn.0052b028
mov byte [ebp - 0x20], al
mov al, byte [ebp - 0x23]
shl eax, 2
xor edx, edx
mov dl, byte [ebp - 0x22]
shr edx, 4
or al, dl
mov byte [ebp - 0x1f], al
mov al, byte [ebp - 0x22]
shl eax, 4
xor edx, edx
mov dl, byte [ebp - 0x21]
shr edx, 2
or al, dl
mov byte [ebp - 0x1e], al
mov al, byte [ebp - 0x21]
shl eax, 6
xor edx, edx
mov dl, byte [ebp - 0x20]
shr edx, 0
or al, dl
mov byte [ebp - 0x1d], al
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x30]
call fcn.00404a54
mov ecx, eax
mov edx, 5
mov eax, dword [ebp - 0x30]
call fcn.00404cb4
push dword [ebp - 0x1c]
lea eax, [ebp - 0x68]
mov dl, byte [ebp - 0x1f]
call fcn.0040497c
push dword [ebp - 0x68]
lea eax, [ebp - 0x6c]
mov dl, byte [ebp - 0x1e]
call fcn.0040497c
push dword [ebp - 0x6c]
lea eax, [ebp - 0x70]
mov dl, byte [ebp - 0x1d]
call fcn.0040497c
push dword [ebp - 0x70]
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00404b14
mov eax, dword [ebp - 0x30]
call fcn.00404a54
cmp eax, 4
jge 0x52b4bb
cmp byte [ebp - 0x31], 0
je 0x52b60f
mov edx, 0x52b750
mov eax, dword [ebp - 0x18]
call fcn.0040930c
test al, al
je 0x52b5b5
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
call fcn.0052b768
jmp 0x52b5c0
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x1c]
call fcn.0040482c
lea eax, [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x28]
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404cb4
push dword [ebp - 0x74]
push dword [ebp - 0x30]
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp - 4]
call fcn.00404a54
mov ecx, eax
mov edx, dword [ebp - 0x2c]
add edx, 2
mov eax, dword [ebp - 4]
call fcn.00404cb4
push dword [ebp - 0x78]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404b14
lea eax, [ebp - 0x30]
call fcn.00404794
push ebp
push 0
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 4]
call fcn.00409044
mov edx, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x28]
inc ecx
mov eax, 0x52b6f8
call fcn.0052b060
pop ecx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x52b65b
push ebp
push 0
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 4]
call fcn.00409044
mov edx, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x28]
inc ecx
mov eax, 0x52b708
call fcn.0052b060
pop ecx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jg 0x52b203
jmp 0x52b683
mov edx, dword [ebp - 4]
mov eax, 0x52b764
call fcn.00404d98
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call fcn.00404cf4
mov edx, dword [ebp - 4]
mov eax, 0x52b764
call fcn.00404d98
test eax, eax
jg 0x52b667
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004047e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52b6eb
lea eax, [ebp - 0x80]
mov edx, 8
call fcn.004047b8
lea eax, [ebp - 0x54]
mov edx, 8
call fcn.004047b8
lea eax, [ebp - 0x30]
call fcn.00404794
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004047b8
lea eax, [ebp - 4]
call fcn.00404794
ret