Function at 0x49f198
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0049ef54
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x49f383
lea eax, [ebp - 0x10]
push eax
push 0
push 2
mov eax, dword [ebp - 0x1c]
push eax
call sub.crypt32.dll_CertGetCertificateContextProperty
mov eax, dword [ebp - 0x10]
call fcn.0040284c
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x20]
push eax
push 2
mov eax, dword [ebp - 0x1c]
push eax
call sub.crypt32.dll_CertGetCertificateContextProperty
test eax, eax
je 0x49f367
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
push eax
push 0
push 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov dword [ebp - 0x28], eax
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
push eax
push 0
push 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
call fcn.0040284c
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
call fcn.0040284c
mov dword [ebp - 0x34], eax
push 0
push 0
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x30]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
push eax
push 0
push 0
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
push 0
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x34]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
push eax
push 0
push 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call sub.advapi32.dll_CryptAcquireContextA
test eax, eax
je 0x49f34c
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x8008
mov eax, dword [ebp - 0x38]
push eax
call sub.advapi32.dll_CryptCreateHash
test eax, eax
je 0x49f343
push 0
mov eax, dword [ebp - 8]
push eax
push 2
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CryptSetHashParam
test eax, eax
je 0x49f343
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CryptSignHashA
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x10]
jge 0x49f30e
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
jmp 0x49f343
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CryptSignHashA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CryptDestroyHash
mov eax, dword [ebp - 0x30]
call fcn.0040286c
mov eax, dword [ebp - 0x34]
call fcn.0040286c
push 0
mov eax, dword [ebp - 0x38]
push eax
call sub.advapi32.dll_CryptReleaseContext
mov eax, dword [ebp - 0x20]
call fcn.0040286c
mov eax, dword [ebp - 0x1c]
push eax
call sub.crypt32.dll_CertFreeCertificateContext
push 0
mov eax, dword [ebp - 0x18]
push eax
call sub.crypt32.dll_CertCloseStore
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret 8