Function at 0x53e1a0
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1027
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x676664]
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 + 0xc]
mov ebx, dword [ebp + 8]
push str.msCalcSslCertVerify
push esi
lea ecx, [ebp - 0x434]
mov dword [ebp - 0x440], edi
mov dword [ebp - 0x424], eax
call fcn.0044ec60
mov dword [ebp - 4], 0
test edi, edi
je 0x53e2ab
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x53e2ab
cmp eax, 0x80
ja 0x53e2ab
cmp byte [esi + 0x125], 0
je 0x53e269
lea ecx, [ebp - 0x304]
call fcn.00444390
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0x304]
push ecx
push edx
mov byte [ebp - 4], 1
call fcn.00470150
add esp, 8
lea eax, [ebp - 0x304]
push eax
push str.hashAlg
mov ecx, esi
call fcn.0044e520
lea ecx, [ebp - 0x304]
mov byte [ebp - 4], 0
call fcn.00444450
push esi
call fcn.00581d10
mov ecx, dword [ebp - 0x424]
add esp, 4
test al, al
jne 0x53e28a
mov edx, dword [ebp + 0x10]
push esi
push ecx
push 1
push edx
push edi
jmp 0x53e676
call fcn.00410b40
push esi
mov ecx, ebx
call fcn.004e6e80
mov edi, eax
test edi, edi
jne 0x53e2c4
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_get_MsCertificate.
mov ecx, esi
call eax
lea ecx, [ebp - 0x434]
mov dword [ebp - 4], 0xffffffff
call fcn.0044ecf0
xor al, al
jmp 0x53e699
push esi
lea ecx, [ebp - 0x428]
push ecx
mov ecx, edi
mov dword [ebp - 0x428], 0
call fcn.005409b0
mov edx, dword [ebp - 0x428]
push esi
push edx
mov dword [ebp - 0x43c], eax
call fcn.0053e140
add esp, 8
cmp dword [ebp - 0x43c], 0
je 0x53e661
cmp dword [ebp - 0x428], 0xffffffff
je 0x53e661
lea ecx, [ebp - 0x41c]
call fcn.0040c500
push esi
lea eax, [ebp - 0x41c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004e5610
test al, al
je 0x53e40b
add edi, 0x18
push edi
lea ecx, [ebp - 0x41c]
call fcn.0040dd10
test al, al
jne 0x53e40b
push str.setSmartCardPin6
push esi
lea ecx, [ebp - 0x44c]
call fcn.0044ec60
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push str.setting_smart_card_pin..
mov ecx, esi
mov byte [ebp - 4], 3
call eax
lea ecx, [ebp - 0x41c]
call fcn.0040d1f0
mov ecx, dword [ebp - 0x43c]
push esi
push 0
push eax
push 0x21
push ecx
call fcn.00581ca0
add esp, 0x14
test eax, eax
jne 0x53e3ee
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.0044ea80
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 0x53e3ee
lea ecx, [ebp - 0x44c]
mov byte [ebp - 4], 2
call fcn.0044ecf0
lea ecx, [ebp - 0x41c]
mov byte [ebp - 4], 0
call fcn.0040c590
jmp 0x53e2ab
lea ecx, [ebp - 0x41c]
push ecx
mov ecx, edi
call fcn.0040cb80
lea ecx, [ebp - 0x44c]
mov byte [ebp - 4], 2
call fcn.0044ecf0
mov eax, dword [ebp + 0x14]
cmp eax, 0x10
jne 0x53e41a
mov edi, 0x8008
jmp 0x53e44c
cmp eax, 7
jne 0x53e426
mov edi, 0x800c
jmp 0x53e44c
cmp eax, 2
jne 0x53e432
mov edi, 0x800d
jmp 0x53e44c
cmp eax, 3
jne 0x53e43e
mov edi, 0x800e
jmp 0x53e44c
xor edx, edx
cmp eax, 5
setne dl
lea edi, [edx + 0x8003]
cmp dword [ebp + 0x10], 0x24
jne 0x53e459
mov edi, 0x8008
jmp 0x53e4d2
test edi, edi
jne 0x53e4d2
push esi
mov ecx, ebx
call fcn.004e6e80
mov ebx, eax
test ebx, ebx
jne 0x53e48c
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Failed_to_get_MS_Certificate.
mov ecx, esi
call edx
lea ecx, [ebp - 0x41c]
mov byte [ebp - 4], bl
call fcn.0040c590
jmp 0x53e2ab
lea ecx, [ebp - 0x304]
call fcn.00444390
push esi
lea eax, [ebp - 0x304]
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.005406a0
push str.VinRCSP
lea ecx, [ebp - 0x304]
call fcn.004465d0
test al, al
je 0x53e4c3
mov edi, 0x800c
lea ecx, [ebp - 0x304]
mov byte [ebp - 4], 2
call fcn.00444450
mov edx, dword [ebp - 0x43c]
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 0x53e535
mov eax, dword [ebp + 0x14]
push eax
push str.hashAlg
mov ecx, esi
call fcn.0044e8c0
push edi
push str.algId
mov ecx, esi
call fcn.0044e8c0
mov ecx, esi
call fcn.0044ea80
push str.Failed_to_create_HCRYPTHASH
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
lea ecx, [ebp - 0x41c]
mov byte [ebp - 4], 0
call fcn.0040c590
jmp 0x53e2ab
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x440]
push ecx
push edx
lea eax, [ebp - 0x90]
push eax
call fcn.00417410
mov edx, dword [ebp - 0x420]
add esp, 0xc
push 0
lea ecx, [ebp - 0x90]
push ecx
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
jne 0x53e586
mov ecx, esi
call fcn.0044ea80
mov eax, dword [ebp - 0x420]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push str.Failed_to_CryptSetHashParam
jmp 0x53e518
xor eax, eax
mov dword [ebp - 0x438], 0x200
cmp dword [ebp + 0x14], eax
jne 0x53e59c
mov eax, 1
lea ecx, [ebp - 0x438]
push ecx
mov ecx, dword [ebp - 0x420]
lea edx, [ebp - 0x290]
push edx
push eax
mov eax, dword [ebp - 0x428]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptSignHashA]
test eax, eax
jne 0x53e5ed
mov ecx, esi
call fcn.0044ea80
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.0040c590
jmp 0x53e2ab
cmp byte [esi + 0x125], 0
je 0x53e609
mov eax, dword [ebp - 0x438]
push eax
push str.cryptSigSize
mov ecx, esi
call fcn.0044e8c0
mov ecx, dword [ebp - 0x438]
mov esi, dword [ebp - 0x424]
push ecx
lea edx, [ebp - 0x290]
push edx
mov ecx, esi
call fcn.00411e60
mov ecx, esi
call fcn.00411110
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x53e63c
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ecx, [ebp - 0x41c]
mov byte [ebp - 4], 0
call fcn.0040c590
lea ecx, [ebp - 0x434]
mov dword [ebp - 4], 0xffffffff
call fcn.0044ecf0
mov al, 1
jmp 0x53e699
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x440]
push esi
push eax
push 1
push ecx
push edx
mov eax, dword [ebp + 0x14]
push eax
push ebx
call fcn.0053d670
add esp, 0x1c
lea ecx, [ebp - 0x434]
mov bl, al
mov dword [ebp - 4], 0xffffffff
call fcn.0044ecf0
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.0059af98
mov esp, ebp
pop ebp
ret