Function at 0x41d470
Capabilities:
Encode data using base64

Disassembly:
push 0xffffffffffffffff
push 0x48c879
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push edi
mov eax, dword [str.CombineRgn]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], edi
mov dword [esp + 0x20], esi
mov byte [esi + 4], 0
xor ebp, ebp
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], 1
cmp dword [esp + 0x38], edi
je 0x41d7b6
mov eax, dword [esp + 0x34]
mov cl, byte [eax]
dec dword [esp + 0x38]
mov byte [esp + ebp + 0x10], cl
inc ebp
inc eax
mov dword [esp + 0x34], eax
cmp ebp, 3
jne 0x41d5e9
mov al, byte [esp + 0x10]
mov dl, al
shr dl, 2
mov cl, al
mov al, byte [esp + 0x11]
and cl, 3
mov byte [esp + 0x14], dl
shl cl, 4
mov dl, al
shr dl, 4
add cl, dl
mov byte [esp + 0x15], cl
mov cl, al
mov al, byte [esp + 0x12]
and cl, 0xf
add cl, cl
mov dl, al
add cl, cl
shr dl, 6
add cl, dl
and al, 0x3f
xor ebp, ebp
mov byte [esp + 0x16], cl
mov byte [esp + 0x17], al
mov dword [esp + 0x18], ebp
jmp 0x41d530
movzx edi, byte [esp + ebp + 0x14]
cmp edi, dword [0x4ac38c]
jbe 0x41d542
call fcn.0046f8fc
cmp dword [0x4ac390], 0x10
mov eax, dword [0x4ac37c]
jae 0x41d555
mov eax, 0x4ac37c
mov bl, byte [eax + edi]
or eax, 0xffffffff
sub eax, dword [esi + 0x14]
cmp eax, 1
ja 0x41d568
call fcn.00442b5c
mov edi, dword [esi + 0x14]
inc edi
cmp edi, 0xfffffffe
jbe 0x41d576
call fcn.00442b5c
mov eax, dword [esi + 0x18]
cmp eax, edi
jae 0x41d59e
mov ecx, dword [esi + 0x14]
push ecx
push edi
mov ecx, esi
call fcn.00418810
test edi, edi
jbe 0x41d5d7
cmp dword [esi + 0x18], 0x10
mov ecx, dword [esi + 0x14]
lea ebp, [esi + 4]
jb 0x41d5ba
mov eax, dword [ebp]
jmp 0x41d5bc
test edi, edi
jne 0x41d58b
mov dword [esi + 0x14], edi
cmp eax, 0x10
jb 0x41d5b2
mov eax, dword [esi + 4]
mov byte [eax], 0
jmp 0x41d5d7
lea eax, [esi + 4]
mov byte [eax], 0
jmp 0x41d5d7
mov eax, ebp
mov byte [eax + ecx], bl
cmp dword [esi + 0x18], 0x10
mov dword [esi + 0x14], edi
jb 0x41d5cd
mov eax, dword [ebp]
jmp 0x41d5cf
mov eax, ebp
mov ebp, dword [esp + 0x18]
mov byte [eax + edi], 0
inc ebp
cmp ebp, 4
mov dword [esp + 0x18], ebp
jl 0x41d530
xor ebp, ebp
xor edi, edi
cmp dword [esp + 0x38], edi
jne 0x41d4c6
cmp ebp, edi
je 0x41d7b6
cmp ebp, 3
jge 0x41d616
mov edx, 3
sub edx, ebp
push edx
lea eax, [esp + ebp + 0x14]
push edi
push eax
call fcn.00471b20
add esp, 0xc
mov cl, byte [esp + 0x10]
mov al, cl
shr al, 2
mov byte [esp + 0x14], al
mov al, byte [esp + 0x11]
mov dl, al
and cl, 3
shl cl, 4
shr dl, 4
add cl, dl
and al, 0xf
mov byte [esp + 0x15], cl
mov cl, byte [esp + 0x12]
add al, al
mov dl, cl
add al, al
shr dl, 6
add al, dl
mov byte [esp + 0x16], al
and cl, 0x3f
lea eax, [ebp + 1]
cmp eax, edi
mov byte [esp + 0x17], cl
mov dword [esp + 0x10], edi
jle 0x41d720
mov eax, dword [esp + 0x10]
movzx edi, byte [esp + eax + 0x14]
cmp edi, dword [0x4ac38c]
jbe 0x41d679
call fcn.0046f8fc
cmp dword [0x4ac390], 0x10
mov eax, dword [0x4ac37c]
jae 0x41d68c
mov eax, 0x4ac37c
mov bl, byte [eax + edi]
or ecx, 0xffffffff
sub ecx, dword [esi + 0x14]
cmp ecx, 1
ja 0x41d69f
call fcn.00442b5c
mov edi, dword [esi + 0x14]
inc edi
cmp edi, 0xfffffffe
jbe 0x41d6ad
call fcn.00442b5c
mov eax, dword [esi + 0x18]
cmp eax, edi
jae 0x41d6d6
mov edx, dword [esi + 0x14]
push edx
push edi
mov ecx, esi
call fcn.00418810
test edi, edi
jbe 0x41d70c
mov ecx, dword [esi + 0x14]
mov edx, 0x10
cmp dword [esi + 0x18], edx
jb 0x41d6f2
mov eax, dword [esi + 4]
jmp 0x41d6f5
test edi, edi
jne 0x41d6c2
mov dword [esi + 0x14], edi
cmp eax, 0x10
jb 0x41d6ea
mov eax, dword [esi + 4]
mov byte [eax], 0
jmp 0x41d70c
lea eax, [esi + 4]
mov byte [eax], 0
jmp 0x41d70c
lea eax, [esi + 4]
mov byte [eax + ecx], bl
mov dword [esi + 0x14], edi
cmp dword [esi + 0x18], edx
jb 0x41d705
mov eax, dword [esi + 4]
jmp 0x41d708
lea eax, [esi + 4]
mov byte [eax + edi], 0
mov eax, dword [esp + 0x10]
inc eax
lea ecx, [ebp + 1]
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x41d663
cmp ebp, 3
jge 0x41d7b6
mov ebx, 3
sub ebx, ebp
or eax, 0xffffffff
sub eax, dword [esi + 0x14]
cmp eax, 1
ja 0x41d740
call fcn.00442b5c
mov edi, dword [esi + 0x14]
inc edi
cmp edi, 0xfffffffe
jbe 0x41d74e
call fcn.00442b5c
mov eax, dword [esi + 0x18]
cmp eax, edi
jae 0x41d779
mov ecx, dword [esi + 0x14]
push ecx
push edi
mov ecx, esi
call fcn.00418810
test edi, edi
jbe 0x41d7ad
mov ecx, dword [esi + 0x14]
mov ebp, 0x10
lea edx, [esi + 4]
cmp dword [esi + 0x18], ebp
jb 0x41d795
mov eax, dword [edx]
jmp 0x41d797
test edi, edi
jne 0x41d763
mov dword [esi + 0x14], edi
cmp eax, 0x10
jb 0x41d78d
mov eax, dword [esi + 4]
mov byte [eax], 0
jmp 0x41d7ad
lea eax, [esi + 4]
mov byte [eax], 0
jmp 0x41d7ad
mov eax, edx
mov byte [eax + ecx], 0x3d
mov dword [esi + 0x14], edi
cmp dword [esi + 0x18], ebp
jb 0x41d7a7
mov eax, dword [edx]
jmp 0x41d7a9
mov eax, edx
mov byte [eax + edi], 0
sub ebx, 1
jne 0x41d730
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x20
ret