Function at 0x4074f0
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41023c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x628
mov eax, dword [0x415070]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x624], eax
mov eax, dword [0x4170b8]
test eax, eax
push esi
push edi
mov dword [esp + 0x10], 0
je 0x407544
mov al, byte [0x416b68]
test al, al
mov byte [esp + 0xf], 1
jne 0x407549
mov byte [esp + 0xf], 0
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x2b0]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x2b0]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x407580
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x407b6d
push 0x415720
lea ecx, [esp + 0x1ac]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
call fcn.004047d0
test eax, eax
jne 0x4075cf
push 0x416548
lea edx, [esp + 0x1ac]
push edx
push str..msi
call fcn.00406ad0
add esp, 0xc
test eax, eax
jne 0x4075cf
push 0x10
push eax
call fcn.00402d30
add esp, 8
mov eax, 0x800401f5
jmp 0x407b6d
call fcn.00405b70
test eax, eax
mov dword [esp + 0x10], eax
jne 0x407b6d
mov eax, dword [0x417088]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
jne 0x40774c
mov eax, dword [0x4170c4]
test eax, eax
mov byte [esp + 0x95], 0
je 0x407611
mov byte [esp + 0x94], 0x41
jmp 0x4076bb
mov eax, dword [0x417070]
test eax, eax
jne 0x407698
mov ecx, dword [0x417074]
test ecx, ecx
jne 0x407698
mov eax, dword [0x4170c8]
test eax, eax
je 0x40763a
mov byte [esp + 0x94], 0x58
jmp 0x4076bb
mov eax, dword [0x417080]
test eax, eax
je 0x40765a
lea eax, [esp + 0x3b8]
push eax
mov byte [esp + 0x98], 0x70
push 0x4129d0
jmp 0x407678
mov eax, dword [0x417084]
test eax, eax
mov byte [esp + 0x94], 0x49
je 0x4076bb
lea eax, [esp + 0x3b8]
push eax
push str._UPGRADESP
push ebx
call fcn.00404830
mov edx, dword [ebx]
lea ecx, [esp + 0x3c4]
push ecx
push 0x411500
push edx
call fcn.00408f9f
add esp, 0x18
jmp 0x4076bb
test eax, eax
setne al
mov byte [esp + 0x94], 0x4a
mov byte [esp + 0x96], 0
lea eax, [eax*8 + 0x4d]
mov byte [esp + 0x95], al
push 0x416548
call fcn.00405fe0
push 0x416040
call fcn.00406860
mov esi, eax
mov al, byte [esp + 0x9c]
add esp, 8
cmp al, 0x70
je 0x407717
push 0x416548
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0xa8]
push str.___s__s
push edx
call edi
add esp, 0x10
test esi, esi
je 0x40773b
mov eax, dword [0x417084]
test eax, eax
je 0x40773b
mov dword [0x41708c], 1
jmp 0x40773b
push str.REINSTALLALL_REINSTALLMODEomus
push 0x416548
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0xac]
push str.___s__s__s
push ecx
call edi
add esp, 0x14
lea edx, [esp + 0xa0]
push edx
push ebx
call fcn.00403350
add esp, 8
mov eax, dword [0x41708c]
test eax, eax
je 0x40779f
mov eax, dword [0x417094]
test eax, eax
jne 0x40777e
mov eax, dword [0x41709c]
test eax, eax
jne 0x40777e
mov eax, dword [0x417098]
test eax, eax
jne 0x40777e
push str.__qf
push ebx
call fcn.00403350
add esp, 8
push str.REINSTALLALL
call fcn.00404250
push str.REINSTALLMODEvomus
call fcn.00404250
push str.UPGRADEWITHRECACHETRUE
call fcn.00404250
add esp, 0xc
mov eax, dword [0x4170c0]
test eax, eax
je 0x4077b1
push ebx
call fcn.00407060
add esp, 4
mov eax, dword [0x4170c4]
test eax, eax
je 0x4077c7
push str.SHORTFILENAMESYES
call fcn.00404250
add esp, 4
mov eax, dword [0x4170b8]
test eax, eax
jne 0x407834
mov al, byte [0x416c70]
test al, al
je 0x407834
mov al, byte [0x416b68]
test al, al
je 0x407834
push 0x416b68
lea eax, [esp + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0xa0]
push ecx
call fcn.00405fe0
lea edx, [esp + 0xa4]
push edx
push 0x416c70
lea eax, [esp + 0x4cc]
push str.__L_s__s
push eax
call edi
lea ecx, [esp + 0x4d4]
push ecx
push ebx
call fcn.00403350
add esp, 0x1c
mov byte [esp + 0xf], 1
push 0x104
lea edx, [esp + 0x1ac]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.msiexec.exe
lea eax, [esp + 0x1ac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [0x4170b4]
test eax, eax
je 0x40788f
call fcn.004044c0
test eax, eax
jne 0x407876
mov eax, 0xa
jmp 0x407b6d
push 0x412790
push ebx
call fcn.00403350
push 0x416148
push ebx
call fcn.00403350
add esp, 0x10
push 0
call fcn.004031b0
add esp, 4
test eax, eax
je 0x407b68
push str.InstallFont
call fcn.00406dd0
push str.InstallFontBold
call fcn.00406dd0
mov edx, dword [ebx]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
add esp, 8
mov dword [esp + 0x20], ecx
push edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x4c], 0x44
call esi
mov edi, eax
lea eax, [esp + 0x1a8]
push eax
call esi
lea eax, [edi + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x40793b
lea ecx, [esp + 0x1a8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x412790
push esi
call edi
mov edx, dword [ebx]
push edx
push esi
call edi
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebx], esi
xor edi, edi
mov dword [esp + 0x28], 0x4114d8
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov al, byte [esp + 0xf]
test al, al
mov dword [esp + 0x63c], edi
jne 0x40799b
push str.MSI.LOG
lea ecx, [esp + 0x2b4]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00402140
add esp, 0xc
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x640], 1
call fcn.00407480
lea ecx, [esp + 0x38]
mov byte [esp + 0x63c], 0
call fcn.00401e50
mov edx, dword [ebx]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x4c]
push ecx
push edi
push edi
push 0x20
push 1
push edi
push edi
push edx
lea eax, [esp + 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4079f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x1a8]
push ecx
push eax
push 0xb
mov dword [esp + 0x1c], eax
call fcn.00404680
add esp, 0xc
lea ecx, [esp + 0x28]
call fcn.00401e50
mov eax, dword [esp + 0x10]
jmp 0x407b6d
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x18]
push eax
call esi
mov al, byte [esp + 0xf]
test al, al
je 0x407abf
mov dword [esp + 0x14], edi
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0xa0]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xa4]
push edx
push 0x105
push 0x416b68
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x407a9e
cmp eax, 0x105
ja 0x407a9e
mov eax, dword [esp + 0x14]
test eax, eax
je 0x407a9e
mov byte [eax - 1], 0
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0xa4]
push ecx
call fcn.00401bc0
add esp, 8
lea ecx, [esp + 0x28]
call fcn.00401e50
mov eax, dword [esp + 0x10]
jmp 0x407b6d
push 0x416b68
push 0
call fcn.00401bc0
add esp, 8
lea ecx, [esp + 0x28]
call fcn.00401e50
mov eax, dword [esp + 0x10]
jmp 0x407b6d
lea edx, [esp + 0x28]
push edx
push str.MSI.LOG
lea eax, [esp + 0x2b8]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.004021e0
add esp, 0x10
lea edx, [esp + 0x38]
mov dword [esp + 0x94], 0x4114ac
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], edi
lea ecx, [esp + 0x94]
mov byte [esp + 0x63c], 3
call fcn.00401680
mov eax, dword [esp + 0x9c]
cmp eax, edi
je 0x407b50
lea ebx, [ebx]
mov esi, dword [eax]
lea eax, [esp + 0x2b0]
push esi
push eax
call fcn.00401bc0
push esi
call fcn.004094b2
add esp, 0xc
lea ecx, [esp + 0x94]
call fcn.00401ea0
mov eax, dword [esp + 0x9c]
cmp eax, edi
jne 0x407b20
lea ecx, [esp + 0x38]
call fcn.00401e50
lea ecx, [esp + 0x28]
call fcn.00401e50
mov eax, dword [esp + 0x10]
jmp 0x407b6d
mov eax, 0x15
mov ecx, dword [esp + 0x634]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x62c]
call fcn.0040851d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret