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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x5142b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
xor eax, eax
push esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x54], eax
mov eax, ebx
push edi
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], 0x21
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x478536
sub eax, esi
mov esi, eax
push esi
call fcn.00494ad4
mov ecx, dword [0x4fbc1c]
mov edx, dword [0x4fbc20]
mov edi, eax
mov eax, dword [0x4fbc24]
push esi
mov dword [ebp - 0x18], ecx
mov ecx, dword [0x4fbc28]
mov dword [ebp - 0x14], edx
mov dl, byte [0x4fbc2c]
push 0
push edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
mov byte [ebp - 8], dl
call fcn.00492ac0
push esi
push ebx
push edi
call fcn.00491af0
push 0x21
call fcn.00494ad4
mov ecx, dword [ebp - 0x4c]
mov dword [ecx], eax
xor ecx, ecx
add esp, 0x20
mov dword [eax], ecx
mov dword [eax + 4], ecx
push 0xf0000000
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
push 1
mov dword [eax + 0x10], ecx
push ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
push ecx
lea edx, [ebp - 0x40]
mov dword [eax + 0x1c], ecx
push edx
mov byte [eax + 0x20], cl
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4785f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.GetMD5HashFromString
push str._s_:_CryptAcquireContext_failed_:__d_n
call fcn.00423ad0
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ed61
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x47864e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.GetMD5HashFromString
push str._s_:_CryptCreateHash_failed_:__d_n
call fcn.00423ad0
mov edx, dword [ebp - 0x40]
add esp, 0xc
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ed61
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x48]
push 0
push esi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4786a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.GetMD5HashFromString
push str._s_:_CryptHashData_failed_:__d_n
call fcn.00423ad0
mov ecx, dword [ebp - 0x48]
add esp, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [ebp - 0x40]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ed61
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x48]
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x3c]
push ecx
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x478791
mov eax, dword [0x513fec]
mov edx, dword [eax + 0xc]
mov ecx, 0x513fec
call edx
xor ebx, ebx
lea esi, [eax + 0x10]
mov dword [ebp - 0x44], esi
cmp dword [ebp - 0x50], ebx
jbe 0x478757
mov edi, edi
movzx eax, byte [ebp + ebx - 0x3c]
mov ecx, eax
and ecx, 0xf
movsx edx, byte [ebp + ecx - 0x18]
shr eax, 4
movsx eax, byte [ebp + eax - 0x18]
push edx
push eax
lea ecx, [ebp - 0x44]
push str._c_c
push ecx
call fcn.0040af10
mov eax, dword [ebp - 0x44]
add esp, 0x10
cmp dword [eax - 4], 1
jle 0x478722
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp - 0x44]
call fcn.004014b0
mov eax, dword [ebp - 0x44]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x478724
sub eax, ecx
mov esi, ecx
mov ecx, dword [ebp - 0x4c]
mov edi, dword [ecx]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x478735
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
cmp ebx, dword [ebp - 0x50]
jb 0x4786e0
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x58]
push eax
push ecx
push str.GetMD5HashFromString
push str._s_:_MD5_hash_of_string__s_is_:__s_n
call fcn.00423960
lea eax, [esi - 0x10]
add esp, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4787ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4787ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetMD5HashFromString
push str._s_:_CryptGetHashParam_failed_:__d_n
mov dword [ebp - 0x54], eax
call fcn.00423ad0
add esp, 0xc
test edi, edi
je 0x4787ba
push edi
call fcn.0048efd8
add esp, 4
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [ebp - 0x40]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x54]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048ed61
mov esp, ebp
pop ebp
ret