Function at 0x4aa890
Capabilities:
Get common file path
Get file size
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4d5a21
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x33c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
xor edi, edi
mov eax, dword [ebp]
mov dword [esp + 0x34], ebp
cmp eax, edi
jne 0x4aae70
mov eax, dword [ebp + 4]
lea ebx, [ebp + 4]
cmp eax, edi
jne 0x4aa8db
push edi
push 0x104
mov ecx, ebx
call fcn.004aa0b0
jmp 0x4aa926
mov esi, dword [eax]
mov eax, dword [eax + 0xc]
cmp eax, 0x104
jae 0x4aa8f5
add eax, 0x1104
push edi
push eax
mov ecx, ebx
call fcn.004aa210
mov eax, dword [ebx]
cmp esi, 0x104
mov dword [eax], 0x104
mov eax, dword [ebx]
mov ecx, dword [eax]
mov edx, dword [eax + 8]
mov word [edx + ecx*2], di
jb 0x4aa926
mov eax, 0x104
jbe 0x4aa926
mov ecx, dword [ebx]
inc eax
cmp eax, esi
mov edx, dword [ecx + 8]
mov word [edx + eax*2 - 2], di
jb 0x4aa917
mov eax, dword [ebx]
cmp eax, edi
je 0x4aa931
mov eax, dword [eax + 8]
jmp 0x4aa933
xor eax, eax
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [ebx]
cmp eax, edi
je 0x4aa955
mov eax, dword [eax + 8]
push eax
call fcn.004ab7a0
mov ecx, dword [ebx]
add esp, 4
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x4aaa39
push eax
call fcn.004ab7a0
mov esi, eax
add esp, 4
cmp esi, edi
je 0x4aaa39
cmp dword [ebx], edi
jne 0x4aa98a
lea edx, [esi + 0x1000]
push edi
push edx
mov ecx, ebx
call fcn.004aa210
mov eax, dword [ebx]
mov edx, dword [eax]
mov ecx, dword [eax + 0xc]
lea ebp, [edx + esi]
cmp ebp, ecx
ja 0x4aa9c4
mov eax, dword [eax + 8]
lea ecx, [esi + esi]
mov esi, dword [esp + 0x14]
lea edi, [eax + edx*2]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov word [ecx + ebp*2], 0
mov edx, dword [ebx]
mov dword [edx], ebp
jmp 0x4aaa33
mov dword [esp + 0x20], edi
lea eax, [esp + 0x20]
lea ecx, [esp + 0x14]
push eax
push ebx
push ecx
mov dword [esp + 0x360], edi
call fcn.004ab310
add esp, 0xc
lea eax, [ebp + 0x1000]
mov ecx, ebx
push edi
push eax
call fcn.004aa210
mov eax, dword [ebx]
lea ecx, [esi + esi]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x354], 0xffffffff
mov edx, dword [eax]
mov eax, dword [eax + 8]
lea edi, [eax + edx*2]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov word [ecx + ebp*2], 0
mov edx, dword [ebx]
lea ecx, [esp + 0x20]
mov dword [edx], ebp
call fcn.004aa350
mov ebp, dword [esp + 0x34]
xor edi, edi
lea eax, [esp + 0x2c]
mov byte [esp + 0x13], 1
push eax
mov dword [esp + 0x30], edi
call dword [ebp + 8]
mov ebp, eax
mov eax, dword [esp + 0x360]
add esp, 4
cmp eax, edi
mov dword [esp + 0x20], ebp
je 0x4aaa60
mov dword [eax], ebp
mov eax, dword [esp + 0x360]
cmp eax, edi
je 0x4aaa71
mov ecx, dword [esp + 0x2c]
mov dword [eax], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov eax, dword [ebx]
mov dword [esp + 0x354], 1
cmp eax, edi
je 0x4aaa8f
mov esi, dword [eax + 8]
jmp 0x4aaa91
xor esi, esi
mov eax, dword [0x5c284c]
cmp eax, edi
jne 0x4aaac6
push str.Shlwapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
je 0x4aad55
push str.PathFileExistsW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
mov dword [0x5c284c], eax
je 0x4aad55
push esi
call eax
cmp eax, edi
je 0x4aad55
mov eax, dword [ebx]
cmp eax, edi
je 0x4aaadc
mov esi, dword [eax + 8]
jmp 0x4aaade
xor esi, esi
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x4aaaf1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], edi
push edi
push 0x80
push 3
push edi
push 7
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4aad55
push edi
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, edi
mov dword [esp + 0x18], esi
je 0x4aad1d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x30], esi
jne 0x4aab47
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4aad1d
cmp esi, edi
jle 0x4aad1d
push esi
call fcn.004c667c
mov ebp, eax
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, edi
mov dword [esp + 0x38], ebp
je 0x4aad10
lea edx, [esp + 0x24]
push edi
push edx
push esi
push ebp
push eax
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x4aad10
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
xor ecx, ecx
mov edi, eax
cmp edx, ecx
mov word [esp + 0x3c], cx
je 0x4aace2
cmp eax, ecx
je 0x4aace2
push 0xf0000000
push 1
push ecx
lea eax, [esp + 0x30]
push ecx
push eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4aacc2
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4aacc2
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
push 0
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4aacc2
mov eax, dword [esp + 0x28]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea edx, [esp + 0x14]
push 0
push edx
push 0
push 2
push eax
mov dword [esp + 0x28], 4
call edi
test eax, eax
je 0x4aacc2
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004b6497
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4aacba
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x14]
push 0
push edx
push ebp
push 2
push eax
call edi
test eax, eax
je 0x4aacb1
mov eax, dword [esp + 0x14]
cmp eax, 0x10
jb 0x4aac7e
mov ecx, ebp
mov edx, dword [ecx]
mov dword [esp + 0x3c], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x40], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x44], edx
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x48], eax
jmp 0x4aacaa
mov ecx, eax
mov esi, ebp
mov edx, ecx
lea edi, [esp + 0x3c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x10
lea edi, [esp + eax*2 + 0x3c]
sub ecx, eax
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov word [esp + 0x5c], 0
push ebp
call fcn.004b63ae
add esp, 4
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4aacd1
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4aace2
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [esp + 0xc0]
push eax
push esi
push ebp
call fcn.004ab630
add esp, 0xc
mov ecx, 4
lea edi, [esp + 0xc0]
lea esi, [esp + 0x3c]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x4aad0e
mov byte [esp + 0x13], dl
xor edi, edi
push ebp
call fcn.004c66a5
mov ebp, dword [esp + 0x24]
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x4aad32
push eax
call fcn.004c66a5
add esp, 4
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x4aad49
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
je 0x4aad49
mov dword [esp + 0x18], edi
mov al, byte [esp + 0x13]
test al, al
je 0x4aadf9
mov eax, dword [ebx]
cmp eax, edi
je 0x4aad60
mov eax, dword [eax + 8]
jmp 0x4aad62
xor eax, eax
push 0xffffffffffffffff
push 4
push eax
lea ecx, [esp + 0x24]
call fcn.004aaf10
test eax, eax
setne al
test al, al
jne 0x4aaddd
push edi
call fcn.004b77ae
push eax
call fcn.004b52c2
push 6
lea eax, [esp + 0x3c]
push 0x14
push eax
call fcn.004aaff0
add esp, 0x14
push 1
push eax
mov ecx, ebx
mov byte [esp + 0x35c], 2
call fcn.004aae90
lea ecx, [esp + 0x30]
mov byte [esp + 0x354], 1
call fcn.004ab5f0
mov eax, dword [ebx]
cmp eax, edi
je 0x4aadc4
mov eax, dword [eax + 8]
jmp 0x4aadc6
xor eax, eax
push 0xffffffffffffffff
push 4
push eax
lea ecx, [esp + 0x24]
call fcn.004aaf10
test eax, eax
setne al
test al, al
je 0x4aae04
mov ecx, dword [esp + 0x2c]
push ecx
push ebp
lea ecx, [esp + 0x20]
call fcn.004ab2e0
test eax, eax
je 0x4aae04
lea ecx, [esp + 0x18]
call fcn.004ab2a0
mov ebx, dword [ebx]
cmp ebx, edi
je 0x4aae49
mov eax, dword [ebx + 8]
jmp 0x4aae4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x148]
push 0x5b094c
push edx
call fcn.004b773f
add esp, 0xc
lea eax, [esp + 0x144]
push edi
push 0x5b0938
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call fcn.004b747c
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [esp + 0x34]
mov esi, eax
mov dword [esp + 0x354], 0xffffffff
mov dword [ecx], esi
lea ecx, [esp + 0x18]
call fcn.004ab2a0
mov eax, esi
mov ecx, dword [esp + 0x34c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x348
ret 8