Function at 0x429660
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push 0x7c
mov eax, 0x432d9c
call fcn.0042fc6e
mov eax, ecx
mov dword [ebp - 0x68], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x80], edi
mov dword [ebp - 4], edi
push edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
call fcn.004247b0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x64], edi
jb 0x4296aa
mov ecx, dword [esi]
jmp 0x4296ac
mov ecx, esi
lea edx, [ebp - 0x88]
call fcn.0042698d
mov edi, dword [ebp - 0x88]
mov esi, eax
test esi, esi
js 0x42982c
mov esi, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x68]
sub esi, edi
mov dword [ebp - 0x74], esi
call fcn.00424820
test al, al
je 0x429779
mov eax, dword [ebp - 0x68]
xor edx, edx
mov dword [ebp - 0x6c], edx
mov ecx, dword [eax + 0x70]
call fcn.004228ba
mov dword [ebp - 0x68], eax
test eax, eax
jne 0x429703
mov esi, 0x80070032
jmp 0x42982c
push 2
lea eax, [ebp - 0x6c]
push eax
push edx
push edx
push esi
push edi
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.ncrypt.dll_NCryptSignHash]
mov esi, eax
test esi, esi
je 0x429734
jle 0x42982c
movzx esi, si
or esi, 0x80070000
jmp 0x42982c
mov esi, dword [ebp - 0x6c]
push esi
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x5c], eax
pop ecx
test eax, eax
jne 0x42974f
mov esi, 0x8007000e
jmp 0x42982c
push 2
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x60], esi
push eax
push esi
push dword [ebp - 0x5c]
lea eax, [ebp - 0x68]
push dword [ebp - 0x74]
push edi
push eax
push dword [ebp - 0x70]
call dword [sym.imp.ncrypt.dll_NCryptSignHash]
mov esi, eax
test esi, esi
je 0x429814
jmp 0x429720
lea eax, [ebp - 0x64]
xor esi, esi
push eax
mov eax, dword [ebp - 0x68]
push esi
push esi
push dword [eax + 0x70]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4297a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jmp 0x429720
push esi
push edi
push 2
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
je 0x429794
lea eax, [ebp - 0x60]
push eax
push esi
push esi
push esi
push 2
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_CryptSignHashA]
test eax, eax
je 0x429794
push dword [ebp - 0x60]
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x5c], eax
pop ecx
test eax, eax
je 0x429745
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x5c]
push esi
push esi
push 2
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_CryptSignHashA]
test eax, eax
je 0x429794
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x429817
mov edx, dword [ebp - 0x5c]
lea esi, [eax - 1]
add esi, edx
cmp edx, esi
jae 0x429817
mov al, byte [esi]
mov cl, byte [edx]
mov byte [edx], al
inc edx
mov byte [esi], cl
dec esi
cmp edx, esi
jb 0x429806
mov eax, dword [ebp - 0x60]
cmp dword [ebx + 0x14], 8
jb 0x42981f
mov ebx, dword [ebx]
push dword [ebp - 0x5c]
mov ecx, ebx
push eax
call fcn.00427409
mov esi, eax
cmp dword [ebp - 0x64], 0
je 0x42983b
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x5c], 0
je 0x42984a
push dword [ebp - 0x5c]
call sub.msvcrt.dll_free
pop ecx
test esi, esi
js 0x429862
test edi, edi
je 0x42985a
push edi
call dword [sym.imp.MFC42.dll_operatordelete]
pop ecx
call fcn.0042fc1d
ret 8
push 0x4054c4
lea ecx, [ebp - 0x2c]
call fcn.0040c205
push dword [ebp - 0x78]
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push esi
push eax
lea ecx, [ebp - 0x58]
call fcn.004106a6
push 0x437588
lea eax, [ebp - 0x58]
push eax
call sub.msvcrt.dll__CxxThrowException
int3