Function at 0x402f90
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44526d
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x455040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.start_install_ca_cert
push 0x456a40
call fcn.00406db0
add esp, 8
mov dword [ebp - 0xd4], eax
push 0x4070f0
mov ecx, dword [ebp - 0xd4]
call fcn.00403a50
push str.Crypt32
lea ecx, [ebp - 0x28]
call fcn.00403c10
mov dword [ebp - 4], 0
push str..dll
lea ecx, [ebp - 0x28]
call fcn.00403bb0
lea ecx, [ebp - 0x28]
call fcn.00403b90
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x403031
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403bd0
nop
jmp 0x4036e2
push str.CryptStringToBinaryA
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x50], eax
push str.CertCreateCertificateContext
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x5c], eax
push str.CertOpenStore
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x60], eax
push str.CertFindCertificateInStore
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x64], eax
push str.CertAddCertificateContextToStore
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x68], eax
push str.CertFreeCertificateContext
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x44], eax
push 0x44f9a0
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x50], 0
je 0x4030d9
cmp dword [ebp - 0x5c], 0
je 0x4030d9
cmp dword [ebp - 0x60], 0
je 0x4030d9
cmp dword [ebp - 0x64], 0
je 0x4030d9
cmp dword [ebp - 0x68], 0
je 0x4030d9
cmp dword [ebp - 0x44], 0
je 0x4030d9
cmp dword [ebp - 0x70], 0
jne 0x4030ee
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403bd0
nop
jmp 0x4036e2
mov dword [ebp - 0x58], 0x44f8de
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x54], 0
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x48]
mov cl, byte [eax]
mov byte [ebp - 0x3d], cl
add dword [ebp - 0x48], 1
cmp byte [ebp - 0x3d], 0
jne 0x403120
mov edx, dword [ebp - 0x48]
sub edx, dword [ebp - 0x74]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x7c], ecx
push 0
push 0
lea edx, [ebp - 0x2c]
push edx
push 0
push 0
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
call dword [ebp - 0x7c]
add esp, 0x1c
test eax, eax
jne 0x4031c0
push str.get_ca_cert_decode_data_length_failed__last_err
push 0x456a40
call fcn.00406db0
add esp, 8
mov dword [ebp - 0x84], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x80]
push edx
mov ecx, dword [ebp - 0x84]
call fcn.00403870
mov dword [ebp - 0x88], eax
push 0x4070f0
mov ecx, dword [ebp - 0x88]
call fcn.00403a50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403bd0
nop
jmp 0x4036e2
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004291f9
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4031e9
mov ecx, dword [ebp - 0x2c]
push ecx
push 0
mov edx, dword [ebp - 0x30]
push edx
call fcn.00424060
add esp, 0xc
jmp 0x40324a
push str.malloc_ca_cert_data_space_failed__last_err
push 0x456a40
call fcn.00406db0
add esp, 8
mov dword [ebp - 0x90], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x90]
call fcn.00403870
mov dword [ebp - 0x94], eax
push 0x4070f0
mov ecx, dword [ebp - 0x94]
call fcn.00403a50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403bd0
nop
jmp 0x4036e2
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x98], ecx
push 0
push 0
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x30]
push eax
push 0
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x58]
push edx
call dword [ebp - 0x98]
add esp, 0x1c
test eax, eax
jne 0x4032ea
push str.decode_ca_cert_data_failed__last_err
push 0x456a40
call fcn.00406db0
add esp, 8
mov dword [ebp - 0xa0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0xa0]
call fcn.00403870
mov dword [ebp - 0xa4], eax
push 0x4070f0
mov ecx, dword [ebp - 0xa4]
call fcn.00403a50
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00428ce9
add esp, 4
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403bd0
nop
jmp 0x4036e2
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
push 0x10001
call dword [ebp - 0xa8]
add esp, 0xc
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x403386
push str.create_cert_context_failed__last_err
push 0x456a40
call fcn.00406db0
add esp, 8
mov dword [ebp - 0xb0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xac], eax
mov edx, dword [ebp - 0xac]
push edx
mov ecx, dword [ebp - 0xb0]
call fcn.00403870
mov dword [ebp - 0xb4], eax
push 0x4070f0
mov ecx, dword [ebp - 0xb4]
call fcn.00403a50
mov eax, dword [ebp - 0x30]
push eax
call fcn.00428ce9
add esp, 4
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403bd0
nop
jmp 0x4036e2
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0xb8], ecx
push str.ROOT
push 0x20000
push 0
push 0
push 0xa
call dword [ebp - 0xb8]
add esp, 0x14
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x403446
push str.CertOpenStore_failed__last_err
push 0x456a40
call fcn.00406db0
add esp, 8
mov dword [ebp - 0xc0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xbc], eax
mov edx, dword [ebp - 0xbc]
push edx
mov ecx, dword [ebp - 0xc0]
call fcn.00403870
mov dword [ebp - 0xc4], eax
push 0x4070f0
mov ecx, dword [ebp - 0xc4]
call fcn.00403a50
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [ebp - 0xc8]
add esp, 4
mov dword [ebp - 0x34], 0
mov edx, dword [ebp - 0x30]
push edx
call fcn.00428ce9
add esp, 4
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403bd0
nop
jmp 0x4036e2
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0xcc], eax
push 0
mov ecx, dword [ebp - 0x34]
push ecx
push 0xd0000
push 0
push 0x10001
mov edx, dword [ebp - 0x3c]
push edx
call dword [ebp - 0xcc]
add esp, 0x18
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x403530
push str.check_ca_cert_has_already_install__return
push 0x456a40
call fcn.00406db0
add esp, 8
mov dword [ebp - 0xf0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
push eax
mov ecx, dword [ebp - 0xf0]
call fcn.00403870
mov dword [ebp - 0xd8], eax
push 0x4070f0
mov ecx, dword [ebp - 0xd8]
call fcn.00403a50
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0xdc], ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [ebp - 0xdc]
add esp, 4
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [ebp - 0xe0]
add esp, 4
mov dword [ebp - 0x4c], 0
mov edx, dword [ebp - 0x30]
push edx
call fcn.00428ce9
add esp, 4
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403bd0
nop
jmp 0x4036e2
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xe4], eax
push 0
push 1
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [ebp - 0xe4]
add esp, 0x10
test eax, eax
jne 0x403649
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0x80092005
jne 0x40360b
push str.ca_cert_has_already_install__last_err
push 0x456a40
call fcn.00406db0
add esp, 8
mov dword [ebp - 0xec], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xe8]
push eax
mov ecx, dword [ebp - 0xec]
call fcn.00403870
mov dword [ebp - 0x10c], eax
push 0x4070f0
mov ecx, dword [ebp - 0x10c]
call fcn.00403a50
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0xf4], ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [ebp - 0xf4]
add esp, 4
mov dword [ebp - 0x34], 0
push 0
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00428ce9
add esp, 4
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403bd0
nop
jmp 0x4036e2
push str.ca_cert_install_failed__last_err
push 0x456a40
call fcn.00406db0
add esp, 8
mov dword [ebp - 0xf8], eax
mov edx, dword [ebp - 0x6c]
push edx
mov ecx, dword [ebp - 0xf8]
call fcn.00403870
mov dword [ebp - 0xfc], eax
push 0x4070f0
mov ecx, dword [ebp - 0xfc]
call fcn.00403a50
nop
cmp dword [ebp - 0x34], 0
je 0x40366c
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [ebp - 0x100]
add esp, 4
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x3c], 0
je 0x403691
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x104], edx
push 0
mov eax, dword [ebp - 0x3c]
push eax
call dword [ebp - 0x104]
add esp, 8
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x30], 0
je 0x4036aa
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00428ce9
add esp, 4
mov dword [ebp - 0x30], 0
push str.install_ca_cert_complete
push 0x456a40
call fcn.00406db0
add esp, 8
mov dword [ebp - 0x108], eax
push 0x4070f0
mov ecx, dword [ebp - 0x108]
call fcn.00403a50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403bd0
nop
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422493
mov esp, ebp
pop ebp
ret