Function at 0x4d87c0
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 0x552e76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x33c
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x38], edi
mov eax, dword [edi]
cmp eax, ebp
jne 0x4d8d50
mov eax, dword [edi + 4]
lea ebx, [edi + 4]
cmp eax, ebp
jne 0x4d880a
push ebp
push 0x104
mov ecx, ebx
call fcn.004d8040
jmp 0x4d8855
mov esi, dword [eax]
mov eax, dword [eax + 0xc]
cmp eax, 0x104
jae 0x4d8824
add eax, 0x1104
push ebp
push eax
mov ecx, ebx
call fcn.004d81a0
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], bp
jb 0x4d8855
mov eax, 0x104
jbe 0x4d8855
mov ecx, dword [ebx]
inc eax
cmp eax, esi
mov edx, dword [ecx + 8]
mov word [edx + eax*2 - 2], bp
jb 0x4d8846
mov eax, dword [ebx]
cmp eax, ebp
je 0x4d8860
mov eax, dword [eax + 8]
jmp 0x4d8862
xor eax, eax
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [ebx]
cmp eax, ebp
je 0x4d8884
mov eax, dword [eax + 8]
push eax
call fcn.004d9460
mov ecx, dword [ebx]
add esp, 4
mov dword [ecx], eax
mov esi, dword [edi + 0xc]
cmp esi, ebp
je 0x4d88fc
push esi
call fcn.004d9460
mov edi, eax
add esp, 4
cmp edi, ebp
je 0x4d88fc
cmp dword [ebx], ebp
jne 0x4d88ad
lea edx, [edi + 0x1000]
push ebp
push edx
mov ecx, ebx
call fcn.004d81a0
mov eax, dword [ebx]
mov edx, dword [eax]
mov ecx, dword [eax + 0xc]
lea ebp, [edx + edi]
cmp ebp, ecx
ja 0x4d88c0
lea ecx, [edi + edi]
jmp 0x4d88d7
lea eax, [ebp + 0x1000]
push 0
push eax
mov ecx, ebx
call fcn.004d81a0
mov eax, dword [ebx]
lea ecx, [edi + edi]
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]
mov dword [edx], ebp
xor ebp, ebp
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x17], 1
mov dword [esp + 0x28], ebp
call dword [ecx + 8]
mov ecx, eax
mov eax, dword [esp + 0x360]
add esp, 4
cmp eax, ebp
mov dword [esp + 0x30], ecx
je 0x4d8927
mov dword [eax], ecx
mov eax, dword [esp + 0x360]
cmp eax, ebp
je 0x4d8938
mov edx, dword [esp + 0x24]
mov dword [eax], edx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov eax, dword [ebx]
mov dword [esp + 0x354], ebp
cmp eax, ebp
je 0x4d8952
mov esi, dword [eax + 8]
jmp 0x4d8954
xor esi, esi
mov eax, dword [0x9c2a24]
cmp eax, ebp
jne 0x4d8989
push str.Shlwapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebp
je 0x4d8c19
push str.PathFileExistsW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
mov dword [0x9c2a24], eax
je 0x4d8c19
push esi
call eax
cmp eax, ebp
je 0x4d8c19
mov eax, dword [ebx]
cmp eax, ebp
je 0x4d899f
mov esi, dword [eax + 8]
jmp 0x4d89a1
xor esi, esi
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4d89b4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], ebp
push ebp
push 0x80
push 3
push ebp
push 7
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4d8c19
push ebp
push ebp
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp edi, ebp
mov dword [esp + 0x14], edi
je 0x4d8be1
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x2c], esi
jne 0x4d8a0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4d8be1
cmp esi, ebp
jle 0x4d8be1
push esi
call fcn.00543d8a
mov ebp, eax
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x34], ebp
test eax, eax
je 0x4d8bd6
lea ecx, [esp + 0x20]
push 0
push ecx
push esi
push ebp
push eax
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d8bd6
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
xor ecx, ecx
mov edi, eax
cmp edx, ecx
mov word [esp + 0x3c], cx
je 0x4d8baa
cmp eax, ecx
je 0x4d8baa
push 0xf0000000
push 1
push ecx
lea edx, [esp + 0x2c]
push ecx
push edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4d8b8a
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4d8b8a
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
push 0
push edi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4d8b8a
mov edx, dword [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea ecx, [esp + 0x28]
push 0
push ecx
push 0
push 2
push edx
mov dword [esp + 0x3c], 4
call edi
test eax, eax
je 0x4d8b8a
mov eax, dword [esp + 0x28]
push eax
call fcn.0051e9d7
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4d8b82
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push 0
push ecx
push ebp
push 2
push edx
call edi
test eax, eax
je 0x4d8b79
mov eax, dword [esp + 0x28]
cmp eax, 0x10
jb 0x4d8b46
mov eax, ebp
mov ecx, dword [eax]
mov dword [esp + 0x3c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x40], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x44], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x48], edx
jmp 0x4d8b72
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.0051e8ee
add esp, 4
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4d8b99
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4d8baa
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [esp + 0xc0]
push eax
push esi
push ebp
call fcn.004d94b0
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 0x4d8bd6
mov byte [esp + 0x13], dl
push ebp
call fcn.00543db3
add esp, 4
xor ebp, ebp
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x4d8bf6
push eax
call fcn.00543db3
add esp, 4
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4d8c0d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebp
je 0x4d8c0d
mov dword [esp + 0x14], ebp
mov al, byte [esp + 0x13]
test al, al
je 0x4d8cd9
mov eax, dword [ebx]
cmp eax, ebp
je 0x4d8c24
mov eax, dword [eax + 8]
jmp 0x4d8c26
xor eax, eax
push 0xffffffffffffffff
push 4
push eax
lea ecx, [esp + 0x20]
call fcn.004d9060
test eax, eax
setne al
test al, al
jne 0x4d8cb9
push ebp
call fcn.0051ff1e
push eax
call fcn.0051d4c2
push 6
lea eax, [esp + 0x38]
push 0x14
push eax
call fcn.004d8d70
add esp, 0x14
mov eax, dword [eax]
mov byte [esp + 0x354], 1
cmp eax, ebp
je 0x4d8c6c
mov ecx, dword [eax]
jmp 0x4d8c6e
xor ecx, ecx
cmp eax, ebp
je 0x4d8c77
mov eax, dword [eax + 8]
jmp 0x4d8c79
xor eax, eax
push ecx
push eax
push 1
mov ecx, ebx
call fcn.004d91b0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x354], 0
call fcn.004d9360
mov eax, dword [ebx]
cmp eax, ebp
je 0x4d8ca0
mov eax, dword [eax + 8]
jmp 0x4d8ca2
xor eax, eax
push 0xffffffffffffffff
push 4
push eax
lea ecx, [esp + 0x20]
call fcn.004d9060
test eax, eax
setne al
test al, al
je 0x4d8ce4
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.004d9180
test eax, eax
je 0x4d8ce4
lea ecx, [esp + 0x14]
call fcn.004d9140
mov ebx, dword [ebx]
cmp ebx, ebp
je 0x4d8d29
mov eax, dword [ebx + 8]
jmp 0x4d8d2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x148]
push 0x8fbb58
push eax
call fcn.0051feaf
add esp, 0xc
lea ecx, [esp + 0x144]
push ebp
push 0x8fbb44
push ecx
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebp
call fcn.0051fbeb
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [esp + 0x38]
mov esi, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x354], 0xffffffff
mov dword [edx], esi
call fcn.004d9140
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