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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x742845
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
push esi
push edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
mov byte [ebp - 4], 1
call edi
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4c11db
call esi
push 0
push dword [ebp - 0x1c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push esi
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4c124f
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4c1215
call esi
push dword [ebp - 0x1c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
call edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4c124f
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4c12d6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x4c1263
movzx eax, ax
or eax, 0x80070000
push 0x400
push 0
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00570860
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x4c127f
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 4]
push str.failed_to_create_MD5_hash:__s
push 1
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientInstallerWindows_srcUtil.cpp
push 0x6b
push eax
call fcn.004946a0
mov edx, dword [ebp - 0x24]
add esp, 0x18
cmp edx, 8
jb 0x4c12dc
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c12ca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c13fb
push edx
push ecx
call fcn.00516d60
add esp, 8
jmp 0x4c12dc
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea eax, [ebp - 0x20]
push 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 4
push eax
push 4
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x4c131f
cmp dword [ebp - 0x18], 0x100
ja 0x4c131f
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x150]
push eax
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x4c139d
call esi
test eax, eax
jle 0x4c132d
movzx eax, ax
or eax, 0x80070000
push 0x400
push 0
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00570860
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x4c1349
mov eax, dword [eax]
push eax
push dword [ebp - 0x18]
mov eax, dword [ebp + 4]
push str.failed_to_retrieve_MD5_hash_with_length__u:__s
push 1
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientInstallerWindows_srcUtil.cpp
push 0x74
push eax
call fcn.004946a0
mov edx, dword [ebp - 0x3c]
add esp, 0x1c
cmp edx, 8
jb 0x4c139d
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c1393
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c1400
push edx
push ecx
call fcn.00516d60
add esp, 8
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x150]
mov esi, dword [ebp + 8]
push str.:02x
sub esp, 8
mov eax, esp
push ecx
push edx
push esi
mov dword [eax], 0x75cfea
mov dword [eax + 4], 0
call fcn.004bf760
mov eax, dword [ebp - 0x10]
add esp, 0x18
test eax, eax
je 0x4c13d9
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4c13e9
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0070f5b4
call fcn.0070f5b4
int3