Function at 0x10154b70
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x101a8a6b
mov eax, dword fs:[0]
push eax
sub esp, 0x4a0
mov eax, dword [0x1026d48c]
xor eax, esp
mov dword [esp + 0x49c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1026d48c]
xor eax, esp
push eax
lea eax, [esp + 0x4b4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4c4]
mov esi, dword [esp + 0x4d4]
mov ebx, dword [esp + 0x4cc]
mov edi, dword [esp + 0x4c8]
mov ebp, ecx
mov ecx, dword [esp + 0x4d0]
push str.loadPkcs12Inner
mov dword [esp + 0x1c], ecx
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], ebx
call fcn.10061630
mov edx, dword [esp + 0x18]
mov byte [ebx], 0
lea ecx, [esp + 0x270]
mov dword [esp + 0x4bc], 0
mov byte [edx], 0
call fcn.10010fb0
push 1
lea ecx, [esp + 0x274]
mov byte [esp + 0x4c0], 1
call fcn.10170a80
push edi
lea ecx, [esp + 0x274]
call fcn.10010b90
lea ecx, [esp + 0x1fc]
call fcn.10010fb0
push 1
lea ecx, [esp + 0x200]
mov byte [esp + 0x4c0], 2
call fcn.10170a80
push edi
lea ecx, [esp + 0x200]
call fcn.10010b90
lea ecx, [esp + 0x188]
call fcn.10010fb0
push 1
lea ecx, [esp + 0x18c]
mov byte [esp + 0x4c0], 3
call fcn.10170a80
push edi
lea ecx, [esp + 0x18c]
call fcn.10010b90
test edi, edi
mov byte [esp + 0x16], 0
mov bl, 1
jne 0x10154c9a
xor bl, bl
lea ecx, [esp + 0x114]
call fcn.10010fb0
lea eax, [esp + 0x270]
push eax
lea ecx, [esp + 0x118]
mov byte [esp + 0x4c0], 4
call fcn.10012ae0
push 1
lea ecx, [esp + 0x118]
call fcn.10170a80
lea ecx, [esp + 0x114]
call fcn.1000f7d0
push 0x1022dfb8
lea ecx, [esp + 0x118]
call fcn.10010cb0
test al, al
je 0x10154e0c
push 0x101f5958
lea ecx, [esp + 0x118]
call fcn.10010c10
test al, al
je 0x10154e0c
call fcn.10092920
lea ecx, [esp + 0x38]
mov edi, eax
call fcn.100182e0
lea ecx, [esp + 0x270]
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4c0], 5
mov byte [esp + 0x54], 1
call fcn.1001b120
push esi
lea edx, [esp + 0x3c]
push edx
mov ecx, edi
call fcn.10091220
test al, al
je 0x10154df4
lea ecx, [esp + 0x1fc]
call fcn.100105b0
lea ecx, [esp + 0x188]
call fcn.100105b0
push esi
lea eax, [esp + 0x200]
push eax
push str.integrity
mov ecx, edi
call fcn.10092b10
test al, al
jne 0x10154d84
xor bl, bl
push esi
lea ecx, [esp + 0x18c]
push ecx
push str.privKeys
mov ecx, edi
call fcn.10092b10
lea ecx, [esp + 0x2e4]
call fcn.10010fb0
push esi
lea edx, [esp + 0x2e8]
push edx
push str.skipPrivateKeys
mov ecx, edi
mov byte [esp + 0x4c8], 6
call fcn.10092b10
test al, al
je 0x10154de0
push str.true
lea ecx, [esp + 0x2e8]
call fcn.10013230
test al, al
je 0x10154de0
mov byte [esp + 0x16], 1
lea ecx, [esp + 0x2e4]
mov byte [esp + 0x4bc], 5
call fcn.10011070
mov ecx, edi
call fcn.10049240
lea ecx, [esp + 0x38]
mov byte [esp + 0x4bc], 4
call fcn.10018a90
test bl, bl
mov byte [esp + 0x17], 0
je 0x10154ebe
mov edi, dword [esp + 0x18]
push esi
push edi
lea eax, [esp + 0x1f]
push eax
lea ecx, [esp + 0x208]
call fcn.1008be90
mov ecx, dword [esp + 0x28]
push eax
push ecx
mov ecx, ebp
call fcn.10154af0
test al, al
jne 0x10154ebe
cmp byte [edi], al
jne 0x10154e53
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.PFX_PKCS12_integrity_verification_failed.
mov ecx, esi
call eax
lea ecx, [esp + 0x114]
mov byte [esp + 0x4bc], 3
call fcn.10011070
lea ecx, [esp + 0x188]
mov byte [esp + 0x4bc], 2
call fcn.10011070
lea ecx, [esp + 0x1fc]
mov byte [esp + 0x4bc], 1
call fcn.10011070
lea ecx, [esp + 0x270]
mov byte [esp + 0x4bc], 0
call fcn.10011070
lea ecx, [esp + 0x28]
mov dword [esp + 0x4bc], 0xffffffff
call fcn.100616a0
xor al, al
jmp 0x10155478
lea ecx, [esp + 0x188]
call fcn.1008be90
cmp byte [esp + 0x17], 0
mov dword [esp + 0x24], eax
je 0x10154ef4
cmp byte [esi + 0x125], 0
je 0x10154eec
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push str.It_was_found_that_we_needed_a_NULL_password__not_a_zero_length_password...
mov ecx, esi
call eax
mov dword [esp + 0x24], 0
lea ecx, [esp + 0xa0]
call fcn.10010fb0
mov edx, dword [esp + 0x1c]
push esi
push 0
lea ecx, [esp + 0xa8]
push ecx
push 1
push 0
push edx
mov byte [esp + 0x4d4], 7
call fcn.10090510
mov bl, al
add esp, 0x18
test bl, bl
je 0x101553fe
lea ecx, [esp + 0x38]
call fcn.100182e0
mov byte [esp + 0x4bc], 8
call fcn.1004f6e0
mov edi, eax
test edi, edi
je 0x10154f9f
lea ecx, [esp + 0x1c]
call fcn.10061b30
push esi
push 1
lea eax, [esp + 0xa8]
push eax
mov ecx, edi
mov byte [esp + 0x4c8], 9
mov dword [esp + 0x2c], edi
call fcn.10055200
push 0
mov ecx, edi
call fcn.10052700
mov ebx, eax
test ebx, ebx
jne 0x10154fc9
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Not_PKCS12...
mov ecx, esi
call eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4bc], 8
call fcn.10061b40
lea ecx, [esp + 0x38]
mov byte [esp + 0x4bc], 7
call fcn.10018a90
lea ecx, [esp + 0xa0]
mov byte [esp + 0x4bc], 4
call fcn.10011070
jmp 0x10154e53
push str.sequence
mov ecx, ebx
call fcn.1004fcb0
test al, al
je 0x10154ff7
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.This_is_a_DER_certificate__not_PKCS12.
mov ecx, esi
call eax
mov ecx, ebx
call fcn.10049240
mov ecx, dword [esp + 0x18]
mov byte [ecx], 1
jmp 0x10154f8e
mov ecx, ebx
call fcn.10049240
push esi
lea edx, [esp + 0x3c]
push edx
push edi
mov ecx, ebp
call fcn.101528e0
lea ecx, [esp + 0x1c]
mov bl, al
mov byte [esp + 0x4bc], 8
call fcn.10061b40
test bl, bl
je 0x101553df
lea ecx, [esp + 0xa0]
call fcn.10010600
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push 1
push str.authenticatedSafe
mov ecx, esi
call edx
push esi
push 0
lea eax, [esp + 0xa8]
push eax
push 1
lea ecx, [esp + 0x48]
push 1
push ecx
call fcn.10090510
mov edx, dword [esi]
mov bl, al
mov eax, dword [edx + 0x28]
add esp, 0x18
mov ecx, esi
call eax
call fcn.1004f6e0
mov edi, eax
test edi, edi
je 0x10154f9f
lea ecx, [esp + 0x54]
call fcn.10061b30
push esi
push 1
lea ecx, [esp + 0xa8]
push ecx
mov ecx, edi
mov byte [esp + 0x4c8], 0xa
mov dword [esp + 0x64], edi
call fcn.10055200
mov ecx, edi
call fcn.10050810
cmp byte [esi + 0x125], 0
mov dword [esp + 0x1c], eax
je 0x101550c1
push eax
push str.nContentInfos
mov ecx, esi
call fcn.100612a0
lea ecx, [esp + 0x37c]
call fcn.1002a630
cmp dword [esp + 0x1c], 0
mov byte [esp + 0x4bc], 0xb
mov dword [esp + 0x18], 0
jle 0x101553b8
jmp 0x101550f0
push str.ContentInfo
push esi
lea ecx, [esp + 0x80]
call fcn.10061630
mov ebx, dword [esp + 0x18]
push ebx
mov ecx, esi
mov byte [esp + 0x4c0], 0xc
call fcn.10060560
push ebx
mov ecx, edi
call fcn.100524a0
lea ecx, [esp + 0xa0]
call fcn.10010600
push esi
lea edx, [esp + 0xa4]
push edx
push 0
mov ecx, edi
call fcn.10054d70
mov ecx, edi
call fcn.100536d0
lea ecx, [esp + 0x2e4]
call fcn.100bc9a0
movzx ecx, byte [ebp + 0x70]
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x24]
push esi
push eax
push ecx
push ebx
push 0
push 0
lea edx, [esp + 0xb8]
push edx
lea ecx, [esp + 0x300]
mov byte [esp + 0x4d8], 0xd
call fcn.100bef60
test al, al
jne 0x10155191
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Failed_to_load_PKCS7_and_convert_to_XML
mov ecx, esi
call edx
mov eax, dword [esp + 0x378]
cmp eax, 1
mov ecx, esi
jne 0x1015521c
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push str.PKCS7_DATA
call edx
push str.Data
push str.authenticatedSafe.contentInfo_i_.type
mov ecx, esi
call fcn.10060270
lea ecx, [esp + 0x5c]
call fcn.100182e0
push esi
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x2ec]
mov byte [esp + 0x4c4], 0xe
call fcn.100bcdf0
push esi
push ebx
lea ecx, [esp + 0x64]
push ecx
mov ecx, ebp
call fcn.10153a30
cmp byte [esp + 0x16], 0
mov bl, al
je 0x10155201
mov bl, 1
lea ecx, [esp + 0x5c]
jmp 0x10155324
test bl, bl
jne 0x10155213
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_process_PKCS7_DATA
mov ecx, esi
call eax
lea ecx, [esp + 0x5c]
jmp 0x10155324
cmp eax, 6
jne 0x1015529e
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push str.PKCS7_ENCRYPTED_DATA
call eax
push str.EncryptedData
push str.authenticatedSafe.contentInfo_i_.type
mov ecx, esi
call fcn.10060270
lea ecx, [esp + 0x5c]
call fcn.100182e0
push esi
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x2ec]
mov byte [esp + 0x4c4], 0xf
call fcn.100bcdf0
push esi
push ebx
lea edx, [esp + 0x64]
push edx
mov ecx, ebp
call fcn.10153a30
cmp byte [esp + 0x16], 0
mov bl, al
je 0x10155283
mov bl, 1
lea ecx, [esp + 0x5c]
jmp 0x10155324
test bl, bl
jne 0x10155295
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Failed_to_process_PKCS7_ENCRYPTED_DATA
mov ecx, esi
call edx
lea ecx, [esp + 0x5c]
jmp 0x10155324
cmp eax, 3
jne 0x10155371
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push str.PKCS7_ENVELOPED_DATA
call edx
push str.EnvelopedData
push str.authenticatedSafe.contentInfo_i_.type
mov ecx, esi
call fcn.10060270
lea ecx, [esp + 0x84]
call fcn.100182e0
push esi
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x2ec]
mov byte [esp + 0x4c4], 0x10
call fcn.100bcdf0
push esi
push ebx
lea ecx, [esp + 0x8c]
push ecx
mov ecx, ebp
call fcn.10153a30
cmp byte [esp + 0x16], 0
mov bl, al
je 0x1015530b
mov bl, 1
jmp 0x1015531d
test bl, bl
jne 0x1015531d
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_process_PKCS7_ENVELOPED_DATA
mov ecx, esi
call eax
lea ecx, [esp + 0x84]
mov byte [esp + 0x4bc], 0xd
call fcn.10018a90
test bl, bl
je 0x10155393
lea ecx, [esp + 0x2e4]
mov byte [esp + 0x4bc], 0xc
call fcn.100bdf70
lea ecx, [esp + 0x78]
mov byte [esp + 0x4bc], 0xb
call fcn.100616a0
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
jl 0x101550f0
jmp 0x101553b8
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Unanticipated_PKCS7_type.
call eax
mov ecx, dword [esp + 0x378]
push ecx
push str.Pkcs7_type
mov ecx, esi
call fcn.100612a0
xor bl, bl
lea ecx, [esp + 0x2e4]
mov byte [esp + 0x4bc], 0xc
call fcn.100bdf70
lea ecx, [esp + 0x78]
mov byte [esp + 0x4bc], 0xb
call fcn.100616a0
lea ecx, [esp + 0x37c]
mov byte [esp + 0x4bc], 0xa
call fcn.1002a650
lea ecx, [esp + 0x54]
mov byte [esp + 0x4bc], 8
call fcn.10061b40
jmp 0x101553ed
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_get_authenticated_safe.
mov ecx, esi
call eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x4bc], 7
call fcn.10018a90
lea ecx, [esp + 0xa0]
mov byte [esp + 0x4bc], 4
call fcn.10011070
lea ecx, [esp + 0x114]
mov byte [esp + 0x4bc], 3
call fcn.10011070
lea ecx, [esp + 0x188]
mov byte [esp + 0x4bc], 2
call fcn.10011070
lea ecx, [esp + 0x1fc]
mov byte [esp + 0x4bc], 1
call fcn.10011070
lea ecx, [esp + 0x270]
mov byte [esp + 0x4bc], 0
call fcn.10011070
lea ecx, [esp + 0x28]
mov dword [esp + 0x4bc], 0xffffffff
call fcn.100616a0
mov al, bl
mov ecx, dword [esp + 0x4b4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x49c]
xor ecx, esp
call fcn.1018f87e
add esp, 0x4ac
ret 0x14