Function at 0x412f60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5493f8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5aa1b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x70], eax
call fcn.00415d33
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x412fb6
push 0x80004005
call fcn.00412c40
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x58], eax
push 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
push 0x58b9dc
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
call fcn.0040fc10
mov dword [ebp - 4], 1
call fcn.00415d33
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x41300a
push 0x80004005
call fcn.00412c40
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4c], vtable.CUtlCommonPath.0
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x413037
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.LMSOFTWARECorelCorelDRAW18.0
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
call fcn.004149b0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x54]
push ecx
push 0x20019
push 0
push dword [ebp - 0x58]
push eax
call esi
or edi, 0xffffffff
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x4130fb
push str.ConfigDir
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x58]
call fcn.00414810
mov byte [ebp - 4], 3
mov edx, dword [eax]
mov dword [ebp - 0x44], 0
test edx, edx
jne 0x41309d
xor ecx, ecx
jmp 0x4130b1
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4130a2
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x48]
call fcn.0040fc10
mov byte [ebp - 4], 2
mov ecx, edi
mov edx, dword [ebp - 0x5c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4130db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x4c]
call fcn.00413b70
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4131bf
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call eax
jmp 0x4131bf
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x41310a
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call eax
push str.LMSOFTWARECorelCorelDRAW18.0
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
call fcn.004149b0
lea ecx, [ebp - 0x54]
push ecx
push 0x20119
push 0
push dword [ebp - 0x58]
push eax
call esi
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x4131cd
push str.ConfigDir
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x58]
call fcn.00414810
mov byte [ebp - 4], 4
mov edx, dword [eax]
mov dword [ebp - 0x44], 0
test edx, edx
jne 0x413167
xor ecx, ecx
jmp 0x41317f
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413170
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x48]
call fcn.0040fc10
mov byte [ebp - 4], 2
mov ecx, edi
mov edx, dword [ebp - 0x5c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4131a9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x4c]
call fcn.00413b70
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4131bf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
push str.opendoc
push ebx
call fcn.005306f9
add esp, 8
test eax, eax
jne 0x41346c
push dword [ebp - 0x64]
lea ecx, [ebp - 0x5c]
call fcn.0040fd60
push str.Draw
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 5
call fcn.0040fd60
mov byte [ebp - 4], 6
call fcn.00415d33
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x41321f
push 0x80004005
call fcn.00412c40
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x64], esi
mov byte [ebp - 4], 7
xor ebx, ebx
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], 0
cmp dword [eax - 0xc], ebx
je 0x4132f7
lea eax, [ebp - 0x6c]
push eax
push 0x58bff4
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004135e0
mov byte [ebp - 4], 8
lea edi, [esi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x4132b3
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x4132a4
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x4132a4
push edx
call fcn.0040f680
add esp, 4
mov dword [ebp - 0x68], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x41329c
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x68]
lea esi, [eax + 0x10]
mov dword [ebp - 0x64], esi
jmp 0x4132b3
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x64]
call fcn.0040fc10
mov esi, dword [ebp - 0x64]
mov byte [ebp - 4], 7
or edi, 0xffffffff
mov edx, dword [ebp - 0x74]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4132d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp ebx, 1
je 0x4132eb
mov eax, dword [ebp - 0x5c]
inc ebx
cmp dword [eax - 0xc], 0
jne 0x413245
jmp 0x4132f7
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x60]
call fcn.0040f610
push str.Connect
push dword [ebp - 0x60]
call fcn.005306f9
add esp, 8
test eax, eax
lea eax, [ebp - 0x4c]
jne 0x41334a
push str.Connect64
push eax
call fcn.00413a10
add esp, 8
lea ecx, [ebp - 0x4c]
push 1
call fcn.00413cc0
test al, al
jne 0x413343
lea ecx, [ebp - 0x4c]
call fcn.00413b70
lea eax, [ebp - 0x4c]
push str.Connect
push eax
call fcn.00413a10
add esp, 8
push str.Connect.exe
jmp 0x413373
push str.Programs64
push eax
call fcn.00413a10
add esp, 8
lea ecx, [ebp - 0x4c]
push 1
call fcn.00413cc0
test al, al
jne 0x41337f
lea ecx, [ebp - 0x4c]
call fcn.00413b70
push str.Programs
lea eax, [ebp - 0x4c]
push eax
call fcn.00413a10
add esp, 8
push str.Draw
push dword [ebp - 0x60]
call fcn.005306f9
add esp, 8
test eax, eax
jne 0x41339a
push str.CorelDRW.exe
jmp 0x4133e9
push 0x58b494
push dword [ebp - 0x60]
call fcn.005306f9
add esp, 8
test eax, eax
jne 0x4133b5
push str.CorelPP.exe
jmp 0x4133e9
push str.Capture
push dword [ebp - 0x60]
call fcn.005306f9
add esp, 8
test eax, eax
jne 0x4133d0
push str.Capture.exe
jmp 0x4133e9
push str.FontManager
push dword [ebp - 0x60]
call fcn.005306f9
add esp, 8
test eax, eax
jne 0x4133f5
push str.FontManager.exe
lea eax, [ebp - 0x4c]
push eax
call fcn.00413a10
add esp, 8
push 5
push 0
push 0x58b9dc
push dword [ebp - 0x48]
push 0x58bff8
push dword [ebp - 0x70]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
add esi, 0xfffffff0
mov byte [ebp - 4], 6
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41342c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov ecx, edi
mov edx, dword [ebp - 0x60]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41344c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov ecx, edi
mov edx, dword [ebp - 0x5c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41346c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, edi
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
mov dword [ebp - 0x4c], vtable.CUtlCommonPath.0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x413493
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4134a8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x58]
add edx, 0xfffffff0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4134d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052f8d6
mov esp, ebp
pop ebp
ret 0x10