Function at 0x4055e0
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.0040e430
add esp, 0xc
push ebp
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x405666
lea eax, [esp + 0x6c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x405666
push 0x43cb68
lea eax, [esp + 0x70]
push 0x104
push eax
call fcn.0040f7c7
push ebp
lea eax, [esp + 0x7c]
push 0x104
push eax
call fcn.0040f7c7
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 0x4057ca
cmp dword [ebx + 0x294], edi
je 0x4056d1
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.0040f640
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 0x4057b9
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.0040f88f
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4057b9
jmp 0x405730
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x405759
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.0040d3f0
add esp, 0x18
jmp 0x40576f
cmp edi, 0x10
jae 0x40578b
push esi
mov ecx, ebx
call fcn.00405300
mov dword [esp + edi*4 + 0x24], eax
test eax, eax
je 0x4057b4
inc edi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x68]
push eax
push 0
call fcn.0040f88f
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x405730
jmp 0x4057b9
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.0040d3f0
push ebp
push str.Dependency_count_exceeded_maximum_for__S
push 0x20
call fcn.00403670
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 0x4057da
push 1
push ebp
mov ecx, ebx
call fcn.00405450
mov dword [ebx + 0x214], eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
xor esi, esi
test edi, edi
je 0x4057ff
lea ebx, [ebx]
push dword [esp + esi*4 + 0x24]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
inc esi
cmp esi, edi
jb 0x4057f0
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.0040e41a
add esp, 0xa68
ret 4