Function at 0x408090
Capabilities:
Check if file exists
Create process on windows
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x544ea0
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebp
push esi
push edi
mov eax, dword [0x591d64]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov dword [esp + 0x90], 2
call fcn.00415458
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4080e0
push 0x80004005
call fcn.0040e230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x90], 3
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x98]
mov eax, dword [edx + 0xe8]
push ecx
push eax
lea ecx, [esp + 0x1c]
push str._s_s
push ecx
call fcn.0040de30
mov ebp, dword [esp + 0x24]
add esp, 0x10
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x408384
push 0x2e
push ebp
call fcn.00506452
add esp, 8
cmp eax, edi
jne 0x408147
or eax, 0xffffffff
jmp 0x408149
sub eax, ebp
inc eax
push eax
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
call fcn.0040a580
push 0x5c
push ebp
mov byte [esp + 0x98], 4
call fcn.00506452
add esp, 8
cmp eax, edi
jne 0x408175
or eax, 0xffffffff
jmp 0x408177
sub eax, ebp
inc eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040a580
mov byte [esp + 0x90], 5
mov ecx, dword [esp + 0x1c]
push 0x56f2d8
push ecx
call fcn.00506154
add esp, 8
cmp eax, edi
je 0x4082cd
mov edx, dword [esp + 0x18]
push str.dotnetfx.exe
push edx
call fcn.00506154
add esp, 8
cmp eax, edi
je 0x4082cd
call fcn.00415458
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4081dd
push 0x80004005
call fcn.0040e230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x98], eax
mov byte [esp + 0x90], 6
mov ecx, dword [esp + 0xa4]
push ecx
push ebp
lea edx, [esp + 0xa0]
push str._s__s
push edx
call fcn.0040de30
push 0x40
lea eax, [esp + 0x54]
push edi
push eax
call fcn.00507960
mov esi, dword [esp + 0xb4]
mov ecx, 5
mov word [esp + 0x88], cx
mov ecx, 1
mov dword [esp + 0x58], 0x44
mov dword [esp + 0x84], ecx
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
add esp, 0x1c
or eax, ecx
jge 0x408272
push 0x104
lea ecx, [esp + 0x9c]
call fcn.0040e0f0
mov esi, dword [esp + 0x98]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x40]
push eax
push edi
push edi
push 0x20
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4082a7
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x2c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esi - 0x10]
mov byte [esp + 0x90], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408334
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x408334
push 0x3c
lea ecx, [esp + 0x40]
push edi
push ecx
call fcn.00507960
mov edx, dword [esp + 0xb0]
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x40], 0x3c
mov dword [esp + 0x44], 0x40
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push edi
push str.MsiDialogCloseClass
call dword [sym.imp.USER32.dll_FindWindowA]
mov ecx, dword [esp + 0x74]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [esp + 0x90], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40835c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x90], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408384
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x9c]
push ecx
lea edx, [esp + 0x2c]
push str.Msg:Install_
push edx
call fcn.0040d960
push 0x56f070
push eax
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0xa8], 7
call fcn.0040db20
lea ecx, [esp + 0x2c]
push ecx
push eax
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0xb4], 8
call fcn.0040a760
push 0x56f070
push eax
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0xc0], 9
call fcn.0040db20
lea ecx, [esp + 0xd4]
push ecx
push eax
lea edx, [esp + 0x54]
push edx
mov byte [esp + 0xcc], 0xa
call fcn.0040a760
push 0x56ece8
push eax
lea eax, [esp + 0xdc]
push eax
mov byte [esp + 0xd8], 0xb
call fcn.0040db20
mov eax, dword [eax]
add esp, 0x48
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x98]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408448
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x90], 0xa
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408470
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x90], 9
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408498
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x90], 8
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4084c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x90], 7
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4084e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x90], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408510
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x90], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408534
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x9c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40855f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x90], 0
mov eax, dword [esp + 0xa0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40858a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x90], 0xffffffff
mov eax, dword [esp + 0xa4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4085b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x84
ret 0x10