Function at 0x40d450
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4269e1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
mov eax, dword [0x42f4cc]
xor eax, ebp
mov dword [esp + 0x148], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [esp + 0x2c], eax
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x30], ebx
xor eax, eax
mov byte [esp + 0x48], bl
mov ecx, 0x40
lea edi, [esp + 0x49]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x104
lea ecx, [esp + 0x48]
call fcn.00407b80
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x28]
call fcn.0040d3a0
push 0x1f
push str.BackupRSDRSSetupRSSetup.xml
lea ecx, [esp + 0x2c]
mov dword [esp + 0x16c], ebx
call fcn.004095b0
mov edx, dword [0x430588]
mov ecx, 0x430588
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x450]
cmp eax, ebx
mov byte [esp + 0x164], 1
je 0x40d707
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [esp + 0x24]
mov byte [esp + 0x164], 2
call fcn.00408e80
mov ecx, dword [esi + 0x450]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x28]
push eax
sub esp, 0x10
mov word [esp + 0x4c], 8
mov edi, dword [esp + 0x4c]
mov edx, dword [ecx]
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x50]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x54]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x58]
push ecx
mov dword [eax + 0xc], edi
call dword [edx + 0xe8]
test eax, eax
jne 0x40d6f4
cmp word [esp + 0x28], 0xffff
jne 0x40d6f4
mov dword [esp + 0x20], ebx
push str.COMPONENT
lea ecx, [esp + 0x18]
mov byte [esp + 0x168], 3
call fcn.00408010
mov eax, dword [eax]
mov esi, dword [esi + 0x450]
mov ecx, dword [esi]
lea edx, [esp + 0x20]
push edx
push eax
push esi
mov byte [esp + 0x170], 4
mov dword [esp + 0x3c], 1
call dword [ecx + 0x94]
test eax, eax
jne 0x40d5c2
cmp dword [esp + 0x20], ebx
mov byte [esp + 0x13], 1
jne 0x40d5c6
mov byte [esp + 0x13], bl
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push eax
mov dword [esp + 0x168], 3
call esi
cmp byte [esp + 0x13], bl
je 0x40d6de
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x16c], 5
call dword [ecx + 0x44]
test eax, eax
jne 0x40d6c8
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40d6cc
mov dword [esp + 0x1c], ebx
push str.VERSION
lea ecx, [esp + 0x18]
mov byte [esp + 0x168], 6
call fcn.00408010
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
lea edi, [esp + 0x1c]
push edi
push eax
push ecx
mov byte [esp + 0x170], 7
mov dword [esp + 0x3c], 2
call dword [edx + 0x1c]
test eax, eax
jne 0x40d662
cmp dword [esp + 0x1c], ebx
mov byte [esp + 0x13], 1
jne 0x40d666
mov byte [esp + 0x13], bl
mov eax, dword [esp + 0x14]
push eax
mov dword [esp + 0x168], 6
call esi
cmp byte [esp + 0x13], bl
je 0x40d6b2
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
mov byte [esp + 0x16c], 8
call dword [ecx + 0x68]
test eax, eax
jne 0x40d6ab
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
call fcn.0040a970
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov byte [esp + 0x164], 5
je 0x40d6c8
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov byte [esp + 0x164], 3
je 0x40d6de
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov byte [esp + 0x164], 2
je 0x40d6f4
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x168], 1
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov esi, dword [esp + 0x2c]
add esi, 0xfffffff0
push esi
call fcn.00408610
mov edi, dword [esp + 0x38]
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [esp + 0x164], bl
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d73e
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x164], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d767
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x15c]
mov eax, edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x154]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004199fa
mov esp, ebp
pop ebp
ret 4