Function at 0x5b7c90
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push 0xffffffffffffffff
push 0x6970d7
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 ebp, dword [esp + 0x46c]
mov edi, dword [esp + 0x464]
push str.msPadAndSignHashV2
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x20], eax
call fcn.004b1850
test ebp, ebp
mov dword [esp + 0x45c], 0
je 0x5b7de6
mov eax, dword [esp + 0x470]
test eax, eax
je 0x5b7de6
cmp eax, 0x80
ja 0x5b7de6
cmp byte [esi + 0x121], 0
mov ebx, dword [esp + 0x468]
je 0x5b7d7c
lea ecx, [esp + 0x44]
call fcn.00485650
lea ecx, [esp + 0x44]
push ecx
push ebx
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 0x5b7dc1
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x470]
push esi
push eax
push 1
push ecx
push ebp
push ebx
push edi
call fcn.005b7740
add esp, 0x1c
lea ecx, [esp + 0x1c]
mov bl, al
mov dword [esp + 0x45c], 0xffffffff
call fcn.004b18c0
mov al, bl
jmp 0x5b8198
mov ecx, dword [esp + 0x18]
call fcn.00467d60
push esi
mov ecx, edi
call fcn.00554a00
mov ebp, eax
test ebp, ebp
jne 0x5b7e01
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_get_MsCertificate.
mov ecx, esi
call eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x45c], 0xffffffff
call fcn.004b18c0
xor al, al
jmp 0x5b8198
push esi
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebp
mov dword [esp + 0x34], 0
call fcn.005ae4a0
test eax, eax
mov dword [esp + 0x34], eax
jne 0x5b7e5a
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x470]
mov ecx, dword [esp + 0x30]
push esi
push edx
push 1
push eax
push ecx
push ebx
push edi
call fcn.005b7740
add esp, 0x1c
lea ecx, [esp + 0x1c]
mov bl, al
mov dword [esp + 0x45c], 0xffffffff
call fcn.004b18c0
mov al, bl
jmp 0x5b8198
lea ecx, [esp + 0xb8]
call fcn.0047f3a0
push esi
lea edx, [esp + 0xbc]
push edx
mov ecx, edi
mov byte [esp + 0x464], 2
call fcn.005538f0
test al, al
je 0x5b7f6a
add ebp, 0x18
push ebp
lea ecx, [esp + 0xbc]
call fcn.00481140
test al, al
jne 0x5b7f6a
push str.setSmartCardPin
push esi
lea ecx, [esp + 0x40]
call fcn.004b1850
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push str.setting_smart_card_pin..
mov ecx, esi
mov byte [esp + 0x460], 3
call edx
lea ecx, [esp + 0xb8]
call fcn.00480160
push esi
push 0
push eax
mov eax, dword [esp + 0x40]
push 0x21
push eax
call fcn.005d5bd0
add esp, 0x14
test eax, eax
jne 0x5b7f4a
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.__3_
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 [edi + 0x150], 0
je 0x5b7f4a
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 0x5b7de6
lea ecx, [esp + 0xb8]
push ecx
mov ecx, ebp
call fcn.0047fac0
lea ecx, [esp + 0x38]
mov byte [esp + 0x45c], 2
call fcn.004b18c0
push ebx
call fcn.005b76f0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x5b7ff4
push esi
mov ecx, edi
call fcn.00554a00
mov edi, eax
test edi, edi
jne 0x5b7fae
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_get_MS_Certificate.
mov ecx, esi
call eax
lea ecx, [esp + 0xb8]
mov byte [esp + 0x45c], 0
call fcn.0047f440
jmp 0x5b7de6
lea ecx, [esp + 0x44]
call fcn.00485650
push esi
lea ecx, [esp + 0x48]
push ecx
mov ecx, edi
mov byte [esp + 0x464], 4
call fcn.005ae1a0
push str.VinRCSP
lea ecx, [esp + 0x48]
call fcn.00487710
test al, al
je 0x5b7fe3
mov ebp, 0x800c
lea ecx, [esp + 0x44]
mov byte [esp + 0x45c], 2
call fcn.00485710
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x14]
push edx
push 0
push 0
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x5b8055
push ebx
push str.hashAlg
mov ecx, esi
call fcn.004b14c0
push ebp
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
lea ecx, [esp + 0xb8]
mov byte [esp + 0x45c], 0
call fcn.0047f440
jmp 0x5b7de6
mov ecx, dword [esp + 0x470]
mov edx, dword [esp + 0x30]
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 0x5b80c6
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 0x5b7de6
xor eax, eax
test ebx, ebx
mov dword [esp + 0x28], 0x200
jne 0x5b80d7
lea eax, [ebx + 1]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x254]
push edx
push eax
mov eax, dword [esp + 0x38]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptSignHashA]
test eax, eax
jne 0x5b8126
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 0x5b7de6
cmp byte [esi + 0x121], 0
je 0x5b8140
mov eax, dword [esp + 0x28]
push eax
push str.cryptSigSize
mov ecx, esi
call fcn.004b14c0
mov ecx, dword [esp + 0x28]
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 0x5b816e
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ecx, [esp + 0xb8]
mov byte [esp + 0x45c], 0
call fcn.0047f440
lea ecx, [esp + 0x1c]
mov dword [esp + 0x45c], 0xffffffff
call fcn.004b18c0
mov al, 1
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