Function at 0x5b8220
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push 0xffffffffffffffff
push 0x697147
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x78f694]
xor eax, esp
mov dword [esp + 0x43c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x78f694]
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 ebx, dword [esp + 0x464]
push str.msCalcSslCertVerify
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x20], eax
call fcn.004b1850
test edi, edi
mov dword [esp + 0x45c], 0
je 0x5b8354
mov eax, dword [esp + 0x46c]
test eax, eax
je 0x5b8354
cmp eax, 0x80
ja 0x5b8354
cmp byte [esi + 0x121], 0
mov ebp, dword [esp + 0x470]
je 0x5b830c
lea ecx, [esp + 0x44]
call fcn.00485650
lea ecx, [esp + 0x44]
push ecx
push ebp
mov byte [esp + 0x464], 1
call fcn.0048d830
add esp, 8
lea edx, [esp + 0x44]
push edx
push str.hashAlg
mov ecx, esi
call fcn.004b1210
lea ecx, [esp + 0x44]
mov byte [esp + 0x45c], 0
call fcn.00485710
push esi
call fcn.005d5c60
add esp, 4
test al, al
jne 0x5b832f
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x46c]
push esi
push eax
push 1
push ecx
push edi
jmp 0x5b8767
mov ecx, dword [esp + 0x18]
call fcn.00467d60
push esi
mov ecx, ebx
call fcn.00554a00
mov edi, eax
test edi, edi
jne 0x5b836f
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.004b18c0
xor al, al
jmp 0x5b8789
push esi
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
mov dword [esp + 0x24], 0
call fcn.005ae4a0
mov edx, dword [esp + 0x1c]
push esi
push edx
mov dword [esp + 0x34], eax
call fcn.005b81c0
add esp, 8
cmp dword [esp + 0x2c], 0
je 0x5b8752
cmp dword [esp + 0x1c], 0xffffffff
je 0x5b8752
lea ecx, [esp + 0xb8]
call fcn.0047f3a0
push esi
lea eax, [esp + 0xbc]
push eax
mov ecx, ebx
mov byte [esp + 0x464], 2
call fcn.005538f0
test al, al
je 0x5b84bc
add edi, 0x18
push edi
lea ecx, [esp + 0xbc]
call fcn.00481140
test al, al
jne 0x5b84bc
push str.setSmartCardPin
push esi
lea ecx, [esp + 0x40]
call fcn.004b1850
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.00480160
mov ecx, dword [esp + 0x2c]
push esi
push 0
push eax
push 0x21
push ecx
call fcn.005d5bd0
add esp, 0x14
test eax, eax
jne 0x5b849c
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.004b1680
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push str.Incorrect_Smartcard_PIN
mov ecx, esi
call eax
cmp byte [ebx + 0x150], 0
je 0x5b849c
lea ecx, [esp + 0x38]
mov byte [esp + 0x45c], 2
call fcn.004b18c0
lea ecx, [esp + 0xb8]
mov byte [esp + 0x45c], 0
call fcn.0047f440
jmp 0x5b8354
lea ecx, [esp + 0xb8]
push ecx
mov ecx, edi
call fcn.0047fac0
lea ecx, [esp + 0x38]
mov byte [esp + 0x45c], 2
call fcn.004b18c0
cmp ebp, 0x10
jne 0x5b84c8
mov edi, 0x8008
jmp 0x5b84fc
cmp ebp, 7
jne 0x5b84d4
mov edi, 0x800c
jmp 0x5b84fc
cmp ebp, 2
jne 0x5b84e0
mov edi, 0x800d
jmp 0x5b84fc
cmp ebp, 3
jne 0x5b84ec
mov edi, 0x800e
jmp 0x5b84fc
xor edx, edx
cmp ebp, 5
setne dl
add edx, 0x8003
mov edi, edx
cmp dword [esp + 0x46c], 0x24
jne 0x5b850d
mov edi, 0x8008
jmp 0x5b858b
test edi, edi
jne 0x5b858b
push esi
mov ecx, ebx
call fcn.00554a00
mov ebx, eax
test ebx, ebx
jne 0x5b8545
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], bl
call fcn.0047f440
jmp 0x5b8354
lea ecx, [esp + 0x44]
call fcn.00485650
push esi
lea eax, [esp + 0x48]
push eax
mov ecx, ebx
mov byte [esp + 0x464], 4
call fcn.005ae1a0
push str.VinRCSP
lea ecx, [esp + 0x48]
call fcn.00487710
test al, al
je 0x5b857a
mov edi, 0x800c
lea ecx, [esp + 0x44]
mov byte [esp + 0x45c], 2
call fcn.00485710
mov ebx, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x5b860d
push ebp
push str.hashAlg
mov ecx, esi
call fcn.004b14c0
push edi
push str.algId
mov ecx, esi
call fcn.004b14c0
mov ecx, esi
call fcn.004b1680
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_create_HCRYPTHASH
mov ecx, esi
call eax
push ebx
call fcn.00535bd0
mov edi, eax
add esp, 4
test edi, edi
je 0x5b85f4
push esi
mov ecx, edi
call fcn.00536220
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
lea ecx, [esp + 0xb8]
mov byte [esp + 0x45c], 0
call fcn.0047f440
jmp 0x5b8354
mov ecx, dword [esp + 0x46c]
mov edx, dword [esp + 0x34]
push ecx
push edx
lea eax, [esp + 0x1d8]
push eax
call fcn.0047e290
mov edx, dword [esp + 0x20]
add esp, 0xc
push 0
lea ecx, [esp + 0x1d4]
push ecx
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
jne 0x5b867e
mov ecx, esi
call fcn.004b1680
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_CryptSetHashParam
mov ecx, esi
call eax
lea ecx, [esp + 0xb8]
mov byte [esp + 0x45c], 0
call fcn.0047f440
jmp 0x5b8354
xor eax, eax
test ebp, ebp
mov dword [esp + 0x30], 0x200
jne 0x5b868f
lea eax, [ebp + 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 0x5b86de
mov ecx, esi
call fcn.004b1680
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.0047f440
jmp 0x5b8354
cmp byte [esi + 0x121], 0
je 0x5b86f8
mov eax, dword [esp + 0x30]
push eax
push str.cryptSigSize
mov ecx, esi
call fcn.004b14c0
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x254]
push edx
mov ecx, esi
call fcn.00469150
mov ecx, esi
call fcn.00468330
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5b8726
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ecx, [esp + 0xb8]
mov byte [esp + 0x45c], 0
call fcn.0047f440
lea ecx, [esp + 0x20]
mov dword [esp + 0x45c], 0xffffffff
call fcn.004b18c0
mov al, 1
jmp 0x5b8789
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 ebp
push ebx
call fcn.005b7740
add esp, 0x1c
lea ecx, [esp + 0x20]
mov bl, al
mov dword [esp + 0x45c], 0xffffffff
call fcn.004b18c0
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.0062cbd3
add esp, 0x44c
ret