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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x46edc4
push 0x46ede4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x38], eax
push 0x46edf4
push 0x46ee14
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x38], 0
je 0x40dcfc
cmp dword [ebp - 0x34], 0
je 0x40dcfc
lea eax, [ebp - 0x20]
push eax
call dword [ebp - 0x38]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x20]
push edx
call dword [ebp - 0x34]
jmp 0x40dd18
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x40dd2f
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x40df40
mov dword [ebp - 0x14], 0
push 0xf0000000
push 1
push 0
push 0
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x40dd56
xor al, al
jmp 0x40df40
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x8003
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40dd7f
xor al, al
jmp 0x40df40
push 0
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x40dd9b
xor al, al
jmp 0x40df40
mov eax, dword [ebp - 0x30]
push eax
call fcn.0042039b
add esp, 4
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x24], ecx
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40de0e
cmp dword [ebp - 0x24], 0
je 0x40de07
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.004391c2
add esp, 4
cmp dword [ebp - 0x44], 0
jne 0x40ddf3
mov dword [ebp - 0x48], 0
jmp 0x40de00
mov dword [ebp - 0x24], 0x8123
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x24], 0
xor al, al
jmp 0x40df40
push 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x40de2d
xor al, al
jmp 0x40df40
cmp dword [ebp - 0x24], 0
je 0x40de68
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.004391c2
add esp, 4
cmp dword [ebp - 0x40], 0
jne 0x40de54
mov dword [ebp - 0x4c], 0
jmp 0x40de61
mov dword [ebp - 0x24], 0x8123
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 4
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 2
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x40de98
xor al, al
jmp 0x40df40
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0043860e
add esp, 4
mov dword [ebp - 0x3c], eax
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
push 2
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x40df18
mov dword [ebp - 0x2c], 0
jmp 0x40ded3
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x1c]
jae 0x40df18
xor eax, eax
mov word [ebp - 0xc], ax
xor ecx, ecx
mov dword [ebp - 0xa], ecx
mov edx, dword [ebp - 0x3c]
add edx, dword [ebp - 0x2c]
movzx eax, byte [edx]
push eax
push str._02x
lea ecx, [ebp - 0xc]
push ecx
call fcn.0040cd00
add esp, 0xc
lea edx, [ebp - 0xc]
push edx
push 0x104
mov eax, dword [ebp + 0xc]
push eax
call fcn.00438383
add esp, 0xc
jmp 0x40deca
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x40df2a
xor al, al
jmp 0x40df40
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x40df3e
xor al, al
jmp 0x40df40
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret