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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f1a70
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x6b7e40]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x22a], dl
mov ebx, ecx
mov al, byte [ebp + 8]
mov dword [ebp - 4], 0
push str.C:WindowsTemp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x240], ebx
mov byte [ebp - 0x21d], al
mov dword [ebp - 0x23c], 0
call fcn.004021e0
lea eax, [ebp - 0x21c]
push eax
push 0x104
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x416253
call fcn.004a4516
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x416103
push 0x80004005
call fcn.00402040
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x228]
push str.WARNING:_This_system_does_not_have_a_Temp_directory___
push eax
mov byte [ebp - 4], 2
call fcn.00404520
add esp, 8
lea ecx, [ebp - 0x224]
push 0x63bfdc
call fcn.004021e0
xor ecx, ecx
call fcn.004051a0
mov edi, eax
push ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
mov esi, esp
push ecx
call fcn.004046f0
add esp, 4
add eax, 0x10
push 0
push 0
mov dword [esi], eax
lea eax, [ebp - 0x228]
push eax
push 0x77c
push str.C:_amintegration_tools_setupishield_sldim_baseUtilities.cpp
push 1
push 1
mov ecx, edi
call fcn.004055a0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4161a8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x416238
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x238], esp
push str.Temp
mov byte [ebp - 0x229], 1
call fcn.004021e0
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esp
push eax
mov byte [ebp - 4], 4
call fcn.004021e0
mov dl, byte [ebp - 0x229]
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 2
call fcn.0041a740
add esp, 0xc
push eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 5
call fcn.00404570
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x416238
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jmp 0x416291
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x224]
call fcn.004021e0
push eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 6
call fcn.00404570
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41629b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
push eax
call fcn.004046f0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
cmp byte [ebp - 0x22a], 0
mov dword [ebp - 0x23c], 1
je 0x416396
cmp byte [ebp - 0x21d], 0
mov ecx, str.SOLIDWORKSInstallation_Manager_Data
mov eax, str.SOLIDWORKSInstallation_Logs
cmove eax, ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.004021e0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x224]
push 0
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x234], esp
mov esi, esp
push eax
mov byte [ebp - 0x21d], 1
call fcn.004046f0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 8
mov eax, dword [ebx]
sub eax, 0x10
mov esi, esp
push eax
call fcn.004046f0
mov dl, byte [ebp - 0x21d]
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 7
call fcn.0041a740
add esp, 0xc
push eax
mov ecx, ebx
mov byte [ebp - 4], 9
call fcn.00404570
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x416373
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x416396
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x416473
mov eax, dword [ebx]
push ecx
sub eax, 0x10
mov esi, esp
push eax
call fcn.004046f0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00415120
add esp, 4
test al, al
jne 0x416473
call fcn.004a4516
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4163e9
push 0x80004005
call fcn.00402040
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x228]
push str.ERROR:_Unable_to_create_Temp_subdirectory_for_application
push eax
mov byte [ebp - 4], 0xa
call fcn.00404520
add esp, 4
mov ecx, esp
push 0x63bfdc
call fcn.004021e0
push 0
lea eax, [ebp - 0x228]
push eax
push 0x7a3
push str.C:_amintegration_tools_setupishield_sldim_baseUtilities.cpp
push 1
push 0
xor ecx, ecx
call fcn.004051a0
mov ecx, eax
call fcn.004022e0
lea eax, [ebp - 0x230]
push eax
mov ecx, ebx
call fcn.00404570
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x416473
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x230]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x416494
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005bc16b
mov esp, ebp
pop ebp
ret