Function at 0x413f20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54bf25
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x5ad1b0]
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 + 8]
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x198], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x19c], eax
call fcn.004177a3
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x413f85
push 0x80004005
call fcn.00413c00
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x184], eax
push 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x184]
push 0x58e378
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x17c], 0
call fcn.00410be0
mov dword [ebp - 4], 1
call fcn.004177a3
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x413fe5
push 0x80004005
call fcn.00413c00
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
push 0
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 2
call fcn.004179bd
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa4]
push 0x58e378
mov dword [ebp - method.CWinApp.virtual_0], vtable.CLaunchCGSApp.0
call fcn.00414a40
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x64]
push 0x58e378
mov dword [ebp - 0x68], 0
call fcn.00410d30
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 5
call fcn.0041899d
lea eax, [ebp - 0x178]
mov byte [ebp - 4], 6
push eax
call fcn.0040f8a0
mov byte [ebp - 4], 7
mov esi, dword [eax]
mov eax, dword [ebp - 0x180]
test eax, eax
je 0x41407a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea ecx, [ebp - 0x184]
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x17c], 0
call fcn.00416420
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x180]
push ecx
push 0x20019
push 0
push dword [ebp - 0x184]
push eax
call edi
test eax, eax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x178]
sete byte [ebp - 0x171]
mov dword [ebp - 0x17c], eax
add edx, 0xfffffff0
or ebx, 0xffffffff
mov eax, ebx
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4140ec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x171], 0
lea eax, [ebp - 0x178]
je 0x41418f
push str.ConfigDir
push eax
lea ecx, [ebp - 0x184]
call fcn.00416280
mov byte [ebp - 4], 8
mov edx, dword [eax]
mov dword [ebp - 0x44], 0
test edx, edx
jne 0x414125
xor ecx, ecx
jmp 0x41413f
mov ecx, edx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414130
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x48]
call fcn.00410be0
mov byte [ebp - 4], 6
mov ecx, ebx
mov edx, dword [ebp - 0x178]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41416c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x4c]
call fcn.00414ec0
mov eax, dword [ebp - 0x180]
test eax, eax
je 0x4142a9
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call eax
jmp 0x4142a9
push eax
call fcn.0040f8a0
mov byte [ebp - 4], 9
mov esi, dword [eax]
mov eax, dword [ebp - 0x180]
test eax, eax
je 0x4141ad
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call eax
push esi
lea ecx, [ebp - 0x184]
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x17c], 0
call fcn.00416420
lea ecx, [ebp - 0x180]
push ecx
push 0x20119
push 0
push dword [ebp - 0x184]
push eax
call edi
test eax, eax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x178]
mov ecx, ebx
sete byte [ebp - 0x171]
mov dword [ebp - 0x17c], eax
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414216
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x171], 0
je 0x4142bd
push str.ConfigDir
lea eax, [ebp - 0x178]
push eax
lea ecx, [ebp - 0x184]
call fcn.00416280
mov byte [ebp - 4], 0xa
mov edx, dword [eax]
mov dword [ebp - 0x44], 0
test edx, edx
jne 0x41424f
xor ecx, ecx
jmp 0x414263
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414254
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x48]
call fcn.00410be0
mov byte [ebp - 4], 6
mov ecx, ebx
mov edx, dword [ebp - 0x178]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414290
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x4c]
call fcn.00414ec0
mov eax, dword [ebp - 0x180]
test eax, eax
je 0x4142a9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x180], 0
push str.opendoc
push dword [ebp - 0x18c]
call fcn.00532166
add esp, 8
test eax, eax
jne 0x41462d
push dword [ebp - 0x198]
lea ecx, [ebp - 0x194]
call fcn.00410d30
push str.Draw
lea ecx, [ebp - 0x188]
mov byte [ebp - 4], 0xb
call fcn.00410d30
mov byte [ebp - 4], 0xc
call fcn.004177a3
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x41431d
push 0x80004005
call fcn.00413c00
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18c], esi
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x194]
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x178], 0
cmp dword [eax - 0xc], 0
je 0x41443e
jmp 0x414360
lea eax, [ebp - 0x198]
push eax
push 0x58e984
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x194]
call fcn.004147c0
mov byte [ebp - 4], 0xe
lea edi, [esi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x4143e5
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x4143d0
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x4143d0
push edx
call fcn.00410550
add esp, 4
mov dword [ebp - 0x1a0], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4143c5
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1a0]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18c], esi
jmp 0x4143e5
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x18c]
call fcn.00410be0
mov esi, dword [ebp - 0x18c]
mov byte [ebp - 4], 0xd
mov ecx, ebx
mov edx, dword [ebp - 0x190]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414408
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x178]
cmp eax, 1
je 0x41442c
inc eax
mov dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x194]
cmp dword [eax - 0xc], 0
jne 0x414360
jmp 0x41443e
lea eax, [ebp - 0x18c]
push eax
lea ecx, [ebp - 0x188]
call fcn.004104e0
push str.Connect
push dword [ebp - 0x188]
call fcn.00532166
add esp, 8
test eax, eax
lea eax, [ebp - 0x4c]
jne 0x414494
push str.Connect64
push eax
call fcn.00414d60
add esp, 8
lea ecx, [ebp - 0x4c]
push 1
call fcn.00415260
test al, al
jne 0x41448d
lea ecx, [ebp - 0x4c]
call fcn.00414ec0
lea eax, [ebp - 0x4c]
push str.Connect
push eax
call fcn.00414d60
add esp, 8
push str.Connect.exe
jmp 0x4144bd
push str.Programs64
push eax
call fcn.00414d60
add esp, 8
lea ecx, [ebp - 0x4c]
push 1
call fcn.00415260
test al, al
jne 0x4144c9
lea ecx, [ebp - 0x4c]
call fcn.00414ec0
push str.Programs
lea eax, [ebp - 0x4c]
push eax
call fcn.00414d60
add esp, 8
push str.Draw
push dword [ebp - 0x188]
call fcn.00532166
add esp, 8
test eax, eax
jne 0x4144f2
lea eax, [ebp - 0x190]
push eax
call fcn.0040f780
mov byte [ebp - 4], 0xf
jmp 0x414519
push 0x58dc50
push dword [ebp - 0x188]
call fcn.00532166
add esp, 8
test eax, eax
jne 0x41454c
lea eax, [ebp - 0x190]
push eax
call fcn.0040f6f0
mov byte [ebp - 4], 0x10
push dword [eax]
lea eax, [ebp - 0x4c]
push eax
call fcn.00414d60
mov byte [ebp - 4], 0xd
add esp, 8
mov edx, dword [ebp - 0x190]
mov ecx, ebx
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4145ad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4145ad
push str.Capture
push dword [ebp - 0x188]
call fcn.00532166
add esp, 8
test eax, eax
jne 0x41456a
push str.Capture.exe
jmp 0x4145a1
push str.FontManager
push dword [ebp - 0x188]
call fcn.00532166
add esp, 8
test eax, eax
jne 0x414588
push str.FontManager.exe
jmp 0x4145a1
push str.Designer
lea ecx, [ebp - 0x188]
call fcn.004104b0
test eax, eax
jne 0x4145ad
push str.Designer.exe
lea eax, [ebp - 0x4c]
push eax
call fcn.00414d60
add esp, 8
push 5
push 0
push 0x58e378
push dword [ebp - 0x48]
push 0x58e988
push dword [ebp - 0x19c]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
add esi, 0xfffffff0
mov byte [ebp - 4], 0xc
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4145e7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov ecx, ebx
mov edx, dword [ebp - 0x188]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41460a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov ecx, ebx
mov edx, dword [ebp - 0x194]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41462d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 2
call fcn.0040d1e0
mov byte [ebp - 4], 1
mov ecx, ebx
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 0x414663
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x180]
test eax, eax
je 0x41467b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x184]
add edx, 0xfffffff0
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x17c], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4146ac
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.00531343
mov esp, ebp
pop ebp
ret 0x10