Function at 0x405d80
Capabilities:
Check if file exists
Get file attributes
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x4fa104
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x52e028]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52e028]
xor eax, esp
push eax
lea eax, [esp + 0x2e8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2f8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor esi, esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], esi
call ebx
push str.IsWow64Process
mov dword [esp + 0x18], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.kernel32
mov ebp, eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
test eax, eax
je 0x405e05
lea edx, [esp + 0x14]
push edx
push ebp
call eax
cmp dword [esp + 0x14], 0
je 0x405e4c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x53f540
mov dword [esp + 0x24], eax
call fcn.00403df0
lea eax, [esp + 0x20]
call fcn.004074f0
mov ebp, dword [eax]
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call esi
push eax
call edi
test eax, eax
je 0x405e41
push ebp
call eax
push 0x53f548
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebp, dword [esp + 0x18]
push ebp
call dword [0x4ff5bc]
add esp, 4
mov dword [esp + 0x20], eax
call ebx
push str.IsWow64Process
push str.kernel32
mov ebx, eax
mov dword [esp + 0x1c], 0
call esi
push eax
call edi
test eax, eax
je 0x405e85
lea ecx, [esp + 0x14]
push ecx
push ebx
call eax
cmp dword [esp + 0x14], 0
je 0x405ecc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x53f540
mov dword [esp + 0x18], eax
call fcn.00403df0
lea eax, [esp + 0x14]
call fcn.004074f0
push str.Wow64DisableWow64FsRedirection
push str.kernel32
mov ebx, eax
call esi
push eax
call edi
test eax, eax
je 0x405ec1
push ebx
call eax
push 0x53f548
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x20]
test edi, edi
je 0x4060fd
push edi
call dword [0x4ff5ac]
add esp, 4
push eax
lea ecx, [esp + 0x1c]
call dword [0x4fff2c]
mov dword [esp + 0x2f0], 0
push edi
call dword [0x4ff5b0]
add esp, 4
push eax
lea ecx, [esp + 0x18]
call dword [0x4fff2c]
mov byte [esp + 0x2f0], 1
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
je 0x405f3b
mov edx, dword [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
call fcn.00405980
test eax, eax
jne 0x4060c4
mov eax, dword [esp + 0x18]
mov ebx, dword [0x4ff3bc]
push 0x5c
push eax
mov esi, eax
call ebx
add esp, 8
test eax, eax
jne 0x405f53
mov eax, esi
jmp 0x405f56
add eax, 2
test eax, eax
je 0x405f64
push 0x2e
push eax
call ebx
add esp, 8
jmp 0x405f66
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], 0
je 0x405f8b
test eax, eax
je 0x405f8b
push 0x500e9c
push eax
call dword [0x4ff3b4]
add esp, 8
test eax, eax
jne 0x4060c4
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4060c4
push 0x18
call fcn.004ef114
add esp, 4
test eax, eax
je 0x405fb6
push eax
call fcn.00405420
mov esi, eax
jmp 0x405fb8
xor esi, esi
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405fe9
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esi + 0xc]
call dword [0x4ffefc]
lea edx, [esp + 0x14]
push edx
lea ecx, [esi + 0x10]
call dword [0x4ffefc]
jmp 0x405ff3
push ebp
lea ecx, [esi + 0xc]
call dword [0x4fff04]
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
call fcn.00403f40
add esp, 4
mov byte [esp + 0x2f0], 2
push eax
mov ecx, esi
call dword [0x4ffefc]
mov byte [esp + 0x2f0], 1
lea ecx, [esp + 0x28]
call dword [0x4fff34]
mov eax, dword [esp + 0x18]
push 0x5c
push eax
mov edi, eax
call ebx
add esp, 8
test eax, eax
jne 0x40603b
mov eax, edi
jmp 0x40603e
add eax, 2
push eax
lea ecx, [esi + 4]
call dword [0x4fff04]
mov ecx, dword [esp + 0x2fc]
push 0x2b0
lea edx, [esp + 0x34]
push 0
mov dword [esi + 0x14], ecx
push edx
mov dword [esp + 0x38], 0
call fcn.004f0a6a
add esp, 0xc
push 0x200
push 0x2b4
lea eax, [esp + 0x34]
push eax
push 0
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4060a9
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call dword [0x4ffb78]
test eax, eax
je 0x4060a9
lea edx, [esp + 0x38]
push edx
lea ecx, [esi + 8]
call dword [0x4fff04]
mov edi, dword [esp + 0x24]
add edi, 4
lea ebx, [esp + 0x1c]
call fcn.0043e9f0
mov edi, dword [esp + 0x20]
mov esi, 1
jmp 0x4060c8
mov esi, dword [esp + 0x1c]
push edi
call dword [0x4ff5b4]
add esp, 4
mov byte [esp + 0x2f0], 0
lea ecx, [esp + 0x14]
call dword [0x4fff34]
mov dword [esp + 0x2f0], 0xffffffff
lea ecx, [esp + 0x18]
call dword [0x4fff34]
mov eax, esi
jmp 0x406101
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2d0]
xor ecx, esp
call fcn.004efe2a
add esp, 0x2e0
ret 8