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

Disassembly:
push 0xffffffffffffffff
push 0x40f71c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60c
mov eax, dword [0x416830]
mov dword [esp + 0x14], 0
test eax, eax
je 0x4060aa
mov al, byte [0x4162e4]
mov byte [esp + 3], 1
test al, al
jne 0x4060af
mov byte [esp + 3], 0
push ebx
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x2a8]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x2a8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
mov dword [esp + 0x24], eax
jne 0x4060ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4068ba
lea ecx, [esp + 0x1a4]
push 0x4151c0
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x4167f4]
test eax, eax
jne 0x406133
mov eax, dword [0x41683c]
test eax, eax
jne 0x406133
mov eax, dword [0x4167e8]
test eax, eax
jne 0x406133
mov eax, dword [0x4167ec]
test eax, eax
jne 0x406133
mov eax, dword [0x416800]
test eax, eax
jne 0x406133
mov eax, dword [0x416840]
test eax, eax
je 0x406142
push 0x415bc8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jg 0x406175
lea edx, [esp + 0x1a4]
push 0x415bc8
push edx
push str..msi
call fcn.00404f70
add esp, 0xc
test eax, eax
jne 0x406175
push 0x10
push eax
call fcn.00403f30
add esp, 8
mov eax, 0x800401f5
jmp 0x4068ba
call fcn.00407ef0
test eax, eax
mov dword [esp + 0x24], eax
jne 0x4068ba
mov eax, dword [0x416800]
mov edi, dword [esp + 0x630]
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
test eax, eax
jne 0x4062d2
mov eax, dword [0x41683c]
mov byte [esp + 0x39], 0
test eax, eax
mov bl, 0x70
je 0x4061ba
mov byte [esp + 0x38], 0x41
jmp 0x40624a
mov eax, dword [0x4167e8]
test eax, eax
jne 0x406234
mov ecx, dword [0x4167ec]
test ecx, ecx
jne 0x406234
mov eax, dword [0x416840]
test eax, eax
je 0x4061dd
mov byte [esp + 0x38], 0x58
jmp 0x40624a
mov eax, dword [0x4167f8]
test eax, eax
je 0x4061f9
lea eax, [esp + 0x3b0]
mov byte [esp + 0x38], bl
push eax
push 0x412490
jmp 0x406214
mov eax, dword [0x4167fc]
mov byte [esp + 0x38], 0x49
test eax, eax
je 0x40624a
lea eax, [esp + 0x3b0]
push eax
push str._UPGRADESP
push edi
call fcn.00405f50
mov edx, dword [edi]
lea ecx, [esp + 0x3bc]
push ecx
push 0x4120dc
push edx
call fcn.004085b0
add esp, 0x18
jmp 0x40624a
neg eax
sbb al, al
mov byte [esp + 0x38], 0x4a
and al, 8
mov byte [esp + 0x3a], 0
add al, 0x4d
mov byte [esp + 0x39], al
push 0x415bc8
call fcn.004032b0
push 0x415ccc
call fcn.00404ae0
mov esi, eax
mov al, byte [esp + 0x40]
add esp, 8
cmp al, bl
je 0x4062a0
lea eax, [esp + 0x38]
push 0x415bc8
push eax
lea ecx, [esp + 0xa4]
push str.___s__s
push ecx
call ebp
add esp, 0x10
test esi, esi
je 0x4062c1
mov eax, dword [0x4167fc]
test eax, eax
je 0x4062c1
mov dword [0x416804], 1
jmp 0x4062c1
push str.REINSTALLALL_REINSTALLMODEomus
lea edx, [esp + 0x3c]
push 0x415bc8
push edx
lea eax, [esp + 0xa8]
push str.___s__s__s
push eax
call ebp
add esp, 0x14
lea ecx, [esp + 0x9c]
push ecx
push edi
call fcn.00404500
add esp, 8
mov eax, dword [0x416804]
test eax, eax
je 0x406325
mov eax, dword [0x41680c]
test eax, eax
jne 0x406304
mov eax, dword [0x416814]
test eax, eax
jne 0x406304
mov eax, dword [0x416810]
test eax, eax
jne 0x406304
push str.__qf
push edi
call fcn.00404500
add esp, 8
push str.REINSTALLALL
call fcn.00405a60
push str.REINSTALLMODEvomus
call fcn.00405a60
push str.UPGRADEWITHRECACHETRUE
call fcn.00405a60
add esp, 0xc
mov eax, dword [0x416838]
test eax, eax
je 0x406337
push edi
call fcn.00406fa0
add esp, 4
mov eax, dword [0x41683c]
test eax, eax
je 0x40634d
push str.SHORTFILENAMESYES
call fcn.00405a60
add esp, 4
mov eax, dword [0x416830]
test eax, eax
jne 0x4063ba
mov al, byte [0x4163e8]
test al, al
je 0x4063ba
mov al, byte [0x4162e4]
test al, al
je 0x4063ba
lea edx, [esp + 0x9c]
push 0x4162e4
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x9c]
push eax
call fcn.004032b0
lea ecx, [esp + 0xa0]
lea edx, [esp + 0x4b8]
push ecx
push 0x4163e8
push str.__L_s__s
push edx
call ebp
lea eax, [esp + 0x4c8]
push eax
push edi
call fcn.00404500
add esp, 0x1c
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x1a4]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x1a4]
push str.msiexec.exe
push edx
call ebp
mov eax, dword [0x41682c]
xor ebx, ebx
cmp eax, ebx
je 0x406420
call fcn.00405cb0
test eax, eax
jne 0x406400
mov eax, 0xa
jmp 0x4068ba
mov esi, dword [esp + 0x630]
push 0x412438
push esi
call fcn.00404500
push 0x4157c8
push esi
call fcn.00404500
add esp, 0x10
push ebx
call fcn.00404420
add esp, 4
test eax, eax
je 0x4068d3
push str.InstallFont
call fcn.00405790
push str.InstallFontBold
call fcn.00405790
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x638]
mov dword [esp + 0x50], eax
add esp, 8
mov dword [esp + 0x4c], eax
mov edx, dword [ecx]
mov dword [esp + 0x50], eax
push edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 0x44
call esi
mov edi, eax
lea eax, [esp + 0x1a4]
push eax
call esi
lea eax, [edi + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x4064cf
lea ecx, [esp + 0x1a4]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x412438
push esi
call ebp
mov edi, dword [esp + 0x630]
mov edx, dword [edi]
push edx
push esi
call ebp
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [edi], esi
jmp 0x4064d6
mov edi, dword [esp + 0x630]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], 0x4102ac
mov al, byte [esp + 0x13]
mov dword [esp + 0x624], ebx
test al, al
jne 0x4065fc
lea ecx, [esp + 0x2a8]
push 0x41243c
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.004018c0
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x624], 1
cmp eax, ebx
je 0x40655a
mov edx, dword [esp + 0x30]
mov ecx, eax
mov eax, dword [eax + 4]
cmp ecx, edx
mov dword [esp + 0x2c], eax
jne 0x40653e
mov dword [esp + 0x30], ebx
mov edi, dword [esp + 0x34]
dec edi
cmp ecx, ebx
mov dword [esp + 0x34], edi
je 0x406556
push 1
call fcn.00408480
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jne 0x406529
mov dword [esp + 0x34], ebx
mov esi, dword [esi + 4]
cmp esi, ebx
je 0x4065aa
mov edi, dword [esi]
push 8
call fcn.00408a4a
add esp, 4
cmp eax, ebx
je 0x40657c
mov dword [eax], edi
mov dword [eax + 4], ebx
jmp 0x40657e
xor eax, eax
cmp dword [esp + 0x2c], ebx
jne 0x406588
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
je 0x406596
mov dword [ecx + 4], eax
mov dword [eax + 4], ebx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x30], eax
inc ecx
mov dword [esp + 0x34], ecx
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x406565
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x624], 0
cmp ecx, ebx
mov dword [esp + 0x14], 0x4102ac
je 0x4065f5
mov edx, dword [esp + 0x1c]
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp eax, edx
mov dword [esp + 0x18], ecx
jne 0x4065d7
mov dword [esp + 0x1c], ebx
mov esi, dword [esp + 0x20]
dec esi
cmp eax, ebx
mov dword [esp + 0x20], esi
je 0x4065f1
push eax
call fcn.00408a3f
mov ecx, dword [esp + 0x1c]
add esp, 4
cmp ecx, ebx
jne 0x4065c2
mov edi, dword [esp + 0x630]
lea eax, [esp + 0x48]
mov edx, dword [edi]
lea ecx, [esp + 0x58]
push eax
push ecx
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
lea eax, [esp + 0x1c4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x406643
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x1a4]
mov dword [esp + 0x24], eax
push ecx
push eax
call fcn.00405f30
add esp, 8
jmp 0x406868
mov edx, dword [esp + 0x4c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x48]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x48]
push eax
call esi
mov al, byte [esp + 0x13]
test al, al
je 0x4066f2
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x9c]
lea edx, [esp + 0x9c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], ebx
push ecx
push edx
push 0x105
push 0x4162e4
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
cmp eax, ebx
je 0x4066df
cmp eax, 0x105
ja 0x4066df
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x4066df
mov byte [eax - 1], 0
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x9c]
push eax
push ecx
call fcn.00401080
add esp, 8
jmp 0x406868
push 0x4162e4
push ebx
call fcn.00401080
add esp, 8
jmp 0x406868
lea edx, [esp + 0x28]
lea eax, [esp + 0x2a8]
push edx
push 0x41243c
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00401aa0
add esp, 0x10
lea edx, [esp + 0x14]
mov dword [esp + 0x38], 0x4102cc
mov dword [esp + 0x3c], edx
lea eax, [esp + 0x14]
mov byte [esp + 0x624], 3
test eax, eax
mov dword [esp + 0x40], ebx
je 0x406819
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
call dword [edx + 4]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x40], esi
je 0x406819
mov edi, dword [esi]
lea eax, [esp + 0x2a8]
push edi
push eax
call fcn.00401080
push edi
call fcn.00408a3f
mov edx, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x14]
mov ebp, esi
call dword [edx + 4]
cmp esi, eax
jne 0x4067c6
mov eax, dword [esi + 4]
lea edi, [esi + 4]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
call dword [eax + 0xc]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
call dword [edx + 4]
test eax, eax
jne 0x4067b1
mov eax, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x18]
call dword [eax + 0x10]
xor esi, esi
mov dword [esp + 0x40], esi
jmp 0x4067f9
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
call dword [edx + 4]
mov esi, eax
mov dword [edi], ebx
mov dword [esp + 0x40], esi
jmp 0x4067f9
mov eax, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x18]
call dword [eax + 0x14]
mov esi, dword [esi + 4]
mov edi, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], esi
mov dword [edi + 4], esi
mov edx, dword [esp + 0x14]
call dword [edx + 8]
cmp ebp, eax
jne 0x4067f9
mov eax, dword [esp + 0x14]
push edi
lea ecx, [esp + 0x18]
call dword [eax + 0x10]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
call dword [edx + 0x1c]
cmp ebp, ebx
je 0x406811
push ebp
call fcn.00408a3f
add esp, 4
cmp esi, ebx
jne 0x406752
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x624], 0
cmp ecx, ebx
mov dword [esp + 0x14], 0x4102ac
je 0x406864
mov edx, dword [esp + 0x1c]
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp eax, edx
mov dword [esp + 0x18], ecx
jne 0x406846
mov dword [esp + 0x1c], ebx
mov esi, dword [esp + 0x20]
dec esi
cmp eax, ebx
mov dword [esp + 0x20], esi
je 0x406860
push eax
call fcn.00408a3f
mov ecx, dword [esp + 0x1c]
add esp, 4
cmp ecx, ebx
jne 0x406831
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x624], 0xffffffff
cmp ecx, ebx
mov dword [esp + 0x28], 0x4102ac
je 0x4068b6
mov edx, dword [esp + 0x30]
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp eax, edx
mov dword [esp + 0x2c], ecx
jne 0x406898
mov dword [esp + 0x30], ebx
mov esi, dword [esp + 0x34]
dec esi
cmp eax, ebx
mov dword [esp + 0x34], esi
je 0x4068b2
push eax
call fcn.00408a3f
mov ecx, dword [esp + 0x30]
add esp, 4
cmp ecx, ebx
jne 0x406883
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x61c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x618
ret
mov eax, 0x15
jmp 0x4068ba