Function at 0x140006740
Capabilities:
Check if file exists
Get common file path
Hash data with md5

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x240
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov rax, qword [0x140020090]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov byte [rsp + 0x100], 0
xor eax, eax
mov qword [r11 - 0x147], rax
mov qword [r11 - 0x13f], rax
mov word [rsp + 0x111], ax
mov byte [rsp + 0x113], al
mov qword [r11 - 0x1b8], 0xf
xor ebx, ebx
mov qword [r11 - 0x1c0], rbx
mov byte [rsp + 0x78], al
xor r8d, r8d
lea rdx, [0x14001baad]
lea rcx, [rsp + 0x70]
call fcn.140005e00
nop
lea rcx, [rsp + 0x100]
call fcn.140006550
test eax, eax
jne 0x140006927
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
lea rdi, [rsp + 0x100]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
movzx eax, word [0x14001bc90]
mov word [rdi - 1], ax
movzx eax, byte [0x14001bc92]
mov byte [rdi + 1], al
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x100]
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rdi, rcx
mov dword [rsp + 0xa0], ebx
mov dword [rsp + 0xa4], ebx
mov dword [rsp + 0xa8], 0x67452301
mov dword [rsp + 0xac], 0xefcdab89
mov dword [rsp + 0xb0], 0x98badcfe
mov dword [rsp + 0xb4], 0x10325476
lea rbx, [rsp + 0x100]
test ecx, ecx
je 0x1400068d9
lea ecx, [rcx*8]
mov dword [rsp + 0xa0], ecx
mov edx, edi
shr edx, 0x1d
lea eax, [rdi*8]
cmp ecx, eax
adc edx, 0
mov dword [rsp + 0xa4], edx
cmp edi, 0x40
jb 0x1400068c2
mov esi, edi
shr rsi, 6
nop word [rax + rax]
mov r8, rbx
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x30]
call fcn.140007e70
add edi, 0xffffffc0
add rbx, 0x40
sub rsi, 1
jne 0x1400068a0
test edi, edi
je 0x1400068d9
mov r8d, edi
mov rdx, rbx
lea rcx, [rsp + 0xb8]
call fcn.14000de50
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x30]
call fcn.140008950
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x30]
call fcn.140008b40
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140005320
nop
cmp qword [rsp + 0x68], 0x10
jb 0x140006927
mov rcx, qword [rsp + 0x50]
call fcn.140009ea8
lea r8, [rsp + 0x78]
cmp qword [rsp + 0x90], 0x10
cmovae r8, qword [rsp + 0x78]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
test rax, rax
je 0x140006a36
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rsp + 0x120], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x121]
call fcn.14000fcd0
lea rdx, [rsp + 0x120]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea rdi, [rsp + 0x120]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov rax, qword [str._sccon.ini]
mov qword [rdi - 1], rax
movzx eax, word [0x14001bca0]
mov word [rdi + 7], ax
movzx eax, byte [0x14001bca2]
mov byte [rdi + 9], al
lea rcx, [rsp + 0x120]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x140006a03
lea rcx, [rsp + 0x120]
call fcn.140006670
test eax, eax
je 0x140006a03
cmp qword [rsp + 0x90], 0x10
jb 0x1400069fc
mov rcx, qword [rsp + 0x78]
call fcn.140009ea8
mov eax, 1
jmp 0x140006a4d
lea rcx, [rsp + 0x78]
cmp qword [rsp + 0x90], 0x10
cmovae rcx, qword [rsp + 0x78]
call fcn.140004380
nop
cmp qword [rsp + 0x90], 0x10
jb 0x140006a32
mov rcx, qword [rsp + 0x78]
call fcn.140009ea8
xor eax, eax
jmp 0x140006a4d
cmp qword [rsp + 0x90], 0x10
jb 0x140006a4b
mov rcx, qword [rsp + 0x78]
call fcn.140009ea8
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140009e70
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret