Function at 0x410670
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x250
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x004413e8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov edi, edx
mov rbx, rcx
mov r8d, edx
lea rdx, str.CScriptMapsComponent::RestartIIS_Error_code:_0x_x
xor ecx, ecx
call fcn.004139f0
xor edx, edx
mov r8d, 0x11c
lea rcx, [rsp + 0xf0]
call fcn.00417540
mov dword [rsp + 0xf0], 0x11c
mov dword [rsp + 0xf4], 5
mov dword [rsp + 0xf8], 1
mov r8b, 1
mov edx, 2
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 1
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8, rax
mov edx, 3
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x4109af
cmp edi, 0x80070094
jne 0x4109af
cmp byte [rbx + 0x18], 0
jne 0x4109af
lea rdx, str.CScriptMapsComponent::RestartIIS_Attempting_to_restart_IIS
xor ecx, ecx
call fcn.004139f0
mov byte [rbx + 0x18], 1
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
xor edx, edx
lea r8d, [rax + 0x68]
lea rcx, [rsp + 0x80]
call fcn.00417540
mov dword [rsp + 0x80], 0x68
mov ecx, 0x208
call fcn.00416180
mov rbx, rax
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x24]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x4107c3
mov r8d, eax
lea rdx, str.CScriptMapsComponent::RestartIIS_Could_not_find_pszWindowsFolderPath_Error_code:_0x_x
mov ecx, 1
call fcn.004139f0
xor al, al
jmp 0x4109b1
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.004027e0
nop
lea r8, str._system32iisreset.exe
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.004024e0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [rsp + 0x50]
add rdi, 0xffffffffffffffe8
or ebx, 0xffffffff
cmp rcx, rdi
je 0x41084a
cmp dword [rdi + 0x10], 0
jl 0x41083b
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x41083b
call fcn.00401390
mov rsi, rax
mov ecx, ebx
lock xadd dword [rdi + 0x10], ecx
add ecx, ebx
test ecx, ecx
jg 0x410830
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [rsp + 0x50], rax
jmp 0x41084a
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.00401720
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x41086a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rsp + 0x210]
mov rax, qword [str._restart__timeout:120]
mov qword [rcx], rax
mov rax, qword [0x004349e8]
mov qword [rcx + 8], rax
mov rax, qword [0x004349f0]
mov qword [rcx + 0x10], rax
mov rax, qword [0x004349f8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x00434a00]
mov qword [rcx + 0x20], rax
mov eax, dword [0x00434a08]
mov dword [rcx + 0x28], eax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x210]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x41092e
lea rdx, str.CScriptMapsComponent::RestartIIS_Could_not_restart_IIS
lea ecx, [rax + 1]
call fcn.004139f0
nop
mov rax, qword [rsp + 0x50]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x410927
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x4109b1
mov edx, 0x1d4c0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x410981
lea rdx, str.CScriptMapsComponent::RestartIIS_Timed_out_when_restarting_IIS
mov ecx, 1
call fcn.004139f0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, qword [rsp + 0x50]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x41097d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x4109b1
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, qword [rsp + 0x50]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x4109ab
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov al, 1
jmp 0x4109b1
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.00417510
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret