Function at 0x405610
Capabilities:
Get common file path

Disassembly:
sub esp, 0xa68
mov eax, dword [0x447170]
xor eax, esp
mov dword [esp + 0xa64], eax
push ebx
push ebp
mov ebp, dword [esp + 0xa74]
lea eax, [esp + 0x20]
push esi
push edi
xor edi, edi
mov byte [esp + 0x13], 1
push 0x3c
push edi
push eax
mov ebx, ecx
mov dword [esp + 0x30], edi
call fcn.0040e4b0
add esp, 0xc
push ebp
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x405696
lea eax, [esp + 0x6c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x405696
push 0x43cb68
lea eax, [esp + 0x70]
push 0x104
push eax
call fcn.0040f847
push ebp
lea eax, [esp + 0x7c]
push 0x104
push eax
call fcn.0040f847
add esp, 0x18
lea ebp, [esp + 0x6c]
call dword [sym.imp.KERNEL32.dll_GetErrorMode]
mov dword [esp + 0x20], eax
or eax, 1
push eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea eax, [esp + 0x18]
push eax
call esi
push 2
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4057fa
cmp dword [ebx + 0x294], edi
je 0x405701
lea eax, [esp + 0x64]
push eax
call esi
mov ecx, dword [esp + 0x64]
sub ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x68]
sbb eax, dword [esp + 0x1c]
push 0
push 0xa
push eax
push ecx
call fcn.0040f6c0
mov ecx, dword [ebx + 0x294]
mov dword [ecx + 0x3c], eax
push 0x400
lea eax, [esp + 0x278]
push eax
push 0x29bb
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x4057e9
mov eax, dword [0x43cce0]
mov dword [esp + 0x64], eax
mov eax, dword [0x43cce4]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x27c]
push eax
call fcn.0040f90f
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4057e9
jmp 0x405760
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x405789
push esi
push str.Dependency_module__S_has_been_loaded_already
push 3
push 0xde
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcPluginManager.cpp
push dword [ebx]
call fcn.0040d470
add esp, 0x18
jmp 0x40579f
cmp edi, 0x10
jae 0x4057bb
push esi
mov ecx, ebx
call fcn.00405330
mov dword [esp + edi*4 + 0x24], eax
test eax, eax
je 0x4057e4
inc edi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x68]
push eax
push 0
call fcn.0040f90f
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x405760
jmp 0x4057e9
push ebp
push str.Dependency_count_exceeded_maximum_for__S
push 1
push 0xe7
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcPluginManager.cpp
push dword [ebx]
call fcn.0040d470
push ebp
push str.Dependency_count_exceeded_maximum_for__S
push 0x20
call fcn.00403680
add esp, 0x24
mov byte [esp + 0x13], 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [esp + 0x13], 0
je 0x40580a
push 1
push ebp
mov ecx, ebx
call fcn.00405480
mov dword [ebx + 0x214], eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
xor esi, esi
test edi, edi
je 0x40582f
lea ebx, [ebx]
push dword [esp + esi*4 + 0x24]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
inc esi
cmp esi, edi
jb 0x405820
mov ecx, dword [esp + 0xa74]
xor eax, eax
cmp dword [ebx + 0x214], eax
pop edi
pop esi
pop ebp
setne al
pop ebx
xor ecx, esp
call fcn.0040e49c
add esp, 0xa68
ret 4