Function at 0x40ff80
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x250
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x280], rbx
mov rax, qword [0x004413e8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r13, r8
mov r12, rdx
lea r8, str..aspx
lea rdx, str.CScriptMapsComponent::GetScriptMapIndex_cszExt_s
xor ecx, ecx
call fcn.004139f0
xor ebx, ebx
mov eax, dword [r12 + 8]
test eax, eax
jle 0x41020b
mov rbp, rbx
or rsi, 0xffffffffffffffff
test rbp, rbp
js 0x4101f5
cmp ebx, eax
jge 0x4101f5
mov rdx, qword [r12]
mov rax, qword [rdx + rbp]
mov rdi, qword [rax]
xor eax, eax
mov rcx, rsi
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
cmp rcx, 5
jbe 0x410031
mov rax, qword [rdx + rbp]
mov r8d, 5
lea rdx, str..aspx
mov rcx, qword [rax]
call fcn.00417f00
test eax, eax
je 0x410047
add ebx, 1
add rbp, 8
mov eax, dword [r12 + 8]
cmp ebx, eax
jge 0x41020b
jmp 0x40ffe3
cmp ebx, 0xffffffff
je 0x41020b
test ebx, ebx
js 0x4101df
cmp ebx, dword [r12 + 8]
jge 0x4101df
movsxd rdi, ebx
mov rax, qword [r12]
mov rbp, qword [rax + rdi*8]
mov rcx, qword [rbp]
cmp dword [rcx - 0x10], 6
jle 0x4101a2
add rcx, 0xc
mov dx, 0x2c
call fcn.00417680
test rax, rax
je 0x4101a2
sub rax, qword [rbp]
sar rax, 1
test eax, eax
js 0x4101a2
cmp ebx, dword [r12 + 8]
jge 0x41018c
mov rcx, qword [r12]
lea r9d, [rax - 6]
mov r8d, 6
lea rdx, [rsp + 0x20]
mov rcx, qword [rcx + rdi*8]
call fcn.0040fcd0
nop
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x410121
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.CScriptMapsComponent::Install_Cannot_set_application_extensions_because_ExpandEnvironmentStringsW_failed._Error_code:__d
mov ecx, 1
call fcn.004139f0
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x41011a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x41021e
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.00418690
test eax, eax
jne 0x410152
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x41014b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov al, 1
jmp 0x41021e
mov r9, r13
lea r8, [rsp + 0x30]
lea rdx, str.CScriptMapsComponent::Install_Cannot_set_application_extensions_because_the_ISAPI_Filter_path__s_for_.aspx_does_not_match_the_expected_path__s.
mov ecx, 1
call fcn.004139f0
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x410185
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x41021e
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]
cmp ebx, dword [r12 + 8]
jge 0x4101c9
mov rax, qword [r12]
mov r8, qword [rax + rdi*8]
mov r8, qword [r8]
lea rdx, str.CScriptMapsComponent::Install_Cannot_set_application_extensions_because_the_ScriptMap__s_for_.aspx_is_invalid.
mov ecx, 1
call fcn.004139f0
xor al, al
jmp 0x41021e
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]
lea rdx, str.CScriptMapsComponent::Install_Cannot_set_application_extensions._Please_check_that_ASP.net_2.0_is_installed
mov ecx, 1
call fcn.004139f0
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.00417510
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret