Function at 0x101820f0
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push 0xffffffffffffffff
push 0x101aad87
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x1026d48c]
xor eax, esp
mov dword [esp + 0x43c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1026d48c]
xor eax, esp
push eax
lea eax, [esp + 0x454]
mov dword fs:[0], eax
mov eax, dword [esp + 0x474]
mov esi, dword [esp + 0x478]
mov edi, dword [esp + 0x468]
mov ebp, dword [esp + 0x464]
push str.msCalcSslCertVerify
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x20], eax
call fcn.10061630
test edi, edi
mov dword [esp + 0x45c], 0
je 0x10182224
mov eax, dword [esp + 0x46c]
test eax, eax
je 0x10182224
cmp eax, 0x80
ja 0x10182224
cmp byte [esi + 0x125], 0
mov ebx, dword [esp + 0x470]
je 0x101821dc
lea ecx, [esp + 0x44]
call fcn.10010fb0
lea ecx, [esp + 0x44]
push ecx
push ebx
mov byte [esp + 0x464], 1
call fcn.1007cdc0
add esp, 8
lea edx, [esp + 0x44]
push edx
push str.hashAlg
mov ecx, esi
call fcn.10060fd0
lea ecx, [esp + 0x44]
mov byte [esp + 0x45c], 0
call fcn.10011070
push esi
call fcn.100d55a0
add esp, 4
test al, al
jne 0x101821ff
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x46c]
push esi
push eax
push 1
push ecx
push edi
jmp 0x10182619
mov ecx, dword [esp + 0x18]
call fcn.10017ff0
push esi
mov ecx, ebp
call fcn.100b6720
mov edi, eax
test edi, edi
jne 0x1018223f
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_get_MsCertificate.
mov ecx, esi
call eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x45c], 0xffffffff
call fcn.100616a0
xor al, al
jmp 0x1018263b
push esi
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
mov dword [esp + 0x24], 0
call fcn.10159b60
mov edx, dword [esp + 0x1c]
push esi
push edx
mov dword [esp + 0x34], eax
call fcn.10182090
add esp, 8
cmp dword [esp + 0x2c], 0
je 0x10182604
cmp dword [esp + 0x1c], 0xffffffff
je 0x10182604
lea ecx, [esp + 0xb8]
call fcn.1000a870
push esi
lea eax, [esp + 0xbc]
push eax
mov ecx, ebp
mov byte [esp + 0x464], 2
call fcn.100b4e40
test al, al
je 0x1018238c
add edi, 0x18
push edi
lea ecx, [esp + 0xbc]
call fcn.1000c6c0
test al, al
jne 0x1018238c
push str.setSmartCardPin6
push esi
lea ecx, [esp + 0x40]
call fcn.10061630
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push str.setting_smart_card_pin..
mov ecx, esi
mov byte [esp + 0x460], 3
call eax
lea ecx, [esp + 0xb8]
call fcn.1000b6e0
mov ecx, dword [esp + 0x2c]
push esi
push 0
push eax
push 0x21
push ecx
call fcn.100d5510
add esp, 0x14
test eax, eax
jne 0x1018236c
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.CryptSetProvParam_failed.
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_set_the_smartcard_PIN.__4_
mov ecx, esi
call eax
mov ecx, esi
call fcn.10061460
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push str.Incorrect_Smartcard_PIN
mov ecx, esi
call eax
cmp byte [ebp + 0x150], 0
je 0x1018236c
lea ecx, [esp + 0x38]
mov byte [esp + 0x45c], 2
call fcn.100616a0
lea ecx, [esp + 0xb8]
mov byte [esp + 0x45c], 0
call fcn.1000a910
jmp 0x10182224
lea ecx, [esp + 0xb8]
push ecx
mov ecx, edi
call fcn.1000b020
lea ecx, [esp + 0x38]
mov byte [esp + 0x45c], 2
call fcn.100616a0
cmp ebx, 0x10
jne 0x10182398
mov edi, 0x8008
jmp 0x101823cc
cmp ebx, 7
jne 0x101823a4
mov edi, 0x800c
jmp 0x101823cc
cmp ebx, 2
jne 0x101823b0
mov edi, 0x800d
jmp 0x101823cc
cmp ebx, 3
jne 0x101823bc
mov edi, 0x800e
jmp 0x101823cc
xor edx, edx
cmp ebx, 5
setne dl
add edx, 0x8003
mov edi, edx
cmp dword [esp + 0x46c], 0x24
jne 0x101823dd
mov edi, 0x8008
jmp 0x1018245c
test edi, edi
jne 0x1018245c
push esi
mov ecx, ebp
call fcn.100b6720
mov ebp, eax
test ebp, ebp
jne 0x10182416
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Failed_to_get_MS_Certificate.
mov ecx, esi
call edx
lea ecx, [esp + 0xb8]
mov byte [esp + 0x45c], 0
call fcn.1000a910
jmp 0x10182224
lea ecx, [esp + 0x44]
call fcn.10010fb0
push esi
lea eax, [esp + 0x48]
push eax
mov ecx, ebp
mov byte [esp + 0x464], 4
call fcn.10159840
push str.VinRCSP
lea ecx, [esp + 0x48]
call fcn.100131b0
test al, al
je 0x1018244b
mov edi, 0x800c
lea ecx, [esp + 0x44]
mov byte [esp + 0x45c], 2
call fcn.10011070
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x101824bd
push ebx
push str.hashAlg
mov ecx, esi
call fcn.100612a0
push edi
push str.algId
mov ecx, esi
call fcn.100612a0
mov ecx, esi
call fcn.10061460
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Failed_to_create_HCRYPTHASH
mov ecx, esi
call edx
lea ecx, [esp + 0xb8]
mov byte [esp + 0x45c], 0
call fcn.1000a910
jmp 0x10182224
mov eax, dword [esp + 0x46c]
mov ecx, dword [esp + 0x34]
push eax
push ecx
lea edx, [esp + 0x1d8]
push edx
call fcn.10016e70
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 0
lea eax, [esp + 0x1d4]
push eax
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
jne 0x1018252e
mov ecx, esi
call fcn.10061460
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Failed_to_CryptSetHashParam
mov ecx, esi
call edx
lea ecx, [esp + 0xb8]
mov byte [esp + 0x45c], 0
call fcn.1000a910
jmp 0x10182224
xor eax, eax
test ebx, ebx
mov dword [esp + 0x30], 0x200
jne 0x10182541
mov eax, 1
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x254]
push edx
push eax
mov eax, dword [esp + 0x28]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptSignHashA]
test eax, eax
jne 0x10182590
mov ecx, esi
call fcn.10061460
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ecx, [esp + 0xb8]
mov byte [esp + 0x45c], 0
call fcn.1000a910
jmp 0x10182224
cmp byte [esi + 0x125], 0
je 0x101825aa
mov eax, dword [esp + 0x30]
push eax
push str.cryptSigSize
mov ecx, esi
call fcn.100612a0
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x254]
push edx
mov ecx, esi
call fcn.10019380
mov ecx, esi
call fcn.100185a0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x101825d8
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ecx, [esp + 0xb8]
mov byte [esp + 0x45c], 0
call fcn.1000a910
lea ecx, [esp + 0x20]
mov dword [esp + 0x45c], 0xffffffff
call fcn.100616a0
mov al, 1
jmp 0x1018263b
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x46c]
mov edx, dword [esp + 0x34]
push esi
push eax
push 1
push ecx
push edx
push ebx
push ebp
call fcn.101814f0
add esp, 0x1c
lea ecx, [esp + 0x20]
mov bl, al
mov dword [esp + 0x45c], 0xffffffff
call fcn.100616a0
mov al, bl
mov ecx, dword [esp + 0x454]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x43c]
xor ecx, esp
call fcn.1018f87e
add esp, 0x44c
ret