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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x864
mov eax, dword [0x420008]
xor eax, esp
mov dword [esp + 0x860], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0x206
push eax
mov word [esp + 0x50], ax
lea eax, [esp + 0x52]
push eax
mov dword [esp + 0x20], edi
call fcn.00407b90
add esp, 0xc
lea eax, [esp + 0x48]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40115b
xor eax, eax
push 0x206
push eax
mov word [esp + 0x668], ax
lea eax, [esp + 0x66a]
push eax
call fcn.00407b90
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.12au_x
lea eax, [esp + 0x668]
push esi
push eax
call fcn.00406735
lea eax, [esp + 0x670]
push eax
lea eax, [esp + 0x5c]
push esi
push eax
call fcn.00406da4
add esp, 0x1c
xor eax, eax
push 0x206
push eax
mov word [esp + 0x460], ax
lea eax, [esp + 0x462]
push eax
call fcn.00407b90
add esp, 0xc
lea eax, [esp + 0x458]
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x458]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
and dword [esp + 0x40], 0
lea ecx, [esp + 0x30]
xor eax, eax
mov dword [esp + 0x44], 7
mov word [esp + 0x30], ax
lea eax, [esp + 0x458]
push eax
call fcn.0040192b
mov esi, str._setupdata
mov ecx, esi
call fcn.0040190b
push eax
push esi
lea ecx, [esp + 0x38]
call fcn.00401488
and dword [esp + 0x10], 0
lea edx, [esp + 0x10]
mov ecx, ebx
call fcn.004039a5
cmp dword [eax + 4], 0x696e696d
jne 0x401239
lea esi, [eax + 8]
mov byte [esp + 0xf], 1
lea edi, [esp + 0x18]
movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x18]
lea ecx, [esp + 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004013a0
test al, al
jne 0x401218
or esi, 0xffffffff
jmp 0x40137a
sub esp, 0x18
lea eax, [esp + 0x48]
mov ecx, esp
push eax
call fcn.00401444
lea ecx, [esp + 0x60]
call fcn.00403900
mov edi, dword [esp + 0x2c]
add esp, 0x18
jmp 0x40125f
and dword [esp + 0x10], 0
lea edx, [esp + 0x10]
mov ecx, ebx
mov byte [esp + 0xf], 0
call fcn.004039a5
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x48]
push ecx
mov ecx, eax
call fcn.00403962
pop ecx
test eax, eax
je 0x401326
push 0x204
lea eax, [esp + 0x258]
mov dword [esp + 0x254], 0x30
push 0
push eax
call fcn.00407b90
add esp, 0xc
lea eax, [esp + 0x48]
mov esi, 0x104
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x258]
push esi
push eax
call fcn.00406677
push 0x41c6d0
lea eax, [esp + 0x264]
push esi
push eax
call fcn.00406da4
add esp, 0x1c
lea eax, [esp + 0x250]
push str.QBInstaller.dll
push esi
push eax
call fcn.00406da4
add esp, 0xc
lea eax, [esp + 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x401326
push str.InstallerModuleEntry
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
test edx, edx
je 0x401318
cmp dword [esp + 0x44], 8
lea ecx, [esp + 0x30]
movzx eax, byte [esp + 0xf]
cmovae ecx, dword [esp + 0x30]
push ecx
push eax
push edi
lea eax, [esp + 0x54]
push eax
push ebx
call edx
add esp, 0x14
jmp 0x40131d
call fcn.00401040
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40132b
call fcn.00401040
and dword [esp + 0x28], 0
lea ecx, [esp + 0x18]
xor eax, eax
mov dword [esp + 0x2c], 7
mov word [esp + 0x18], ax
lea eax, [esp + 0x48]
push eax
call fcn.0040192b
lea ecx, [esp + 0x18]
call fcn.004020de
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.0040185f
xor esi, esi
push 0
push 1
lea ecx, [esp + 0x38]
call fcn.0040185f
mov ecx, dword [esp + 0x86c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406668
mov esp, ebp
pop ebp
ret 0x10