Function at 0x556150
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74c0a7
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x899944]
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 + 0x18]
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push str.msCalcSslCertVerify
push esi
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x43c], ebx
mov dword [ebp - 0x428], eax
call fcn.00474ef0
mov dword [ebp - 4], 0
test ebx, ebx
je 0x55628d
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x55628d
cmp eax, 0x80
ja 0x55628d
cmp byte [esi + 0xad], 0
mov ebx, dword [ebp + 0x14]
je 0x55621f
lea ecx, [ebp - 0x304]
call fcn.0040ac30
lea ecx, [ebp - 0x304]
push ecx
push ebx
mov byte [ebp - 4], 1
call fcn.00488ca0
add esp, 8
lea edx, [ebp - 0x304]
push edx
push str.hashAlg
mov ecx, esi
call fcn.00474890
lea ecx, [ebp - 0x304]
mov byte [ebp - 4], 0
call fcn.0040acf0
push esi
call fcn.0056a410
add esp, 4
test al, al
jne 0x556266
mov eax, dword [ebp - 0x428]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x43c]
push esi
push eax
push 1
push ecx
push edx
push ebx
push edi
call fcn.00555890
add esp, 0x1c
lea ecx, [ebp - 0x438]
mov bl, al
mov dword [ebp - 4], 0xffffffff
call fcn.00474f80
mov al, bl
jmp 0x55661b
mov ecx, dword [ebp - 0x428]
call fcn.0040fb90
push esi
mov ecx, edi
call fcn.0052a270
mov edi, eax
test edi, edi
jne 0x5562a6
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Failed_to_get_MsCertificate.
mov ecx, esi
call edx
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 0xffffffff
call fcn.00474f80
xor al, al
jmp 0x55661b
push esi
lea eax, [ebp - 0x440]
push eax
mov ecx, edi
mov dword [ebp - 0x440], 0
call fcn.0052f5c0
mov dword [ebp - 0x444], eax
test eax, eax
jne 0x556309
mov ecx, dword [ebp - 0x428]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x43c]
push esi
push ecx
mov ecx, dword [ebp - 0x424]
push 1
push edx
push eax
push ebx
push ecx
call fcn.00555890
add esp, 0x1c
lea ecx, [ebp - 0x438]
mov bl, al
mov dword [ebp - 4], 0xffffffff
call fcn.00474f80
mov al, bl
jmp 0x55661b
lea ecx, [ebp - 0x41c]
call fcn.00403e00
mov ecx, dword [ebp - 0x424]
push esi
lea edx, [ebp - 0x41c]
push edx
mov byte [ebp - 4], 2
call fcn.00529580
test al, al
je 0x5563d1
add edi, 0x18
push edi
lea ecx, [ebp - 0x41c]
call fcn.004059e0
test al, al
jne 0x5563d1
push str.setSmartCardPin
push esi
lea ecx, [ebp - 0x450]
call fcn.00474ef0
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push str.setting_smart_card_pin..
mov ecx, esi
mov byte [ebp - 4], 3
call edx
lea ecx, [ebp - 0x41c]
call fcn.00404b50
push esi
push 0
push eax
mov eax, dword [ebp - 0x444]
push 0x21
push eax
call fcn.0056a320
add esp, 0x14
test eax, eax
jne 0x5563b4
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.
mov ecx, esi
call eax
mov ecx, esi
call fcn.00474d10
lea ecx, [ebp - 0x41c]
push ecx
mov ecx, edi
call fcn.00404500
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 2
call fcn.00474f80
cmp ebx, 0x10
jne 0x5563dd
mov edi, 0x8008
jmp 0x55640f
cmp ebx, 7
jne 0x5563e9
mov edi, 0x800c
jmp 0x55640f
cmp ebx, 2
jne 0x5563f5
mov edi, 0x800d
jmp 0x55640f
cmp ebx, 3
jne 0x556401
mov edi, 0x800e
jmp 0x55640f
xor edx, edx
cmp ebx, 5
setne dl
lea edi, [edx + 0x8003]
cmp dword [ebp + 0x10], 0x24
jne 0x55641f
mov edi, 0x8008
jmp 0x5564a9
test edi, edi
jne 0x5564a9
mov ecx, dword [ebp - 0x424]
push esi
call fcn.0052a270
mov dword [ebp - 0x424], eax
test eax, eax
jne 0x55645f
push str.Failed_to_get_MS_Certificate.
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
mov ecx, esi
call edx
lea ecx, [ebp - 0x41c]
mov byte [ebp - 4], 0
call fcn.00403e90
jmp 0x55628d
lea ecx, [ebp - 0x304]
call fcn.0040ac30
mov ecx, dword [ebp - 0x424]
push esi
lea eax, [ebp - 0x304]
push eax
mov byte [ebp - 4], 4
call fcn.0052f290
push str.VinRCSP
lea ecx, [ebp - 0x304]
call fcn.0040c630
test al, al
je 0x55649a
mov edi, 0x800c
lea ecx, [ebp - 0x304]
mov byte [ebp - 4], 2
call fcn.0040acf0
mov edx, dword [ebp - 0x444]
lea ecx, [ebp - 0x420]
push ecx
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x5564f1
push ebx
push str.hashAlg
mov ecx, esi
call fcn.00474a80
push edi
push str.algId
mov ecx, esi
call fcn.00474a80
mov ecx, esi
call fcn.00474d10
push str.Failed_to_create_HCRYPTHASH
jmp 0x556442
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x43c]
push eax
push ecx
lea edx, [ebp - 0x90]
push edx
call fcn.00408d60
mov ecx, dword [ebp - 0x420]
add esp, 0xc
push 0
lea eax, [ebp - 0x90]
push eax
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
jne 0x556545
mov ecx, esi
call fcn.00474d10
mov edx, dword [ebp - 0x420]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push str.Failed_to_CryptSetHashParam
jmp 0x556442
xor eax, eax
mov dword [ebp - 0x42c], 0x200
test ebx, ebx
jne 0x556558
lea eax, [ebx + 1]
lea ecx, [ebp - 0x42c]
push ecx
mov ecx, dword [ebp - 0x420]
lea edx, [ebp - 0x290]
push edx
push eax
mov eax, dword [ebp - 0x440]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptSignHashA]
test eax, eax
jne 0x5565a9
mov ecx, esi
call fcn.00474d10
mov edx, dword [ebp - 0x420]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ecx, [ebp - 0x41c]
mov byte [ebp - 4], 0
call fcn.00403e90
jmp 0x55628d
cmp byte [esi + 0xad], 0
je 0x5565c5
mov eax, dword [ebp - 0x42c]
push eax
push str.cryptSigSize
mov ecx, esi
call fcn.00474a80
mov ecx, dword [ebp - 0x42c]
mov esi, dword [ebp - 0x428]
push ecx
lea edx, [ebp - 0x290]
push edx
mov ecx, esi
call fcn.00411260
mov ecx, esi
call fcn.00410070
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x5565f8
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ecx, [ebp - 0x41c]
mov byte [ebp - 4], 0
call fcn.00403e90
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 0xffffffff
call fcn.00474f80
mov al, 1
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.0070bb4c
mov esp, ebp
pop ebp
ret