Function at 0x47ce60
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 0x4c55a1
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 0x47d440
mov eax, dword [ebp + 4]
lea ebx, [ebp + 4]
cmp eax, edi
jne 0x47ceab
push edi
push 0x104
mov ecx, ebx
call fcn.0047c6a0
jmp 0x47cef6
mov esi, dword [eax]
mov eax, dword [eax + 0xc]
cmp eax, 0x104
jae 0x47cec5
add eax, 0x1104
push edi
push eax
mov ecx, ebx
call fcn.0047c800
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 0x47cef6
mov eax, 0x104
jbe 0x47cef6
mov ecx, dword [ebx]
inc eax
cmp eax, esi
mov edx, dword [ecx + 8]
mov word [edx + eax*2 - 2], di
jb 0x47cee7
mov eax, dword [ebx]
cmp eax, edi
je 0x47cf01
mov eax, dword [eax + 8]
jmp 0x47cf03
xor eax, eax
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [ebx]
cmp eax, edi
je 0x47cf25
mov eax, dword [eax + 8]
push eax
call fcn.0047dd70
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 0x47d009
push eax
call fcn.0047dd70
mov esi, eax
add esp, 4
cmp esi, edi
je 0x47d009
cmp dword [ebx], edi
jne 0x47cf5a
lea edx, [esi + 0x1000]
push edi
push edx
mov ecx, ebx
call fcn.0047c800
mov eax, dword [ebx]
mov edx, dword [eax]
mov ecx, dword [eax + 0xc]
lea ebp, [edx + esi]
cmp ebp, ecx
ja 0x47cf94
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 0x47d003
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.0047d8e0
add esp, 0xc
lea eax, [ebp + 0x1000]
mov ecx, ebx
push edi
push eax
call fcn.0047c800
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.0047c060
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 0x47d030
mov dword [eax], ebp
mov eax, dword [esp + 0x360]
cmp eax, edi
je 0x47d041
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 0x47d05f
mov esi, dword [eax + 8]
jmp 0x47d061
xor esi, esi
mov eax, dword [0x5845ac]
cmp eax, edi
jne 0x47d096
push str.Shlwapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
je 0x47d325
push str.PathFileExistsW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
mov dword [0x5845ac], eax
je 0x47d325
push esi
call eax
cmp eax, edi
je 0x47d325
mov eax, dword [ebx]
cmp eax, edi
je 0x47d0ac
mov esi, dword [eax + 8]
jmp 0x47d0ae
xor esi, esi
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x47d0c1
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 0x47d325
push edi
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, edi
mov dword [esp + 0x18], esi
je 0x47d2ed
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x30], esi
jne 0x47d117
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x47d2ed
cmp esi, edi
jle 0x47d2ed
push esi
call fcn.004b6a4a
mov ebp, eax
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, edi
mov dword [esp + 0x38], ebp
je 0x47d2e0
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 0x47d2e0
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 0x47d2b2
cmp eax, ecx
je 0x47d2b2
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 0x47d292
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 0x47d292
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 0x47d292
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 0x47d292
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004a6927
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x47d28a
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 0x47d281
mov eax, dword [esp + 0x14]
cmp eax, 0x10
jb 0x47d24e
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 0x47d27a
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.004a683e
add esp, 4
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x47d2a1
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x47d2b2
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [esp + 0xc0]
push eax
push esi
push ebp
call fcn.0047dc00
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 0x47d2de
mov byte [esp + 0x13], dl
xor edi, edi
push ebp
call fcn.004b6a73
mov ebp, dword [esp + 0x24]
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x47d302
push eax
call fcn.004b6a73
add esp, 4
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x47d319
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
je 0x47d319
mov dword [esp + 0x18], edi
mov al, byte [esp + 0x13]
test al, al
je 0x47d3c9
mov eax, dword [ebx]
cmp eax, edi
je 0x47d330
mov eax, dword [eax + 8]
jmp 0x47d332
xor eax, eax
push 0xffffffffffffffff
push 4
push eax
lea ecx, [esp + 0x24]
call fcn.0047d4e0
test eax, eax
setne al
test al, al
jne 0x47d3ad
push edi
call fcn.004a7c7e
push eax
call fcn.004a5732
push 6
lea eax, [esp + 0x3c]
push 0x14
push eax
call fcn.0047d5c0
add esp, 0x14
push 1
push eax
mov ecx, ebx
mov byte [esp + 0x35c], 2
call fcn.0047d460
lea ecx, [esp + 0x30]
mov byte [esp + 0x354], 1
call fcn.0047dbc0
mov eax, dword [ebx]
cmp eax, edi
je 0x47d394
mov eax, dword [eax + 8]
jmp 0x47d396
xor eax, eax
push 0xffffffffffffffff
push 4
push eax
lea ecx, [esp + 0x24]
call fcn.0047d4e0
test eax, eax
setne al
test al, al
je 0x47d3d4
mov ecx, dword [esp + 0x2c]
push ecx
push ebp
lea ecx, [esp + 0x20]
call fcn.0047d8b0
test eax, eax
je 0x47d3d4
lea ecx, [esp + 0x18]
call fcn.0047d870
mov ebx, dword [ebx]
cmp ebx, edi
je 0x47d419
mov eax, dword [ebx + 8]
jmp 0x47d41b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x148]
push 0x5677dc
push edx
call fcn.004a7c0f
add esp, 0xc
lea eax, [esp + 0x144]
push edi
push 0x5677c8
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.004a7950
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.0047d870
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