Function at 0x408f10
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x59c
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x88]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x18], eax
mov edi, 1
mov dword [ebp - 0x14], eax
mov ecx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x88], 0x44
mov dword [ebp - 0x5c], edi
mov word [ebp - 0x58], di
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call fcn.0040c910
mov eax, dword [ebx + 0x2c0]
push 0x104
test eax, eax
je 0x409059
lea ecx, [ebp - 0x59c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [ebx + 0x200]
lea edx, [ebp - 0x18c]
push esi
push edx
mov ecx, ebx
call fcn.004095c0
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x408ff5
mov edi, 0x41c0d0
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x59c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x59c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.0040a360
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x3000001b
mov ecx, ebx
call fcn.0040aab0
push 0x21
push ebx
call fcn.0040bff0
add esp, 8
jmp 0x40947f
lea edx, [ebp - 0x18c]
push str.MSIEXEC
push edx
call fcn.004118a0
add esp, 8
test eax, eax
push esi
je 0x409035
lea eax, [ebp - 0x18c]
lea ecx, [ebp - 0x290]
push eax
push str._s__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 8], edi
add esp, 0x10
lea edi, [ebp - 0x59c]
jmp 0x409096
lea edx, [ebp - 0x18c]
lea eax, [ebp - 0x290]
push edx
push str.__s___s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edi, [ebp - 0x59c]
jmp 0x409096
lea ecx, [ebp - 0x18c]
lea edx, [ebx + 0xfc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebx + 0x200]
lea ecx, [ebp - 0x290]
push eax
lea eax, [ebp - 0x18c]
push eax
push str.__s___s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edi, [ebp - 0x18c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x394]
mov eax, ecx
mov esi, edi
mov edi, edx
push str..MSI
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x200]
push esi
call fcn.004118a0
add esp, 8
test eax, eax
je 0x409130
lea ecx, [ebp - 0x498]
push 0x104
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea edx, [ebp - 0x498]
lea eax, [ebp - 0x18c]
push edx
push eax
lea ecx, [ebp - 0x290]
push str._s_s_ALLUSERS1
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [ebp - 0x498]
push 0x3a
push edx
call fcn.00401310
add esp, 0x18
lea eax, [ebp - 0x394]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 8], 1
mov edx, dword [ebx]
push 0
lea eax, [ebp - 0x290]
push 0
push eax
push 0xdb
push 4
mov ecx, ebx
call dword [edx + 4]
lea ecx, [ebp - 0x394]
push 0x5c
push ecx
call fcn.00401450
add esp, 8
test eax, eax
je 0x409161
mov byte [eax], 0
lea edx, [ebp - 0x290]
push edx
push 0x14
push ebx
call fcn.0040bff0
add esp, 0xc
mov ecx, ebx
call fcn.0040c220
mov ecx, ebx
call fcn.00409be0
mov eax, dword [ebx]
push 0
push 0
push str.Run_as_normal
push 0xcf
push 4
mov ecx, ebx
call dword [eax + 4]
push 0
call fcn.00408190
add esp, 4
cmp eax, 6
jb 0x4091ef
push 0
mov ecx, ebx
call fcn.0040c4f0
test eax, eax
jne 0x4091bd
push 1
mov ecx, ebx
call fcn.0040c4f0
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x394]
push edx
push ecx
push 0
push 0x4000000
push 0
push 0
lea edx, [ebp - 0x290]
push 0
push edx
push 0
push eax
mov ecx, ebx
call fcn.0040c590
jmp 0x40921d
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x88]
push eax
lea edx, [ebp - 0x394]
push ecx
push edx
push 0
push 0x4000000
push 0
push 0
lea eax, [ebp - 0x290]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x409270
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, ebx
push esi
push 0x3000000a
call fcn.0040aab0
lea ecx, [ebp - 0x290]
push esi
push ecx
push 0x1e
push ebx
call fcn.0040bff0
add esp, 0x10
mov edi, dword [ebx]
lea edx, [ebp - 0x44]
push 0
push 0
push 0xa
push edx
push esi
call fcn.004116f8
add esp, 0xc
mov ecx, ebx
push eax
push 0xdd
push 4
call dword [edi + 4]
jmp 0x40947f
xor edi, edi
mov ecx, ebx
push edi
push 0x20000001
xor esi, esi
call fcn.0040aab0
mov eax, dword [ebp - 0x18]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4092f1
push 0
push 0
lea ecx, [ebp - 0x38]
push 0
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
mov eax, dword [0x420eec]
test eax, eax
je 0x4092b9
lea edx, [ebp - 0x38]
push edx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x4092cd
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x38]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
inc esi
cmp esi, 0x258
jle 0x409281
inc edi
cmp edi, 0xa
jg 0x409451
push edi
push 0x20000001
mov ecx, ebx
call fcn.0040aab0
xor esi, esi
jmp 0x409281
mov edx, dword [ebx]
xor edi, edi
push edi
push edi
push edi
push 0xde
push 4
mov ecx, ebx
call dword [edx + 4]
push edi
mov ecx, ebx
call fcn.00406cf0
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 4]
push eax
push ecx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x14]
push eax
call esi
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x40936a
cmp eax, 0xbc2
je 0x40935b
push eax
push 0x5a
push ebx
call fcn.0040bff0
mov ecx, dword [ebp - 4]
add esp, 0xc
push ecx
push 0x3000000a
mov ecx, ebx
call fcn.0040aab0
jmp 0x409375
push 0x15
push ebx
call fcn.0040bff0
add esp, 8
push 0x5b
jmp 0x40936c
push 0x15
push ebx
call fcn.0040bff0
add esp, 8
cmp dword [ebp - 8], edi
je 0x4093cf
cmp dword [ebx + 0x2c0], edi
jne 0x4093cf
lea edx, [ebp - 0x498]
push 0x22
push edx
call fcn.00401450
mov byte [eax], 0
lea eax, [ebp - 0x498]
push 0x22
push eax
call fcn.00401310
mov byte [eax], 0
lea edi, [eax + 1]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
lea edx, [ebp - 0x18c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
lea ecx, [ebp - 0x18c]
push 0x5c
push ecx
call fcn.00401450
add esp, 8
cmp eax, edi
je 0x40940c
lea edx, [ebp - 0x18c]
mov ecx, ebx
push edx
mov byte [eax + 1], 0
call fcn.0040a360
cmp dword [ebx + 0x2c0], edi
jne 0x40940c
lea eax, [ebp - 0x18c]
mov ecx, ebx
push eax
call fcn.0040a210
mov eax, dword [0x420eec]
cmp eax, edi
je 0x409437
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x420eec], edi
mov ecx, dword [ebx + 0x2c4]
push ecx
call fcn.0040f9ad
add esp, 4
mov dword [ebx + 0x2c4], edi
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x409445
cmp eax, 0xbc2
jne 0x40948d
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x18]
push 0xffffffffffffffff
push edx
call fcn.0040f060
add esp, 8
mov ecx, ebx
push 0xa
push 0x30000014
call fcn.0040aab0
lea eax, [ebp - 0x18c]
push eax
push 0x16
push ebx
call fcn.0040bff0
add esp, 0xc
mov ecx, ebx
call fcn.00409fa0
mov ecx, ebx
call fcn.00405c60
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret