Function at 0x5304d0
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push 0xffffffffffffffff
push 0x582a47
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x641030]
xor eax, esp
mov dword [esp + 0x43c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x641030]
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 edi, dword [esp + 0x468]
mov ebx, dword [esp + 0x464]
push str.msCalcSslCertVerify
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x20], eax
call fcn.00437740
mov dword [esp + 0x45c], 0
test edi, edi
je 0x530604
mov eax, dword [esp + 0x46c]
test eax, eax
je 0x530604
cmp eax, 0x80
ja 0x530604
cmp byte [esi + 0x121], 0
mov ebp, dword [esp + 0x470]
je 0x5305bc
lea ecx, [esp + 0x44]
call fcn.0042d110
lea ecx, [esp + 0x44]
push ecx
push ebp
mov byte [esp + 0x464], 1
call fcn.00467dc0
add esp, 8
lea edx, [esp + 0x44]
push edx
push str.hashAlg
mov ecx, esi
call fcn.004370f0
lea ecx, [esp + 0x44]
mov byte [esp + 0x45c], 0
call fcn.0042d1d0
push esi
call fcn.0054fe90
add esp, 4
test al, al
jne 0x5305df
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x46c]
push esi
push eax
push 1
push ecx
push edi
jmp 0x530a17
mov ecx, dword [esp + 0x18]
call fcn.00446f40
push esi
mov ecx, ebx
call fcn.0050d8c0
mov edi, eax
test edi, edi
jne 0x53061f
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_get_MsCertificate.
mov ecx, esi
call eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x45c], 0xffffffff
call fcn.004377b0
xor al, al
jmp 0x530a39
push esi
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
mov dword [esp + 0x24], 0
call fcn.00513320
mov edx, dword [esp + 0x1c]
push esi
push edx
mov dword [esp + 0x34], eax
call fcn.00530470
add esp, 8
cmp dword [esp + 0x2c], 0
je 0x530a02
cmp dword [esp + 0x1c], 0xffffffff
je 0x530a02
lea ecx, [esp + 0xb8]
call fcn.0040e280
push esi
lea eax, [esp + 0xbc]
push eax
mov ecx, ebx
mov byte [esp + 0x464], 2
call fcn.0050c980
test al, al
je 0x53076c
add edi, 0x18
push edi
lea ecx, [esp + 0xbc]
call fcn.0040fba0
test al, al
jne 0x53076c
push str.setSmartCardPin
push esi
lea ecx, [esp + 0x40]
call fcn.00437740
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push str.setting_smart_card_pin..
mov ecx, esi
mov byte [esp + 0x460], 3
call eax
lea ecx, [esp + 0xb8]
call fcn.0040ef50
mov ecx, dword [esp + 0x2c]
push esi
push 0
push eax
push 0x21
push ecx
call fcn.0054fd80
add esp, 0x14
test eax, eax
jne 0x53074c
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.00437570
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 0x53074c
lea ecx, [esp + 0x38]
mov byte [esp + 0x45c], 2
call fcn.004377b0
lea ecx, [esp + 0xb8]
mov byte [esp + 0x45c], 0
call fcn.0040e320
jmp 0x530604
lea ecx, [esp + 0xb8]
push ecx
mov ecx, edi
call fcn.0040e890
lea ecx, [esp + 0x38]
mov byte [esp + 0x45c], 2
call fcn.004377b0
cmp ebp, 0x10
jne 0x530778
mov edi, 0x8008
jmp 0x5307ac
cmp ebp, 7
jne 0x530784
mov edi, 0x800c
jmp 0x5307ac
cmp ebp, 2
jne 0x530790
mov edi, 0x800d
jmp 0x5307ac
cmp ebp, 3
jne 0x53079c
mov edi, 0x800e
jmp 0x5307ac
xor edx, edx
cmp ebp, 5
setne dl
add edx, 0x8003
mov edi, edx
cmp dword [esp + 0x46c], 0x24
jne 0x5307bd
mov edi, 0x8008
jmp 0x53083b
test edi, edi
jne 0x53083b
push esi
mov ecx, ebx
call fcn.0050d8c0
mov ebx, eax
test ebx, ebx
jne 0x5307f5
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Failed_to_get_MS_Certificate.
mov ecx, esi
call edx
lea ecx, [esp + 0xb8]
mov byte [esp + 0x45c], bl
call fcn.0040e320
jmp 0x530604
lea ecx, [esp + 0x44]
call fcn.0042d110
push esi
lea eax, [esp + 0x48]
push eax
mov ecx, ebx
mov byte [esp + 0x464], 4
call fcn.00512f80
push str.VinRCSP
lea ecx, [esp + 0x48]
call fcn.0042f160
test al, al
je 0x53082a
mov edi, 0x800c
lea ecx, [esp + 0x44]
mov byte [esp + 0x45c], 2
call fcn.0042d1d0
mov ebx, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x5308bd
push ebp
push str.hashAlg
mov ecx, esi
call fcn.004373b0
push edi
push str.algId
mov ecx, esi
call fcn.004373b0
mov ecx, esi
call fcn.00437570
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_create_HCRYPTHASH
mov ecx, esi
call eax
push ebx
call fcn.0051d210
mov edi, eax
add esp, 4
test edi, edi
je 0x5308a4
push esi
mov ecx, edi
call fcn.0051d5d0
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
lea ecx, [esp + 0xb8]
mov byte [esp + 0x45c], 0
call fcn.0040e320
jmp 0x530604
mov ecx, dword [esp + 0x46c]
mov edx, dword [esp + 0x34]
push ecx
push edx
lea eax, [esp + 0x1d8]
push eax
call fcn.00414180
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 0x53092e
mov ecx, esi
call fcn.00437570
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.0040e320
jmp 0x530604
xor eax, eax
mov dword [esp + 0x30], 0x200
test ebp, ebp
jne 0x53093f
lea eax, [ebp + 1]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x254]
push edx
push eax
mov eax, dword [esp + 0x28]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptSignHashA]
test eax, eax
jne 0x53098e
mov ecx, esi
call fcn.00437570
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.0040e320
jmp 0x530604
cmp byte [esi + 0x121], 0
je 0x5309a8
mov eax, dword [esp + 0x30]
push eax
push str.cryptSigSize
mov ecx, esi
call fcn.004373b0
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x254]
push edx
mov ecx, esi
call fcn.00448260
mov ecx, esi
call fcn.004474c0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5309d6
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ecx, [esp + 0xb8]
mov byte [esp + 0x45c], 0
call fcn.0040e320
lea ecx, [esp + 0x20]
mov dword [esp + 0x45c], 0xffffffff
call fcn.004377b0
mov al, 1
jmp 0x530a39
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x46c]
mov edx, dword [esp + 0x34]
push esi
push eax
push 1
push ecx
push edx
push ebp
push ebx
call fcn.0052fa00
add esp, 0x1c
lea ecx, [esp + 0x20]
mov bl, al
mov dword [esp + 0x45c], 0xffffffff
call fcn.004377b0
mov al, bl
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.005550b0
add esp, 0x44c
ret