Function at 0x4914ec
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4917db
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [0x48d030]
call fcn.00403684
test al, al
jne 0x49154a
lea edx, [ebp - 0x38]
mov eax, dword [0x4e24e4]
call fcn.0040630c
mov ecx, dword [ebp - 0x38]
mov dl, 1
mov eax, dword [0x48ce9c]
call fcn.00456eac
call fcn.00403c74
mov ebx, dword [ebp - 4]
cmp byte [ebx + 0x2e], 0
je 0x491575
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.004918d4
mov byte [ebp - 0xd], al
jmp 0x4917b8
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x3c]
push eax
mov edx, dword [0x4e26b4]
mov edx, dword [edx]
xor ecx, ecx
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
call dword [esi + 0x64]
mov eax, dword [ebp - 0x3c]
call fcn.00476210
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4917b8
mov eax, dword [ebx + 0x1c]
sub eax, 0x7101
je 0x4915bb
dec eax
je 0x4915cd
dec eax
je 0x4915c4
sub eax, 8
je 0x4915d6
jmp 0x4915df
mov dword [ebp - 0x18], 0x8004
jmp 0x491610
mov dword [ebp - 0x18], 0x8001
jmp 0x491610
mov dword [ebp - 0x18], 0x8003
jmp 0x491610
mov dword [ebp - 0x18], 0x8008
jmp 0x491610
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0
lea eax, [ebp - 0x44]
push eax
push 0
lea edx, [ebp - 0x48]
mov eax, dword [0x4e2164]
call fcn.0040630c
mov ecx, dword [ebp - 0x48]
mov dl, 1
mov eax, dword [0x48ce9c]
call fcn.0040bfc0
call fcn.00403c74
lea eax, [ebp - 0x14]
push eax
push 0
push 2
mov eax, dword [ebp - 0x24]
push eax
call sub.crypt32.dll_CertGetCertificateContextProperty
mov eax, dword [ebp - 0x14]
call fcn.00402a54
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 2
mov eax, dword [ebp - 0x24]
push eax
call sub.crypt32.dll_CertGetCertificateContextProperty
test eax, eax
je 0x4917b1
mov dword [ebp - 0x28], ebx
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 4]
push eax
push 0
push 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov dword [ebp - 0x2c], eax
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
push eax
push 0
push 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
call fcn.00402a54
mov esi, eax
mov eax, dword [ebp - 0x30]
call fcn.00402a54
mov edi, eax
push 0
push 0
mov eax, dword [ebp - 0x2c]
push eax
push esi
push 0xffffffffffffffff
mov eax, dword [ebp - 0x28]
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 - 0x30]
push eax
push edi
push 0xffffffffffffffff
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
push eax
push 0
push 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 8]
push eax
push esi
push edi
lea eax, [ebp - 0x20]
push eax
call sub.advapi32.dll_CryptAcquireContextA
test eax, eax
je 0x4917a3
mov eax, dword [ebp - 8]
cmp dword [eax + 0x60], 0
je 0x491711
push 0
mov eax, dword [ebp - 8]
add eax, 0x60
push eax
push 1
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_CryptSetProvParam
test eax, eax
je 0x491711
mov eax, dword [ebp - 8]
and dword [eax + 0x60], 0xffffffff
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_CryptCreateHash
test eax, eax
je 0x49178f
push 0
mov eax, dword [ebp - 0xc]
push eax
push 2
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_CryptSetHashParam
test eax, eax
je 0x49178f
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
push ebp
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, 1
mov eax, dword [ebp - 0x1c]
call fcn.004912d8
pop ecx
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x49178f
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x49178f
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x34]
mov dword [eax], edx