Function at 0x40dcb0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x580
xor eax, eax
mov word [ebp - 4], ax
push 0x44
push 0
lea ecx, [ebp - 0x80]
push ecx
call fcn.004144a0
add esp, 0xc
mov dword [ebp - 0x80], 0x44
mov edx, 5
mov word [ebp - 0x50], dx
mov dword [ebp - 0x54], 1
push 0x10
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.004144a0
add esp, 0xc
movsx ecx, word [ebp - 4]
test ecx, ecx
je 0x40dd11
push 4
push str.redist_run_process___PDS_Installation
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movsx eax, byte [edx + ecx]
cmp eax, 0x22
jne 0x40dd67
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp + 8]
movsx eax, byte [edx + ecx]
cmp eax, 0x22
jne 0x40dd67
mov ecx, 1
shl ecx, 0
add ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x580]
push edx
call fcn.004152c0
add esp, 8
lea eax, [ebp - 0x580]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004152c0
add esp, 8
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x80]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40de48
mov byte [ebp - 0x180], 0
push 0xff
push 0
lea edx, [ebp - 0x17f]
push edx
call fcn.004144a0
add esp, 0xc
push 0
push 0x100
lea eax, [ebp - 0x180]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.redist.exe___CreateProcess_failed__Error_code__d_._n_n
lea ecx, [ebp - 0x380]
push ecx
call fcn.0040e6f0
add esp, 0xc
lea edx, [ebp - 0x180]
push edx
lea eax, [ebp - 0x380]
push eax
call fcn.004152d0
add esp, 8
push 0x43008c
lea ecx, [ebp - 0x380]
push ecx
call fcn.004152d0
add esp, 8
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x380]
push eax
call fcn.004152d0
add esp, 8
push 0
push str.Error
lea ecx, [ebp - 0x380]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40def9
xor eax, eax
mov word [0x432cfc], ax
mov dword [ebp - 0xc], 0
mov ecx, 1
mov word [ebp - 0x10], cx
cmp dword [ebp - 0xc], 0
jne 0x40dee5
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40de88
jmp 0x40def9
cmp dword [ebp - 8], 0
jne 0x40de95
mov dword [ebp - 0xc], 1
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40dec9
cmp dword [ebp - 0x38], 0x12
jne 0x40deb3
jmp 0x40dec9
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40de95
movsx eax, word [0x432cfc]
cmp eax, 0x1b
jne 0x40dee0
xor ecx, ecx
mov word [0x432cfc], cx
jmp 0x40def9
jmp 0x40de60
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret