Function at 0x41a470
Capabilities:
Access peb ldr_data
Encode data using base64

Disassembly:
push 0xffffffffffffffff
push 0x454be9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
xor ebp, ebp
mov dword [esp + 0xc], ebp
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
push edi
mov word [esi + 4], ax
cmp dword [esp + 0x30], 2
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], 1
jbe 0x41a781
lea ecx, [ecx]
mov ebx, dword [esp + 0x2c]
movzx ecx, byte [ebx + ebp]
shr ecx, 2
movzx edx, word [ecx*2 + 0x45e6d0]
or eax, 0xffffffff
sub eax, dword [esi + 0x14]
mov dword [esp + 0x14], edx
cmp eax, 1
ja 0x41a4e7
call fcn.00442d81
mov edi, dword [esi + 0x14]
inc edi
cmp edi, 0x7ffffffe
jbe 0x41a4f8
call fcn.00442d81
mov eax, dword [esi + 0x18]
cmp eax, edi
jae 0x41a51e
mov ecx, dword [esi + 0x14]
push ecx
push edi
push esi
call fcn.004021e0
test edi, edi
jbe 0x41a562
cmp dword [esi + 0x18], 8
mov ecx, dword [esi + 0x14]
lea edx, [esi + 4]
jb 0x41a53e
mov eax, dword [edx]
jmp 0x41a540
test edi, edi
jne 0x41a50c
mov dword [esi + 0x14], edi
cmp eax, 8
jb 0x41a534
mov eax, dword [esi + 4]
xor edx, edx
mov word [eax], dx
jmp 0x41a562
lea eax, [esi + 4]
xor edx, edx
mov word [eax], dx
jmp 0x41a562
mov eax, edx
mov bx, word [esp + 0x14]
mov word [eax + ecx*2], bx
cmp dword [esi + 0x18], 8
mov dword [esi + 0x14], edi
jb 0x41a556
mov eax, dword [edx]
jmp 0x41a558
mov eax, edx
mov ebx, dword [esp + 0x2c]
xor ecx, ecx
mov word [eax + edi*2], cx
movzx edx, byte [ebx + ebp]
movzx eax, byte [ebx + ebp + 1]
and edx, 3
or ecx, 0xffffffff
sub ecx, dword [esi + 0x14]
shl edx, 4
shr eax, 4
or edx, eax
movzx ebx, word [edx*2 + 0x45e6d0]
cmp ecx, 1
ja 0x41a58e
call fcn.00442d81
mov edi, dword [esi + 0x14]
inc edi
cmp edi, 0x7ffffffe
jbe 0x41a59f
call fcn.00442d81
mov eax, dword [esi + 0x18]
cmp eax, edi
jae 0x41a5c5
mov edx, dword [esi + 0x14]
push edx
push edi
push esi
call fcn.004021e0
test edi, edi
jbe 0x41a600
cmp dword [esi + 0x18], 8
mov ecx, dword [esi + 0x14]
lea edx, [esi + 4]
jb 0x41a5e5
mov eax, dword [edx]
jmp 0x41a5e7
test edi, edi
jne 0x41a5b3
mov dword [esi + 0x14], edi
cmp eax, 8
jb 0x41a5db
mov eax, dword [esi + 4]
xor ecx, ecx
mov word [eax], cx
jmp 0x41a600
lea eax, [esi + 4]
xor ecx, ecx
mov word [eax], cx
jmp 0x41a600
mov eax, edx
mov word [eax + ecx*2], bx
cmp dword [esi + 0x18], 8
mov dword [esi + 0x14], edi
jb 0x41a5f8
mov eax, dword [edx]
jmp 0x41a5fa
mov eax, edx
xor edx, edx
mov word [eax + edi*2], dx
mov eax, dword [esp + 0x2c]
movzx ecx, byte [eax + ebp + 1]
movzx edx, byte [eax + ebp + 2]
and ecx, 0xf
add ecx, ecx
or eax, 0xffffffff
sub eax, dword [esi + 0x14]
add ecx, ecx
shr edx, 6
or ecx, edx
movzx ebx, word [ecx*2 + 0x45e6d0]
cmp eax, 1
ja 0x41a632
call fcn.00442d81
mov edi, dword [esi + 0x14]
inc edi
cmp edi, 0x7ffffffe
jbe 0x41a643
call fcn.00442d81
mov eax, dword [esi + 0x18]
cmp eax, edi
jae 0x41a669
mov ecx, dword [esi + 0x14]
push ecx
push edi
push esi
call fcn.004021e0
test edi, edi
jbe 0x41a6a4
cmp dword [esi + 0x18], 8
mov ecx, dword [esi + 0x14]
lea edx, [esi + 4]
jb 0x41a689
mov eax, dword [edx]
jmp 0x41a68b
test edi, edi
jne 0x41a657
mov dword [esi + 0x14], edi
cmp eax, 8
jb 0x41a67f
mov eax, dword [esi + 4]
xor edx, edx
mov word [eax], dx
jmp 0x41a6a4
lea eax, [esi + 4]
xor edx, edx
mov word [eax], dx
jmp 0x41a6a4
mov eax, edx
mov word [eax + ecx*2], bx
cmp dword [esi + 0x18], 8
mov dword [esi + 0x14], edi
jb 0x41a69c
mov eax, dword [edx]
jmp 0x41a69e
mov eax, edx
xor ecx, ecx
mov word [eax + edi*2], cx
mov edx, dword [esp + 0x2c]
movzx eax, byte [edx + ebp + 2]
or ecx, 0xffffffff
sub ecx, dword [esi + 0x14]
and eax, 0x3f
movzx ebx, word [eax*2 + 0x45e6d0]
cmp ecx, 1
ja 0x41a6c8
call fcn.00442d81
mov edi, dword [esi + 0x14]
inc edi
cmp edi, 0x7ffffffe
jbe 0x41a6d9
call fcn.00442d81
mov eax, dword [esi + 0x18]
cmp eax, edi
jae 0x41a701
mov edx, dword [esi + 0x14]
push edx
push edi
push esi
call fcn.004021e0
test edi, edi
jbe 0x41a73e
mov ecx, dword [esi + 0x14]
mov edx, 8
cmp dword [esi + 0x18], edx
jb 0x41a721
mov eax, dword [esi + 4]
jmp 0x41a724
test edi, edi
jne 0x41a6ed
mov dword [esi + 0x14], edi
cmp eax, 8
jb 0x41a717
mov eax, dword [esi + 4]
xor ecx, ecx
mov word [eax], cx
jmp 0x41a73e
lea eax, [esi + 4]
xor ecx, ecx
mov word [eax], cx
jmp 0x41a73e
lea eax, [esi + 4]
mov word [eax + ecx*2], bx
mov dword [esi + 0x14], edi
cmp dword [esi + 0x18], edx
jb 0x41a735
mov eax, dword [esi + 4]
jmp 0x41a738
lea eax, [esi + 4]
xor edx, edx
mov word [eax + edi*2], dx
add ebp, 3
cmp byte [esp + 0x34], 0
je 0x41a772
mov eax, 0xaaaaaaab
mul ebp
mov eax, edx
shr eax, 1
add eax, eax
add eax, eax
xor edx, edx
mov ecx, 0x48
div ecx
test edx, edx
jne 0x41a772
push 2
mov eax, 0x45de50
mov ecx, esi
call fcn.00401be0
mov edx, dword [esp + 0x30]
sub edx, ebp
cmp edx, 2
ja 0x41a4c0
mov eax, dword [esp + 0x30]
sub eax, ebp
cmp eax, 2
jne 0x41a7e0
mov eax, dword [esp + 0x2c]
movzx ecx, byte [eax + ebp]
shr ecx, 2
movzx eax, word [ecx*2 + 0x45e6d0]
push eax
mov ebx, esi
call fcn.0041a880
mov eax, dword [esp + 0x2c]
movzx edx, byte [eax + ebp]
lea edi, [eax + ebp + 1]
movzx eax, byte [edi]
and edx, 3
shr eax, 4
shl edx, 4
or edx, eax
movzx eax, word [edx*2 + 0x45e6d0]
push eax
call fcn.0041a880
movzx ecx, byte [edi]
and ecx, 0xf
movzx eax, word [ecx*8 + 0x45e6d0]
push eax
jmp 0x41a81d
cmp eax, 1
jne 0x41a82e
mov edx, dword [esp + 0x2c]
movzx eax, byte [edx + ebp]
shr eax, 2
movzx eax, word [eax*2 + 0x45e6d0]
push eax
mov ebx, esi
call fcn.0041a880
mov ecx, dword [esp + 0x2c]
movzx edx, byte [ecx + ebp]
and edx, 3
shl edx, 5
movzx eax, word [edx + 0x45e6d0]
push eax
call fcn.0041a880
push 0x3d
mov ebx, esi
call fcn.0041a880
push 0x3d
call fcn.0041a880
add ebp, 3
cmp byte [esp + 0x34], 0
je 0x41a85f
mov eax, 0xaaaaaaab
mul ebp
mov eax, edx
shr eax, 1
add eax, eax
add eax, eax
xor edx, edx
mov ecx, 0x48
div ecx
test edx, edx
jne 0x41a85f
push 2
mov eax, 0x45de50
mov ecx, esi
call fcn.00401be0
mov ecx, dword [esp + 0x18]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret