Function at 0x4145a0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows

Disassembly:
sub esp, 0x238
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x234], eax
mov ecx, dword [str.0123456789abcdef]
mov edx, dword [0x50f848]
mov eax, dword [esp + 0x23c]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x24c]
xor ebp, ebp
push ebp
push 0x8000000
push 3
push ebp
mov dword [esp + 0x34], ecx
mov ecx, dword [0x50f84c]
push 1
mov dword [esp + 0x3c], edx
mov edx, dword [0x50f850]
mov dword [esp + 0x40], ecx
mov cl, byte [0x50f854]
push closesocket
push eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x4c], edx
mov byte [esp + 0x50], cl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41464d
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.004b6da3
add esp, 0x238
ret
push esi
push 0xf0000000
push 1
push ebp
push ebp
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x41467c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x41483b
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ebp
push ebp
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4146b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x10]
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
jmp 0x41483b
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
lea eax, [esp + 0x20]
push eax
push 0xff
lea ecx, [esp + 0x50]
push ecx
push ebx
call esi
cmp eax, ebp
je 0x41473e
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
je 0x41473a
mov eax, dword [esp + 0x14]
push ebp
push ecx
lea edx, [esp + 0x4c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x41470d
push ebp
lea ecx, [esp + 0x20]
push ecx
push 0xff
lea edx, [esp + 0x50]
push edx
push ebx
call esi
cmp eax, ebp
jne 0x4146d6
jmp 0x41473e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x10]
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x41483b
cmp eax, ebp
jne 0x41476b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x10]
push ebp
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x41483b
mov eax, dword [esp + 0x14]
push ebp
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14c]
push edx
push 2
push eax
mov dword [esp + 0x2c], 0xff
mov dword [edi], ebp
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x414806
cmp dword [esp + 0x18], ebp
jbe 0x414810
lea ebx, [ebx]
movzx eax, byte [esp + ebp + 0x144]
mov ecx, eax
and ecx, 0xf
movsx edx, byte [esp + ecx + 0x28]
shr eax, 4
movsx eax, byte [esp + eax + 0x28]
push edx
push eax
lea ecx, [esp + 0x44]
push str._c_c
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x4c]
add esp, 0x10
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4147d5
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4147e1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebp
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x20]
cmp ebp, dword [esp + 0x18]
jb 0x4147a0
xor ebp, ebp
jmp 0x414810
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x10]
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004ab060
mov eax, dword [esp + 0x28]
add esp, 4
mov ecx, dword [esp + 0x244]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b6da3
add esp, 0x238
ret