Function at 0x401870
Capabilities:
Decode data using base64 via winapi
Get common file path

Disassembly:
sub esp, 0x334
mov eax, dword [0x44c064]
xor eax, esp
mov dword [esp + 0x330], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
xor ebp, ebp
push ebp
push ebp
lea eax, [esp + 0x20]
push eax
push ebp
push ebp
push ebp
push str._____BEGIN_CERTIFICATE______nMIIC_DCCAeSgAwIBAgIRAM7_2B7_QDUVyz9XivEGNvAwDQYJKoZIhvcNAQEFBQAw_nJzELMAkGA1UEBhMCRU4xGDAWBgNVBAMTD0h0dHBBbmFseXplciBDQTAeFw0xNDA1_nMjAwMjUzMThaFw0zNDA1MTUwMjUzMThaMCcxCzAJBgNVBAYTAkVOMRgwFgYDVQQD_nEw9IdHRwQW5hbHl6ZXIgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB_nAQDRAvrFlHHyRU6Aue4IYe1rxiw638eZSKdMq2QxIh17cd9hqgBaJF5sMyfNog1c_nCK2w0iHtjQUOc7eTRDXZOaItq8GJQzVjExLPK7cBjFibomUTGpXlT1Yy9RHH9k_nHAlohsPN6rzclgwHeDmmFdAwrwXt2D0e2ziq858BL_xMnKfjYgTpKYnWJ8q3W_w_nOILDAbhCmIyEN8Za6xLgFK6SQA39o5cU0ye3nXtQ5soGtcs6DngLnNGSxCSmqjR_ntnMCvrTmfVuzi_yph4GP_hYTDnfcc7iaBCZxcnI5cex2tfhsknDD1GnE92d1_fr_npGF8kK4sgGryzsME2HWeIZ_hAgMBAAGjIzAhMA8GA1UdEwEB_wQFMAMBAf8wDgYD_nVR0PAQH_BAQDAgEGMA0GCSqGSIb3DQEBBQUAA4IBAQCsueDDcCTcOKJ1r6sX7IXc_nhDoWnzDSQgGwf0YtpiGzFnbQa3F5sfBtNUu7kpKATNTJ_jA2793lZzBJie6enP_nlEsP8QE2hFlIi6HGOAFF8S4opXO9lVItTvkmI4ulnBIRXn6Lw1xBheT_yb7c1K_nGTr04bOeuRXpe5rDR2W9Hl73oFr4Oj_9gqrG0SFqpgwW3Jip5JfNIAQrYn7mgwr_nz57wOVFF5AlizVriWPxobRukjvRcsVpG0UZhFRMzc1GvWf641FhlZIj1DQJs1Og_ncd7nICdzjcqMloNnwwmfnJ8T6dE3MTx53aHaSCwqD00xZX6nPBWNDnj5tiKwau_E_n_____END_CERTIFICATE______n
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebp
call edi
test eax, eax
je 0x401a92
mov eax, dword [esp + 0x18]
cmp eax, ebp
jbe 0x401a92
push eax
call fcn.00402c34
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x401a92
push ebp
push ebp
lea ecx, [esp + 0x20]
push ecx
push esi
push ebp
push ebp
push str._____BEGIN_CERTIFICATE______nMIIC_DCCAeSgAwIBAgIRAM7_2B7_QDUVyz9XivEGNvAwDQYJKoZIhvcNAQEFBQAw_nJzELMAkGA1UEBhMCRU4xGDAWBgNVBAMTD0h0dHBBbmFseXplciBDQTAeFw0xNDA1_nMjAwMjUzMThaFw0zNDA1MTUwMjUzMThaMCcxCzAJBgNVBAYTAkVOMRgwFgYDVQQD_nEw9IdHRwQW5hbHl6ZXIgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB_nAQDRAvrFlHHyRU6Aue4IYe1rxiw638eZSKdMq2QxIh17cd9hqgBaJF5sMyfNog1c_nCK2w0iHtjQUOc7eTRDXZOaItq8GJQzVjExLPK7cBjFibomUTGpXlT1Yy9RHH9k_nHAlohsPN6rzclgwHeDmmFdAwrwXt2D0e2ziq858BL_xMnKfjYgTpKYnWJ8q3W_w_nOILDAbhCmIyEN8Za6xLgFK6SQA39o5cU0ye3nXtQ5soGtcs6DngLnNGSxCSmqjR_ntnMCvrTmfVuzi_yph4GP_hYTDnfcc7iaBCZxcnI5cex2tfhsknDD1GnE92d1_fr_npGF8kK4sgGryzsME2HWeIZ_hAgMBAAGjIzAhMA8GA1UdEwEB_wQFMAMBAf8wDgYD_nVR0PAQH_BAQDAgEGMA0GCSqGSIb3DQEBBQUAA4IBAQCsueDDcCTcOKJ1r6sX7IXc_nhDoWnzDSQgGwf0YtpiGzFnbQa3F5sfBtNUu7kpKATNTJ_jA2793lZzBJie6enP_nlEsP8QE2hFlIi6HGOAFF8S4opXO9lVItTvkmI4ulnBIRXn6Lw1xBheT_yb7c1K_nGTr04bOeuRXpe5rDR2W9Hl73oFr4Oj_9gqrG0SFqpgwW3Jip5JfNIAQrYn7mgwr_nz57wOVFF5AlizVriWPxobRukjvRcsVpG0UZhFRMzc1GvWf641FhlZIj1DQJs1Og_ncd7nICdzjcqMloNnwwmfnJ8T6dE3MTx53aHaSCwqD00xZX6nPBWNDnj5tiKwau_E_n_____END_CERTIFICATE______n
call edi
mov edx, dword [esp + 0x18]
push edx
push esi
push 1
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
push esi
mov ebx, eax
call fcn.00402b57
add esp, 4
cmp ebx, ebp
je 0x401a92
push 0x44a3e8
push 0x14000
push ebp
push ebp
push 0xa
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x20], ebp
je 0x401a85
push 0
push 1
push ebx
push ebp
call dword [sym.imp.CRYPT32.dll_CertAddCertificateContextToStore]
test eax, eax
jne 0x401a7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80092005
jne 0x401a7c
mov esi, dword [sym.imp.CRYPT32.dll_CertGetCertificateContextProperty]
lea eax, [esp + 0x14]
push eax
push 0
push 3
push ebx
mov dword [esp + 0x24], 0
call esi
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x401a7c
add eax, 1
push eax
call fcn.00402c34
mov edi, eax
add esp, 4
test edi, edi
je 0x401a7c
mov ecx, dword [esp + 0x14]
add ecx, 1
push ecx
push 0
push edi
call fcn.00403de0
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push edi
push 3
push ebx
call esi
push 0x103
lea eax, [esp + 0x239]
push 0
push eax
mov byte [esp + 0x240], 0
call fcn.00403de0
add esp, 0xc
push 0x103
lea ecx, [esp + 0x131]
push 0
push ecx
mov byte [esp + 0x138], 0
call fcn.00403de0
add esp, 0xc
push 0x103
lea edx, [esp + 0x29]
push 0
push edx
mov byte [esp + 0x30], 0
call fcn.00403de0
xor esi, esi
add esp, 0xc
cmp dword [esp + 0x14], esi
jbe 0x401a33
lea ebp, [esp + 0x12c]
lea esp, [esp]
movzx eax, byte [esi + edi]
push eax
push str._02X
push ebp
call fcn.00402adc
add esi, 1
add esp, 0xc
add ebp, 2
cmp esi, dword [esp + 0x14]
jb 0x401a10
mov ebp, dword [esp + 0x20]
push 0
push 0x1a
lea ecx, [esp + 0x2c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edx, [esp + 0x12c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x23c]
push str._sMicrosoftSystemCertificatesMyCertificates_s
push ecx
call fcn.00402adc
lea eax, [esp + 0x244]
call fcn.00401790
push edi
mov dword [esp + 0x30], eax
call fcn.00402b57
add esp, 0x14
push 1
push ebp
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
push ebx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, dword [esp + 0x1c]
jmp 0x401a94
mov eax, ebp
mov ecx, dword [esp + 0x340]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004027ab
add esp, 0x334
ret