Function at 0x10077190
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x82c]
sub esp, 0x82c
push 0xffffffffffffffff
push 0x100b3780
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x100db00c]
xor eax, ebp
mov dword [ebp + 0x828], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x100de090], 0
jne 0x10077478
push 0x410
lea eax, [ebp + 0x418]
mov byte [0x100de090], 1
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x10077239
lea eax, [ebp + 0x418]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x10077230
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10077239
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x10077239
xor eax, eax
mov word [ebp + 0x418], ax
lea edi, [ebp + 0x418]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x10077242
mov eax, dword [0x100ba0dc]
lea ecx, [ebp + 0x418]
mov dword [edi], eax
add ecx, 0xfffffffe
nop
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10077260
mov eax, dword [str.2345Pic]
mov dword [ecx], eax
mov eax, dword [0x100b990c]
mov dword [ecx + 4], eax
mov eax, dword [0x100b9910]
mov dword [ecx + 8], eax
mov eax, dword [0x100b9914]
mov dword [ecx + 0xc], eax
lea eax, [ebp + 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100772a6
xor eax, eax
mov word [ebp + 0x418], ax
push 0x412
lea eax, [ebp + 4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea ecx, [ebp + 0x418]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100772c2
sub ecx, edx
sar ecx, 1
je 0x10077348
push 0x207
lea eax, [ebp + 0x418]
push eax
lea eax, [ebp + 4]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
lea ecx, [ebp + 4]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100772f2
sub ecx, edx
sar ecx, 1
je 0x10077348
lea edi, [ebp + 4]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x10077310
mov eax, dword [0x100ba0dc]
mov dword [edi], eax
lea edi, [ebp + 4]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10077330
mov ecx, 7
mov esi, str.2345Image.hzv
rep movsd dword es:[edi], dword [esi]
call fcn.100961f0
lea ecx, [ebp + 4]
mov esi, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10077355
sub ecx, edx
sar ecx, 1
je 0x10077478
mov edi, dword [esi]
mov dword [ebp], 0
mov dword [ebp], edi
test edi, edi
je 0x10077387
mov eax, dword [edi]
test eax, eax
je 0x10077387
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
xor eax, eax
lea ecx, [ebp + 4]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100773b6
sub ecx, edx
lea eax, [ebp + 4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.100039d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
mov esi, dword [esi]
add esi, 0x14
cmp dword [ebp - 0x14], 8
mov ebx, esi
cmovae ecx, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x100773f0
mov ebx, dword [esi]
mov edx, dword [esi + 0x10]
cmp edx, dword [ebp - 0x18]
jne 0x10077413
test edx, edx
je 0x1007744d
sub ebx, ecx
nop
mov ax, word [ebx + ecx]
cmp ax, word [ecx]
jne 0x10077413
add ecx, 2
sub edx, 1
jne 0x10077400
jmp 0x1007744d
mov ecx, esi
call fcn.1009c010
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x10077434
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.100039d0
mov edx, dword [esi + 0x1c]
push ecx
mov ecx, dword [esi + 0x18]
call fcn.1009efa0
mov eax, dword [esi + 0x18]
add esp, 4
mov dword [esi + 0x1c], eax
mov byte [esi + 0x24], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10003970
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10077478
mov eax, dword [edi]
test eax, eax
je 0x10077471
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x828]
xor ecx, ebp
call fcn.100a26ec
lea esp, [ebp + 0x82c]
pop ebp
ret