Function at 0x40a5b0
Capabilities:
Delete directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4551bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x2c]
push 0x104
mov ebp, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [0x471df4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x23c], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xd64]
mov ebx, 1
test eax, eax
mov byte [esp + 0x23c], bl
je 0x40a647
lea ecx, [ebp + 0x5e0]
push str.SETUP_
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.0044a61d
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x240], 2
call fcn.0044a4c1
mov byte [esp + 0x23c], bl
lea ecx, [esp + 0x18]
jmp 0x40a7e1
mov eax, dword [ebp + 0x18]
push 0x46a404
cmp eax, 4
jne 0x40a71f
lea ecx, [esp + 0x14]
call fcn.0044a442
mov esi, eax
push str.OPTIONSINSTALL
lea ecx, [esp + 0x20]
mov byte [esp + 0x240], 3
call fcn.0044a442
mov edi, eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x24]
push eax
mov byte [esp + 0x240], 4
call fcn.0044a442
push edi
lea ecx, [esp + 0x2c]
push eax
push ecx
mov byte [esp + 0x248], 5
call fcn.0044a5b7
push esi
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x248], 6
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x240], 7
call fcn.0044a4c1
lea ecx, [esp + 0x18]
mov byte [esp + 0x23c], 6
call fcn.0044a3d4
lea ecx, [esp + 0x28]
mov byte [esp + 0x23c], 5
call fcn.0044a3d4
lea ecx, [esp + 0x24]
mov byte [esp + 0x23c], 4
call fcn.0044a3d4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x23c], 3
call fcn.0044a3d4
mov byte [esp + 0x23c], bl
lea ecx, [esp + 0x10]
jmp 0x40a7e1
lea ecx, [esp + 0x1c]
call fcn.0044a442
mov esi, eax
push str.OPTIONSCABS
lea ecx, [esp + 0x2c]
mov byte [esp + 0x240], 8
call fcn.0044a442
mov edi, eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x24]
push eax
mov byte [esp + 0x240], 9
call fcn.0044a442
push edi
lea ecx, [esp + 0x20]
push eax
push ecx
mov byte [esp + 0x248], 0xa
call fcn.0044a5b7
push esi
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x248], 0xb
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x240], 0xc
call fcn.0044a4c1
lea ecx, [esp + 0x10]
mov byte [esp + 0x23c], 0xb
call fcn.0044a3d4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x23c], 0xa
call fcn.0044a3d4
lea ecx, [esp + 0x24]
mov byte [esp + 0x23c], 9
call fcn.0044a3d4
lea ecx, [esp + 0x28]
mov byte [esp + 0x23c], 8
call fcn.0044a3d4
mov byte [esp + 0x23c], bl
lea ecx, [esp + 0x18]
call fcn.0044a3d4
mov eax, dword [esp + 0x244]
mov edi, dword [eax + 0xc]
mov esi, dword [eax + 4]
test edi, edi
jbe 0x40a840
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push ecx
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x240], 0xd
call fcn.0044a4c1
lea ecx, [esp + 0x10]
mov byte [esp + 0x23c], bl
call fcn.0044a3d4
mov edx, dword [esp + 0x14]
push edx
call fcn.0042cc40
add esp, 4
dec edi
jne 0x40a7f7
mov eax, dword [ebp + 0xd64]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x40a894
lea eax, [ebp + 0x5e0]
push str.SETUP
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0044a61d
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x240], 0xe
call fcn.0044a4c1
lea ecx, [esp + 0x10]
mov byte [esp + 0x23c], bl
call fcn.0044a3d4
mov edx, dword [esp + 0x14]
push edx
call esi
jmp 0x40a99c
lea eax, [esp + 0x130]
push 0x104
push eax
push str.CabsFlag
push str.SoftwareUIUCABSFLAG
push 0x80000002
call fcn.00430370
add esp, 0x14
test eax, eax
jne 0x40a99c
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x20]
call fcn.0044a442
push str.OPTIONSCABS
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x248], 0xf
call fcn.0044a61d
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x240], 0x10
call fcn.0044a4c1
lea ecx, [esp + 0x10]
mov byte [esp + 0x23c], 0xf
call fcn.0044a3d4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x23c], bl
call fcn.0044a3d4
mov eax, dword [esp + 0x14]
push eax
call esi
cmp eax, ebx
jne 0x40a986
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x20]
call fcn.0044a442
push str.OPTIONS
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x248], 0x11
call fcn.0044a61d
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x240], 0x12
call fcn.0044a4c1
lea ecx, [esp + 0x10]
mov byte [esp + 0x23c], 0x11
call fcn.0044a3d4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x23c], bl
call fcn.0044a3d4
mov eax, dword [esp + 0x14]
push eax
call esi
jmp 0x40a98a
test eax, eax
je 0x40a99c
push str.SoftwareUIUCABSFLAG
push 0x80000002
call fcn.00430ab0
add esp, 8
mov eax, dword [ebp + 0x5e0]
push eax
call esi
mov eax, dword [ebp + 0xd64]
test eax, eax
jne 0x40aa43
mov ecx, dword [esp + 0x250]
push 0
push ecx
push str.SourcePath
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push 0x80000002
call fcn.004301e0
mov esi, dword [esp + 0x268]
add esp, 0x14
lea ecx, [esp + 0x18]
push esi
call fcn.0044a442
push str.EMPTY
lea ecx, [esp + 0x1c]
mov byte [esp + 0x240], 0x13
call fcn.00449464
cmp eax, 0xffffffff
jne 0x40aa1c
push 0
push esi
push str.SearchLocation
push str.SoftwareMicrosoftWindowsCurrentVersionSysDM
push 0x80000002
call fcn.004301e0
add esp, 0x14
jmp 0x40aa33
push str.SearchLocation
push str.SoftwareMicrosoftWindowsCurrentVersionSysDM
push 0x80000002
call fcn.004304b0
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x23c], bl
call fcn.0044a3d4
mov eax, dword [ebp + 0xd70]
test eax, eax
je 0x40aa63
mov edx, dword [esp + 0x248]
mov ecx, ebp
push edx
call fcn.0040f4c0
mov ecx, ebp
call fcn.004077d0
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], 0
call fcn.0044a3d4
lea ecx, [esp + 0x20]
mov dword [esp + 0x23c], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret 0x14