Function at 0x597550
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 0x615731
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 0x597b30
mov eax, dword [ebp + 4]
lea ebx, [ebp + 4]
cmp eax, edi
jne 0x59759b
push edi
push 0x104
mov ecx, ebx
call fcn.00596d90
jmp 0x5975e6
mov esi, dword [eax]
mov eax, dword [eax + 0xc]
cmp eax, 0x104
jae 0x5975b5
add eax, 0x1104
push edi
push eax
mov ecx, ebx
call fcn.00596ef0
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 0x5975e6
mov eax, 0x104
jbe 0x5975e6
mov ecx, dword [ebx]
inc eax
cmp eax, esi
mov edx, dword [ecx + 8]
mov word [edx + eax*2 - 2], di
jb 0x5975d7
mov eax, dword [ebx]
cmp eax, edi
je 0x5975f1
mov eax, dword [eax + 8]
jmp 0x5975f3
xor eax, eax
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [ebx]
cmp eax, edi
je 0x597615
mov eax, dword [eax + 8]
push eax
call fcn.005982b0
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 0x5976f9
push eax
call fcn.005982b0
mov esi, eax
add esp, 4
cmp esi, edi
je 0x5976f9
cmp dword [ebx], edi
jne 0x59764a
lea edx, [esi + 0x1000]
push edi
push edx
mov ecx, ebx
call fcn.00596ef0
mov eax, dword [ebx]
mov edx, dword [eax]
mov ecx, dword [eax + 0xc]
lea ebp, [edx + esi]
cmp ebp, ecx
ja 0x597684
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 0x5976f3
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.00597fd0
add esp, 0xc
lea eax, [ebp + 0x1000]
mov ecx, ebx
push edi
push eax
call fcn.00596ef0
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.00596750
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 0x597720
mov dword [eax], ebp
mov eax, dword [esp + 0x360]
cmp eax, edi
je 0x597731
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 0x59774f
mov esi, dword [eax + 8]
jmp 0x597751
xor esi, esi
mov eax, dword [0x8d12dc]
cmp eax, edi
jne 0x597786
push str.Shlwapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
je 0x597a15
push str.PathFileExistsW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
mov dword [0x8d12dc], eax
je 0x597a15
push esi
call eax
cmp eax, edi
je 0x597a15
mov eax, dword [ebx]
cmp eax, edi
je 0x59779c
mov esi, dword [eax + 8]
jmp 0x59779e
xor esi, esi
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x5977b1
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 closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x597a15
push edi
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, edi
mov dword [esp + 0x18], esi
je 0x5979dd
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x30], esi
jne 0x597807
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x5979dd
cmp esi, edi
jle 0x5979dd
push esi
call fcn.00605fd1
mov ebp, eax
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, edi
mov dword [esp + 0x38], ebp
je 0x5979d0
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 0x5979d0
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 0x5979a2
cmp eax, ecx
je 0x5979a2
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 0x597982
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 0x597982
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 0x597982
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 0x597982
mov ecx, dword [esp + 0x14]
push ecx
call fcn.005eeb67
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x59797a
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 0x597971
mov eax, dword [esp + 0x14]
cmp eax, 0x10
jb 0x59793e
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 0x59796a
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.005eea7e
add esp, 4
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x597991
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x5979a2
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [esp + 0xc0]
push eax
push esi
push ebp
call fcn.00598330
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 0x5979ce
mov byte [esp + 0x13], dl
xor edi, edi
push ebp
call fcn.00605ffa
mov ebp, dword [esp + 0x24]
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x5979f2
push eax
call fcn.00605ffa
add esp, 4
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x597a09
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
je 0x597a09
mov dword [esp + 0x18], edi
mov al, byte [esp + 0x13]
test al, al
je 0x597ab9
mov eax, dword [ebx]
cmp eax, edi
je 0x597a20
mov eax, dword [eax + 8]
jmp 0x597a22
xor eax, eax
push 0xffffffffffffffff
push 4
push eax
lea ecx, [esp + 0x24]
call fcn.00597e80
test eax, eax
setne al
test al, al
jne 0x597a9d
push edi
call fcn.005f008e
push eax
call fcn.005ed682
push 6
lea eax, [esp + 0x3c]
push 0x14
push eax
call fcn.00597b90
add esp, 0x14
push 1
push eax
mov ecx, ebx
mov byte [esp + 0x35c], 2
call fcn.00597b50
lea ecx, [esp + 0x30]
mov byte [esp + 0x354], 1
call fcn.005997e0
mov eax, dword [ebx]
cmp eax, edi
je 0x597a84
mov eax, dword [eax + 8]
jmp 0x597a86
xor eax, eax
push 0xffffffffffffffff
push 4
push eax
lea ecx, [esp + 0x24]
call fcn.00597e80
test eax, eax
setne al
test al, al
je 0x597ac4
mov ecx, dword [esp + 0x2c]
push ecx
push ebp
lea ecx, [esp + 0x20]
call fcn.00597fa0
test eax, eax
je 0x597ac4
lea ecx, [esp + 0x18]
call fcn.00597f60
mov ebx, dword [ebx]
cmp ebx, edi
je 0x597b09
mov eax, dword [ebx + 8]
jmp 0x597b0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x148]
push 0x80a88c
push edx
call fcn.005f001f
add esp, 0xc
lea eax, [esp + 0x144]
push edi
push 0x80a878
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.005efd58
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.00597f60
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