Function at 0x401906
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x412320]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0xf0000040
push 1
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x14]
xor ebx, ebx
push ebx
mov dword [ebp - 0x5c], eax
push ebx
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp eax, ebx
je 0x401a32
lea eax, [ebp - 0x4c]
push eax
push ebx
push ebx
push 0x8004
push dword [ebp - 0x50]
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov dword [ebp - 0x48], eax
cmp eax, ebx
je 0x401a43
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x401972
push ebx
sub eax, ecx
push eax
push esi
push dword [ebp - 0x4c]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
call esi
mov dword [ebp - 0x48], eax
cmp edi, ebx
je 0x401a0b
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401995
sub eax, edx
je 0x401a0b
cmp dword [ebp - 0x48], ebx
je 0x401a0b
push 0x2a
lea eax, [ebp - 0x43]
push ebx
push eax
mov byte [ebp - 0x44], bl
call fcn.00402ec0
push 0x2a
push edi
lea eax, [ebp - 0x44]
push 0x2b
push eax
call fcn.0040380e
add esp, 0x1c
test eax, eax
jne 0x401a0b
lea eax, [ebp - 0x44]
push 0x2b
push eax
call fcn.004037f7
pop ecx
pop ecx
test eax, eax
jne 0x401a0b
push ebx
push 1
push 0x40e408
push dword [ebp - 0x4c]
call esi
mov dword [ebp - 0x48], eax
cmp eax, ebx
je 0x401a0b
lea eax, [ebp - 0x44]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4019f4
push ebx
sub eax, edx
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x4c]
call esi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x14
cmp dword [ebp - 0x48], ebx
je 0x401a32
push ebx
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x18]
push eax
push 2
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov dword [ebp - 0x48], eax
cmp eax, ebx
jne 0x401a3a
push 0xfffffffffffffffd
pop eax
jmp 0x401ade
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x48], ebx
je 0x401a32
movzx eax, byte [ebp - 9]
push eax
movzx eax, byte [ebp - 0xa]
push eax
movzx eax, byte [ebp - 0xb]
push eax
movzx eax, byte [ebp - 0xc]
push eax
movzx eax, byte [ebp - 0xd]
push eax
movzx eax, byte [ebp - 0xe]
push eax
movzx eax, byte [ebp - 0xf]
push eax
movzx eax, byte [ebp - 0x10]
push eax
movzx eax, byte [ebp - 0x11]
push eax
movzx eax, byte [ebp - 0x12]
push eax
movzx eax, byte [ebp - 0x13]
push eax
movzx eax, byte [ebp - 0x14]
push eax
movzx eax, byte [ebp - 0x15]
push eax
movzx eax, byte [ebp - 0x16]
push eax
movzx eax, byte [ebp - 0x17]
push eax
movzx eax, byte [ebp - 0x18]
push eax
push str._0.2hhX_0.2hhX_0.2hhX_0.2hhX__0.2hhX_0.2hhX__0.2hhX_0.2hhX__0.2hhX_0.2hhX__0.2hhX_0.2hhX_0.2hhX_0.2hhX_0.2hhX_0.2hhX
push 0x26
push 0x27
push dword [ebp - 0x54]
call fcn.0040357c
add esp, 0x50
push dword [ebp - 0x5c]
push ebx
push ebx
push dword [ebp - 0x54]
call sub.msi.dll_MsiSourceListClearAllW
cmp eax, ebx
je 0x401adc
xor ecx, ecx
cmp eax, 0x103
setne cl
lea ecx, [ecx*4 - 7]
mov eax, ecx
jmp 0x401ade
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004024bc
leave
ret