Function at 0x584770
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cb991
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2b4]
mov esi, dword [ebp + 0x1c]
xorps xmm0, xmm0
mov ebx, dword [ebp + 0xc]
push str.msCalcSslCertVerify
mov dword [ebp - 0x448], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x450], ebx
mov dword [ebp - 0x444], eax
movq qword [ebp - 0x2b4], xmm0
mov dword [ebp - 0x2ac], 0
call fcn.00447ef0
mov dword [ebp - 4], 0
test ebx, ebx
je 0x5848a6
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x5848a6
cmp ebx, 0x80
ja 0x5848a6
cmp byte [esi + 0x129], 0
mov edi, dword [ebp + 0x14]
je 0x584868
push 0x74
lea eax, [ebp - 0x328]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x328]
call fcn.0042a8a0
lea eax, [ebp - 0x328]
mov byte [ebp - 4], 1
push eax
push edi
call fcn.0046fd20
add esp, 8
lea eax, [ebp - 0x328]
mov ecx, esi
push eax
push str.hashAlg
call fcn.00448a80
lea ecx, [ebp - 0x328]
mov byte [ebp - 4], 0
call fcn.0042a8f0
push esi
call fcn.005846b0
add esp, 4
test al, al
je 0x584c5c
mov ecx, dword [ebp - 0x444]
call fcn.00436ad0
mov ecx, dword [ebp - 0x448]
push esi
call fcn.004abb00
mov dword [ebp - 0x454], eax
test eax, eax
jne 0x5848d1
mov eax, dword [esi]
mov ecx, esi
push str.Failed_to_get_MsCertificate.
call dword [eax + 0x14]
xor bl, bl
lea ecx, [ebp - 0x2b4]
call fcn.00447ff0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x298]
mov dword [ebp - 0x298], 0
push ecx
mov ecx, eax
call fcn.0053cf20
mov ecx, dword [ebp - 0x298]
mov dword [ebp - 0x44c], eax
cmp ecx, 0xffffffff
jne 0x58490e
mov edx, dword [esi]
mov ecx, esi
push str.CERT_NCRYPT_KEY_SPEC
push str.dwKeySpec
call dword [edx + 0x2c]
jmp 0x58494b
cmp ecx, 2
jne 0x584926
mov eax, dword [esi]
mov ecx, esi
push str.AT_SIGNATURE
push str.dwKeySpec
call dword [eax + 0x2c]
jmp 0x58494b
cmp ecx, 1
jne 0x58493e
mov eax, dword [esi]
mov ecx, esi
push str.AT_KEYEXCHANGE
push str.dwKeySpec
call dword [eax + 0x2c]
jmp 0x58494b
push ecx
push str.dwKeySpec
mov ecx, esi
call fcn.00448f50
cmp dword [ebp - 0x44c], 0
je 0x584c5c
cmp dword [ebp - 0x298], 0xffffffff
je 0x584c5c
push 0x118
lea eax, [ebp - 0x440]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x440]
call fcn.00403870
mov ebx, dword [ebp - 0x448]
lea eax, [ebp - 0x440]
push esi
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004ac6a0
test al, al
je 0x584a95
mov eax, dword [ebp - 0x454]
lea ecx, [ebp - 0x440]
add eax, 0x18
push eax
mov dword [ebp - 0x454], eax
call fcn.00405170
test al, al
jne 0x584a95
push str.setSmartCardPin6
xorps xmm0, xmm0
mov dword [ebp - 0x2a0], 0
push esi
lea ecx, [ebp - 0x2a8]
movq qword [ebp - 0x2a8], xmm0
call fcn.00447ef0
mov eax, dword [esi]
mov ecx, esi
push str.setting_smart_card_pin..
mov byte [ebp - 4], 3
call dword [eax + 0x18]
lea ecx, [ebp - 0x440]
call fcn.00405370
push esi
push 0
push eax
push 0x21
push dword [ebp - 0x44c]
call fcn.00584530
add esp, 0x14
test eax, eax
jne 0x584a74
mov eax, dword [esi]
mov ecx, esi
push str.CryptSetProvParam_failed.
call dword [eax + 0x14]
mov eax, dword [esi]
mov ecx, esi
push str.Failed_to_set_the_smartcard_PIN.__4_
call dword [eax + 0x14]
mov ecx, esi
call fcn.00448fd0
mov eax, dword [esi]
mov ecx, esi
push str.Incorrect_Smartcard_PIN
call dword [eax + 0x18]
cmp byte [ebx + 0x150], 0
je 0x584a74
lea ecx, [ebp - 0x2a8]
call fcn.00447ff0
lea ecx, [ebp - 0x440]
xor bl, bl
call fcn.00403900
jmp 0x5848a8
mov ecx, dword [ebp - 0x454]
lea eax, [ebp - 0x440]
push eax
call fcn.00404b80
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 2
call fcn.00447ff0
cmp edi, 0x10
jne 0x584aa1
mov ebx, 0x8008
jmp 0x584ad3
cmp edi, 7
jne 0x584aad
mov ebx, 0x800c
jmp 0x584ad3
cmp edi, 2
jne 0x584ab9
mov ebx, 0x800d
jmp 0x584ad3
cmp edi, 3
jne 0x584ac5
mov ebx, 0x800e
jmp 0x584ad3
xor ebx, ebx
cmp edi, 5
setne bl
add ebx, 0x8003
cmp dword [ebp + 0x10], 0x24
mov eax, 0x8008
cmove ebx, eax
lea eax, [ebp - 0x294]
push eax
push 0
push 0
push ebx
push dword [ebp - 0x44c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x584b3a
push edi
push str.hashAlg
mov ecx, esi
call fcn.00448710
push ebx
push str.algId
mov ecx, esi
call fcn.00448710
mov ecx, esi
call fcn.00448fd0
mov eax, dword [esi]
mov ecx, esi
push str.Failed_to_create_HCRYPTHASH
call dword [eax + 0x14]
lea ecx, [ebp - 0x440]
xor bl, bl
call fcn.00403900
jmp 0x5848a8
push dword [ebp + 0x10]
lea eax, [ebp - 0x90]
push dword [ebp - 0x450]
push eax
call fcn.0040de00
add esp, 0xc
lea eax, [ebp - 0x90]
push 0
push eax
push 2
push dword [ebp - 0x294]
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
jne 0x584b9e
mov ecx, esi
call fcn.00448fd0
push dword [ebp - 0x294]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esi]
mov ecx, esi
push str.Failed_to_CryptSetHashParam
call dword [eax + 0x14]
lea ecx, [ebp - 0x440]
xor bl, bl
call fcn.00403900
jmp 0x5848a8
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x29c], 0x200
push eax
lea eax, [ebp - 0x290]
push eax
xor eax, eax
test edi, edi
sete al
push eax
push 0
push dword [ebp - 0x298]
push dword [ebp - 0x294]
call dword [sym.imp.ADVAPI32.dll_CryptSignHashA]
test eax, eax
jne 0x584bfb
mov ecx, esi
call fcn.00448fd0
push dword [ebp - 0x294]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ecx, [ebp - 0x440]
xor bl, bl
call fcn.00403900
jmp 0x5848a8
cmp byte [esi + 0x129], 0
je 0x584c16
push dword [ebp - 0x29c]
mov ecx, esi
push str.cryptSigSize
call fcn.00448710
push dword [ebp - 0x29c]
mov ecx, dword [ebp - 0x444]
lea eax, [ebp - 0x290]
push eax
call fcn.004351f0
mov ecx, dword [ebp - 0x444]
call fcn.0043a800
mov eax, dword [ebp - 0x294]
test eax, eax
je 0x584c4a
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ecx, [ebp - 0x440]
mov bl, 1
call fcn.00403900
jmp 0x5848a8
push esi
push dword [ebp - 0x444]
push 1
push ebx
push dword [ebp - 0x450]
push edi
push dword [ebp - 0x448]
call fcn.00584c90
add esp, 0x1c
mov bl, al
jmp 0x5848a8