Function at 0x401225
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x864
mov eax, dword [0x461008]
xor eax, esp
mov dword [esp + 0x860], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], esi
call fcn.0040257f
call fcn.00404acf
xor eax, eax
xor ebx, ebx
push 0x206
mov word [esp + 0x4c], ax
lea eax, [esp + 0x4e]
push ebx
push eax
call fcn.0042edc0
add esp, 0xc
lea eax, [esp + 0x48]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4012e2
xor eax, eax
push 0x206
mov word [esp + 0x664], ax
lea eax, [esp + 0x666]
push ebx
push eax
call fcn.0042edc0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.12au_x
lea eax, [esp + 0x668]
push 0x104
push eax
call fcn.0042d0c2
lea eax, [esp + 0x670]
push eax
lea eax, [esp + 0x5c]
push 0x104
push eax
call fcn.0042d724
add esp, 0x1c
push ecx
push ecx
push esi
push ecx
push ecx
call fcn.00402624
add esp, 0x14
xor eax, eax
mov word [esp + 0x458], ax
lea eax, [esp + 0x45a]
push 0x206
push ebx
push eax
call fcn.0042edc0
add esp, 0xc
lea eax, [esp + 0x458]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x458]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x458]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401c13
mov ebx, str._setupdata
push ebx
call fcn.00401bec
pop ecx
push eax
push ebx
lea ecx, [esp + 0x20]
call fcn.00401649
and dword [esp + 0x10], 0
lea edx, [esp + 0x10]
mov ecx, edi
call fcn.00404f17
test eax, eax
je 0x4013dd
cmp dword [eax + 4], 0x696e696d
jne 0x4013dd
lea esi, [eax + 8]
mov bl, 1
lea edi, [esp + 0x30]
movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x30]
lea ecx, [esp + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00401571
test al, al
jne 0x4013b8
push ecx
push ecx
push dword [esp + 0x14]
push ecx
push 1
push 2
pop edx
push 0x66
pop ecx
call fcn.004026b8
add esp, 0x14
call fcn.004027e0
or esi, 0xffffffff
jmp 0x40154b
sub esp, 0x18
lea eax, [esp + 0x30]
mov ecx, esp
push eax
call fcn.00401605
lea ecx, [esp + 0x60]
call fcn.00404e72
mov esi, dword [esp + 0x24]
add esp, 0x18
mov edi, dword [esp + 0x14]
jmp 0x401400
and dword [esp + 0xc], 0
lea edx, [esp + 0xc]
mov ecx, edi
xor bl, bl
call fcn.00404f17
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x48]
push ecx
mov ecx, eax
call fcn.00404ed4
pop ecx
test eax, eax
jne 0x401448
call fcn.004011b0
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
call fcn.00401c13
lea ecx, [esp + 0x30]
call fcn.0040531b
push 0
push 1
lea ecx, [esp + 0x38]
call fcn.00401aa3
push ecx
push ecx
push esi
push ecx
movzx eax, bl
push eax
push 3
pop edx
push 0x67
pop ecx
call fcn.004026b8
add esp, 0x14
jmp 0x401544
push 0x204
lea eax, [esp + 0x258]
mov dword [esp + 0x254], 0x30
push 0
push eax
call fcn.0042edc0
add esp, 0xc
lea eax, [esp + 0x48]
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x258]
push 0x104
push eax
call fcn.0042cfe5
push 0x4528fc
lea eax, [esp + 0x264]
push 0x104
push eax
call fcn.0042d724
add esp, 0x1c
lea eax, [esp + 0x250]
push str.QBInstaller.dll
push 0x104
push eax
call fcn.0042d724
add esp, 0xc
lea eax, [esp + 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x401505
push str.InstallerModuleEntry
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
movzx eax, bl
test edx, edx
je 0x4014fc
cmp dword [esp + 0x2c], 8
lea ecx, [esp + 0x18]
cmovae ecx, dword [esp + 0x18]
push ecx
push eax
push esi
lea eax, [esp + 0x54]
push eax
push edi
call edx
add esp, 0x14
jmp 0x401520
push ecx
push ecx
push esi
push ecx
push eax
push 4
jmp 0x40150f
push ecx
push ecx
push esi
push ecx
movzx eax, bl
push eax
push 5
pop edx
push 0x68
pop ecx
call fcn.004026b8
add esp, 0x14
call fcn.004011b0
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
call fcn.00401c13
lea ecx, [esp + 0x30]
call fcn.0040531b
push 0
push 1
lea ecx, [esp + 0x38]
call fcn.00401aa3
call fcn.004027e0
xor esi, esi
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.00401aa3
mov ecx, dword [esp + 0x86c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042cfd6
mov esp, ebp
pop ebp
ret 0x10