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

Disassembly:
push 0x50
mov eax, 0x5160c5
call fcn.004d8af2
mov ebx, edx
mov dword [ebp - 0x58], ebx
mov edi, ecx
mov dword [ebp - 0x38], edi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x48]
and dword [ebp - 0x4c], 0
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], 0x80004005
call fcn.0040687a
xor eax, eax
push esi
push eax
push eax
push ebx
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x43ce92
and dword [edi], 0
lea ecx, [edi + 8]
and dword [edi + 4], 0
call fcn.0040687a
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
jmp 0x43d299
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0xb8
call fcn.0040687a
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x50]
call fcn.004032ed
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00407189
xor esi, esi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 1
push ebx
push dword [ebp - 0x54]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x43d284
inc esi
cmp esi, 4
jb 0x43cec5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x43cf3c
movzx ecx, ax
or ecx, 0x80070000
mov dword [ebp - 0x30], 0xc5
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], eax
call fcn.0040687a
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x50]
call fcn.004032ed
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00407189
call fcn.00428aa8
test al, al
je 0x43d277
and dword [ebp - 0x44], 0
lea esi, [ebp - 0x10]
and dword [ebp - 0x40], 0
push 0x18
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x24], 0x545d24
mov dword [ebp - 0x20], 0xb
mov dword [ebp - 0x1c], str.Start_Menu
mov dword [ebp - 0x18], 0x10
mov dword [ebp - 0x14], str.Desktop
call fcn.004d8429
pop ecx
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x44], eax
push esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x44]
call fcn.004b6df5
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x44]
call fcn.004beb1a
mov esi, dword [ebp - 0x14]
cmp byte [esi + 0xd], 0
jne 0x43cfc9
cmp ebx, dword [esi + 0x10]
jae 0x43cfcc
mov esi, dword [ebp - 0x44]
cmp esi, dword [ebp - 0x44]
je 0x43d26b
lea ecx, [ebp - 0x38]
call fcn.0040687a
push 1
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 5
push eax
push dword [esi + 0x14]
mov edx, ADsGetObject
lea ecx, [ebp - 0x34]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
call fcn.0042b75b
add esp, 0x10
mov byte [ebp - 4], 6
cmp dword [ebp - 0x34], 0
jge 0x43d075
cmp dword [ebp - 0x30], 0
mov eax, 0xd6
cmovne eax, dword [ebp - 0x30]
push eax
push dword [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x2c]
mov esi, esp
mov dword [ebp - 0x58], esi
lea ecx, [ecx - 0x10]
call fcn.004070e7
add eax, 0x10
lea ecx, [ebp - 0x1c]
mov dword [esi], eax
call fcn.00406620
mov byte [ebp - 4], 7
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.0040121b
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00407189
lea ecx, [ebp - 0x44]
call fcn.004acf41
jmp 0x43d293
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.00407189
push ecx
mov ecx, dword [ebp - 0x38]
lea ebx, [ebp - 0x38]
mov esi, esp
mov dword [ebp - 0x3c], esi
lea ecx, [ecx - 0x10]
call fcn.004070e7
add eax, 0x10
lea ecx, [ebp - 0x34]
mov edx, ebx
mov dword [esi], eax
call fcn.00428612
pop ecx
mov byte [ebp - 4], 8
cmp dword [ebp - 0x34], 0
jge 0x43d0ea
cmp dword [ebp - 0x30], 0
mov eax, 0xd7
cmovne eax, dword [ebp - 0x30]
push eax
push dword [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x2c]
mov esi, esp
mov dword [ebp - 0x3c], esi
lea ecx, [ecx - 0x10]
call fcn.004070e7
add eax, 0x10
lea ecx, [ebp - 0x1c]
mov dword [esi], eax
call fcn.00406620
mov byte [ebp - 4], 9
jmp 0x43d03c
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00407189
push 0
push 0x25
lea ecx, [ebp - 0x38]
call fcn.004aee68
cmp eax, 0xffffffff
je 0x43d13b
push 0xd8
push 0x80004005
push ecx
mov ecx, esp
call fcn.0040687a
lea ecx, [ebp - 0x1c]
call fcn.00406620
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xa
push eax
mov ecx, edi
call fcn.0040121b
mov ecx, dword [ebp - 0x14]
jmp 0x43d055
mov eax, dword [ebp - 0x38]
lea ebx, [eax - 0x10]
cmp dword [ebx + 4], 0
jne 0x43d182
push 0xd9
push 0x80004005
push ecx
mov ecx, esp
call fcn.0040687a
lea ecx, [ebp - 0x1c]
call fcn.00406620
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
push eax
mov ecx, edi
call fcn.0040121b
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, ebx
jmp 0x43d063
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43d1a5
lea ecx, [edi + 8]
mov dword [edi], 0x800700b7
mov dword [edi + 4], 0xdb
call fcn.0040687a
jmp 0x43d17b
push ecx
mov esi, esp
mov ecx, ebx
mov dword [ebp - 0x3c], esi
call fcn.004070e7
add eax, 0x10
lea ecx, [ebp - 0x34]
mov dword [esi], eax
call fcn.00429667
pop ecx
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x34], 0
jge 0x43d21b
cmp dword [ebp - 0x30], 0
mov eax, 0xdd
cmovne eax, dword [ebp - 0x30]
push eax
push dword [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x2c]
mov esi, esp
mov dword [ebp - 0x3c], esi
lea ecx, [ecx - 0x10]
call fcn.004070e7
add eax, 0x10
lea ecx, [ebp - 0x1c]
mov dword [esi], eax
call fcn.00406620
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xd
push eax
mov ecx, edi
call fcn.0040121b
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x2c]
jmp 0x43d173
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00407189
push dword [ebp - 0x54]
xor eax, eax
push eax
push eax
push dword [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0xe0
call fcn.0040687a
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x50]
call fcn.004032ed
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, ebx
call fcn.00407189
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.004acf41
lea eax, [ebp - 0x50]
mov ecx, edi
push eax
call fcn.0040121b
jmp 0x43d293
and dword [edi], 0
lea ecx, [edi + 8]
and dword [edi + 4], 0
call fcn.0040687a
mov ecx, dword [ebp - 0x48]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov eax, edi
call fcn.004d8aa1
ret