Function at 0x4013e0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov eax, dword [0x43200c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
call fcn.0040a3cb
add esp, 4
test eax, eax
je 0x4015c0
mov edi, eax
movzx eax, word [esi + eax*2 - 2]
cmp eax, 0x5c
je 0x4015ae
cmp eax, 0x2f
je 0x4015ae
lea eax, [edi + 2]
xor ecx, ecx
dec ecx
add eax, eax
cmovb eax, ecx
push eax
call fcn.0040a28b
add esp, 4
mov esi, eax
lea eax, [edi + edi]
add eax, 4
xor ebx, ebx
push eax
push ebx
push esi
call fcn.0040cc90
add esp, 0xc
lea eax, [edi + 1]
push eax
push dword [ebp + 8]
push esi
call fcn.0040a5a1
add esp, 0xc
push esi
call fcn.0040a5e4
add esp, 4
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x14]
mov dword [eax], ebx
mov dword [ebp - 0x18], ebx
sub esp, 0x14
movaps xmm0, xmmword [0x42a4b0]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4015c4
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4015f4
add edi, edi
push 0
push edi
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4015f4
mov dword [ebp - 0x28], esi
mov eax, 4
lea ecx, [ebp - 0x1c]
mov dword [ecx], eax
lea edx, [ebp - 0x20]
push 0
push ecx
push edx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x4015b4
mov edi, dword [ebp - 0x20]
push edi
call fcn.0040a28b
add esp, 4
mov esi, eax
xor ebx, ebx
push edi
push ebx
push eax
call fcn.0040cc90
add esp, 0xc
push ebx
lea eax, [ebp - 0x20]
push eax
mov edi, esi
push esi
push 2
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x4015b4
mov eax, dword [ebp - 0x18]
test eax, eax
mov esi, dword [ebp - 0x28]
je 0x40152d
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x401540
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push esi
call fcn.0040a59c
add esp, 4
push 0x104
push str.SOFTWAREMozillaMaintenanceService_
push ebx
call fcn.0040a5a1
add esp, 0xc
xor eax, eax
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x20], 0
je 0x40158c
add ebx, 0x48
xor esi, esi
movzx eax, byte [edi + esi]
push eax
push str._.2x
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
add ebx, 4
inc esi
cmp esi, dword [ebp - 0x20]
jb 0x40156d
mov eax, edi
mov esi, edi
push esi
call fcn.0040a59c
add esp, 4
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ad81
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
dec edi
jmp 0x401420
mov dword [ebp - 0x24], 0
mov esi, dword [ebp - 0x28]
jmp 0x40158e
xor esi, esi
jmp 0x40159a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4015f4
sub esp, 0x14
movaps xmm0, xmmword [0x42a4c0]
movups xmmword [esp + 4], xmm0
lea eax, [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x40148d
mov dword [ebp - 0x24], 0
jmp 0x40158e