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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x658
mov eax, dword [0x4c32cc]
xor eax, ebp
mov dword [ebp - 8], eax
mov edx, dword [str.0123456789abcdef]
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x8000000
push 3
push ebx
mov dword [ebp - 0x654], ecx
mov ecx, dword [0x4bc4d0]
mov dword [ebp - 0x1c], edx
mov edx, dword [0x4bc4d4]
push 1
mov dword [ebp - 0x18], ecx
mov ecx, dword [0x4bc4d8]
mov dword [ebp - 0x14], edx
mov dl, byte [0x4bc4dc]
push 0x80000000
push eax
mov dword [ebp - 0x658], eax
mov dword [ebp - 0x650], ebx
mov dword [ebp - 0x640], ebx
mov dword [ebp - 0x644], ebx
mov dword [ebp - 0x64c], ebx
mov dword [ebp - 0x648], ebx
mov dword [ebp - 0x10], ecx
mov byte [ebp - 0xc], dl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x484197
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
push 0xf0000000
push 1
push ebx
push ebx
lea eax, [ebp - 0x640]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4841d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x640]
lea ecx, [ebp - 0x644]
push ecx
push ebx
push ebx
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x484222
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x640]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [ebp - 0x64c]
push ecx
push 0x400
lea edx, [ebp - 0x63c]
push edx
push edi
call esi
cmp eax, ebx
je 0x4842d2
jmp 0x484250
mov ecx, dword [ebp - 0x64c]
cmp ecx, ebx
je 0x4842ce
push ebx
push ecx
mov ecx, dword [ebp - 0x644]
lea eax, [ebp - 0x63c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x484291
push ebx
lea edx, [ebp - 0x64c]
push edx
push 0x400
lea eax, [ebp - 0x63c]
push eax
push edi
call esi
cmp eax, ebx
jne 0x484250
jmp 0x4842d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x640]
push ebx
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edx, dword [ebp - 0x644]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
cmp eax, ebx
jne 0x48430f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x640]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 0x644]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x644]
push ebx
lea edx, [ebp - 0x648]
push edx
lea eax, [ebp - 0x2c]
push eax
push 2
push ecx
mov dword [ebp - 0x648], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x4843f3
xor esi, esi
cmp dword [ebp - 0x648], ebx
jbe 0x4843ff
lea ebx, [ebx]
movzx eax, byte [ebp + esi - 0x2c]
mov edx, eax
and edx, 0xf
movsx ecx, byte [ebp + edx - 0x1c]
shr eax, 4
movsx edx, byte [ebp + eax - 0x1c]
push ecx
push edx
push str._c_c
lea eax, [ebp - 0x23c]
push 0x104
push eax
call fcn.00402830
add esp, 0x14
cmp esi, ebx
jne 0x48439f
lea ecx, [ebp - 0x23c]
push ecx
mov edx, 0x7ffffffe
mov eax, 0x104
lea ecx, [ebp - 0x134]
jmp 0x4843df
mov edx, 0x104
lea eax, [ebp - 0x134]
lea ebx, [ebx]
cmp byte [eax], bl
je 0x4843ba
inc eax
dec edx
jne 0x4843b0
jmp 0x4843e4
cmp edx, ebx
je 0x4843e4
mov ecx, 0x104
sub ecx, edx
lea edx, [ebp - 0x23c]
mov eax, 0x104
push edx
sub eax, ecx
lea ecx, [ebp + ecx - 0x134]
mov edx, 0x7fffffff
call fcn.00401000
inc esi
cmp esi, dword [ebp - 0x648]
jb 0x484350
jmp 0x4843ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x650], eax
mov eax, dword [ebp - 0x644]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 0x640]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, ebx
jle 0x48446a
mov ecx, dword [ebp - 0x654]
mov byte [ebp + eax - 0x134], bl
lea eax, [ebp - 0x134]
push eax
mov edx, 0x7ffffffe
mov eax, 0x104
call fcn.00401000
mov ecx, dword [ebp - 0x658]
push ecx
lea esi, [ebp - 0x134]
call fcn.0047fb10
add esp, 4
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x650]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a01d6
mov esp, ebp
pop ebp
ret