Function at 0x5a4810
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push 0xffffffffffffffff
push 0x653387
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x430
push ebx
push ebp
push esi
mov esi, dword [esp + 0x460]
push edi
push str.msCalcSslCertVerify
push esi
lea ecx, [esp + 0x20]
call fcn.004f0370
mov ebp, dword [esp + 0x454]
xor ebx, ebx
cmp ebp, ebx
mov dword [esp + 0x448], ebx
je 0x5a4c05
mov edi, dword [esp + 0x458]
cmp edi, ebx
je 0x5a4c05
cmp edi, 0x80
ja 0x5a4c05
mov al, byte [esi + 0x121]
test al, al
je 0x5a48c9
lea ecx, [esp + 0x34]
call fcn.004e57f0
mov ecx, dword [esp + 0x45c]
lea eax, [esp + 0x34]
push eax
push ecx
mov byte [esp + 0x450], 1
call fcn.0055ceb0
add esp, 8
lea edx, [esp + 0x34]
mov ecx, esi
push edx
push str.hashAlg
call fcn.004efcb0
lea ecx, [esp + 0x34]
mov byte [esp + 0x448], bl
call fcn.004e58d0
push esi
call fcn.0062c020
add esp, 4
test al, al
jne 0x5a48f8
mov eax, dword [esp + 0x460]
mov ecx, dword [esp + 0x45c]
mov edx, dword [esp + 0x450]
push esi
push eax
push 1
push edi
push ebp
push ecx
push edx
jmp 0x5a4cbc
mov ecx, dword [esp + 0x460]
call fcn.004dd9e0
mov ebp, dword [esp + 0x450]
push esi
mov ecx, ebp
call fcn.0059f450
mov edi, eax
cmp edi, ebx
jne 0x5a492a
mov eax, dword [esi]
push str.Failed_to_get_MsCertificate.
mov ecx, esi
call dword [eax + 0x14]
jmp 0x5a4c05
lea ecx, [esp + 0x14]
push esi
push ecx
mov ecx, edi
mov dword [esp + 0x1c], ebx
call fcn.005a9c90
mov edx, dword [esp + 0x14]
push esi
push edx
mov ebx, eax
call fcn.005a47b0
add esp, 8
test ebx, ebx
je 0x5a4c98
cmp dword [esp + 0x14], 0xffffffff
je 0x5a4c98
lea ecx, [esp + 0xa8]
call fcn.004d91b0
lea eax, [esp + 0xa8]
push esi
push eax
mov ecx, ebp
mov byte [esp + 0x450], 2
call fcn.005a13c0
test al, al
je 0x5a4a4f
add edi, 0x18
lea ecx, [esp + 0xa8]
push edi
call fcn.004dbf20
test al, al
jne 0x5a4a4f
push str.setSmartCardPin
push esi
lea ecx, [esp + 0x30]
call fcn.004f0370
mov edx, dword [esi]
push str.setting_smart_card_pin..
mov ecx, esi
mov byte [esp + 0x44c], 3
call dword [edx + 0x18]
lea ecx, [esp + 0xa8]
call fcn.004da900
push esi
push 0
push eax
push 0x21
push ebx
call fcn.0062bf60
add esp, 0x14
test eax, eax
jne 0x5a4a2f
mov eax, dword [esi]
push str.CryptSetProvParam_failed.
mov ecx, esi
call dword [eax + 0x14]
mov edx, dword [esi]
push str.Failed_to_set_the_smartcard_PIN.__4_
mov ecx, esi
call dword [edx + 0x14]
mov ecx, esi
call fcn.004f01e0
mov eax, dword [esi]
push str.Incorrect_Smartcard_PIN
mov ecx, esi
call dword [eax + 0x18]
mov al, byte [ebp + 0x150]
test al, al
je 0x5a4a2f
lea ecx, [esp + 0x28]
mov byte [esp + 0x448], 2
call fcn.004f03e0
jmp 0x5a4bf1
lea ecx, [esp + 0xa8]
push ecx
mov ecx, edi
call fcn.004d99c0
lea ecx, [esp + 0x28]
mov byte [esp + 0x448], 2
call fcn.004f03e0
mov eax, dword [esp + 0x45c]
cmp eax, 0x10
jne 0x5a4a62
mov edi, 0x8008
jmp 0x5a4a72
xor edx, edx
cmp eax, 5
setne dl
add edx, 0x8003
mov edi, edx
cmp dword [esp + 0x458], 0x24
jne 0x5a4a83
mov edi, 0x8008
jmp 0x5a4ad5
test edi, edi
jne 0x5a4ad5
push esi
mov ecx, ebp
call fcn.0059f450
mov ebp, eax
test ebp, ebp
jne 0x5a4aa6
mov eax, dword [esi]
push str.Failed_to_get_MS_Certificate.
mov ecx, esi
call dword [eax + 0x14]
jmp 0x5a4bf1
lea ecx, [esp + 0x34]
call fcn.004e57f0
lea ecx, [esp + 0x34]
push esi
push ecx
mov ecx, ebp
mov byte [esp + 0x450], 4
call fcn.005a9950
lea ecx, [esp + 0x34]
mov byte [esp + 0x448], 2
call fcn.004e58d0
lea edx, [esp + 0x10]
push edx
push 0
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x5a4b46
mov eax, dword [esp + 0x45c]
mov ecx, esi
push eax
push str.hashAlg
call fcn.004effe0
push edi
push str.algId
mov ecx, esi
call fcn.004effe0
mov ecx, esi
call fcn.004f01e0
mov edx, dword [esi]
push str.Failed_to_create_HCRYPTHASH
mov ecx, esi
call dword [edx + 0x14]
push ebx
call fcn.0056c390
mov edi, eax
add esp, 4
test edi, edi
je 0x5a4bf1
push esi
mov ecx, edi
call fcn.0056c990
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
jmp 0x5a4bf1
mov ecx, dword [esp + 0x458]
mov edx, dword [esp + 0x454]
push ecx
lea eax, [esp + 0x1c4]
push edx
push eax
call fcn.004f1950
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x1c0]
push 0
push ecx
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
jne 0x5a4ba1
mov ecx, esi
call fcn.004f01e0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [esi]
push str.Failed_to_CryptSetHashParam
mov ecx, esi
call dword [edx + 0x14]
jmp 0x5a4bf1
mov ecx, dword [esp + 0x45c]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x24], 0x200
jne 0x5a4bbb
mov eax, 1
lea ecx, [esp + 0x24]
lea edx, [esp + 0x240]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x20]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptSignHashA]
test eax, eax
jne 0x5a4c20
mov ecx, esi
call fcn.004f01e0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ecx, [esp + 0xa8]
mov byte [esp + 0x448], 0
call fcn.004d9240
lea ecx, [esp + 0x18]
mov dword [esp + 0x448], 0xffffffff
call fcn.004f03e0
xor al, al
jmp 0x5a4cdc
mov al, byte [esi + 0x121]
test al, al
je 0x5a4c3b
mov eax, dword [esp + 0x24]
mov ecx, esi
push eax
push str.cryptSigSize
call fcn.004effe0
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x460]
lea edx, [esp + 0x240]
push ecx
push edx
mov ecx, esi
call fcn.004e1260
mov ecx, esi
call fcn.004e0070
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5a4c6c
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ecx, [esp + 0xa8]
mov byte [esp + 0x448], 0
call fcn.004d9240
lea ecx, [esp + 0x18]
mov dword [esp + 0x448], 0xffffffff
call fcn.004f03e0
mov al, 1
jmp 0x5a4cdc
mov eax, dword [esp + 0x460]
mov ecx, dword [esp + 0x458]
mov edx, dword [esp + 0x454]
push esi
push eax
mov eax, dword [esp + 0x464]
push 1
push ecx
push edx
push eax
push ebp
call fcn.005a3eb0
add esp, 0x1c
lea ecx, [esp + 0x18]
mov bl, al
mov dword [esp + 0x448], 0xffffffff
call fcn.004f03e0
mov al, bl
mov ecx, dword [esp + 0x440]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x43c
ret