Function at 0x402760
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 0x4136e0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x41b008]
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 [0x41be48], 0
jne 0x402a2d
push 0x410
lea eax, [ebp + 0x418]
mov byte [0x41be48], 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 0x402809
lea eax, [ebp + 0x418]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x402800
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x402809
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x402809
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 0x402812
mov eax, dword [0x416440]
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 0x402830
mov eax, dword [str.2345Pic]
mov dword [ecx], eax
mov eax, dword [0x4163e0]
mov dword [ecx + 4], eax
mov eax, dword [0x4163e4]
mov dword [ecx + 8], eax
mov eax, dword [0x4163e8]
mov dword [ecx + 0xc], eax
lea eax, [ebp + 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402876
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 0x402892
sub ecx, edx
sar ecx, 1
je 0x402918
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 0x4028c2
sub ecx, edx
sar ecx, 1
je 0x402918
lea edi, [ebp + 4]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4028e0
mov eax, dword [0x416440]
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 0x402900
mov ecx, 7
mov esi, 0x416444
rep movsd dword es:[edi], dword [esi]
call fcn.004045a0
lea ecx, [ebp + 4]
mov edi, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402925
sub ecx, edx
sar ecx, 1
je 0x402a2d
mov ebx, dword [edi]
mov dword [ebp], 0
mov dword [ebp], ebx
test ebx, ebx
je 0x402957
mov eax, dword [ebx]
test eax, eax
je 0x402957
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
lea eax, [ebp + 4]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402200
mov byte [ebp - 4], 1
mov edi, dword [edi]
add edi, 0x14
mov ecx, edi
call fcn.00402330
lea ecx, [ebp - 0x2c]
mov edx, eax
call fcn.00402330
mov dword [ebp - 0x14], eax
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x402991
mov ecx, dword [eax]
cmp dword [edx + 0x14], 8
mov esi, edx
jb 0x40299b
mov esi, dword [edx]
mov edx, dword [edx + 0x10]
cmp edx, dword [eax + 0x10]
jne 0x4029c3
test edx, edx
je 0x402a02
sub esi, ecx
nop dword [eax]
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x4029c3
add ecx, 2
sub edx, 1
jne 0x4029b0
jmp 0x402a02
mov ecx, edi
call fcn.00409390
lea eax, [ebp - 0x2c]
cmp edi, eax
je 0x4029e9
mov eax, dword [ebp - 0x14]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4029de
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edi
call fcn.00402360
mov edx, dword [edi + 0x1c]
push ecx
mov ecx, dword [edi + 0x18]
call fcn.0040c5f0
mov eax, dword [edi + 0x18]
add esp, 4
mov dword [edi + 0x1c], eax
mov byte [edi + 0x24], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004021a0
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x402a2d
mov eax, dword [ebx]
test eax, eax
je 0x402a26
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.00411f16
lea esp, [ebp + 0x82c]
pop ebp
ret