Function at 0x401000
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4028a6
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x404004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x114]
add esp, 0x18
push 0x104
push eax
push 0
call esi
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call esi
mov esi, dword [sym.imp.VCRUNTIME140.dll_strrchr]
lea eax, [ebp - 0x114]
push 0x5c
push eax
call esi
push 0x5c
mov byte [eax], 0
lea eax, [ebp - 0x218]
push eax
call esi
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
push str._testCom.exe
push 0x104
mov byte [eax], 0
lea eax, [ebp - 0x114]
push eax
call esi
push str.TestComExePS1.dll
lea eax, [ebp - 0x218]
push 0x104
push eax
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [ebp - 0x114]
add esp, 0x28
push eax
call esi
test eax, eax
je 0x401454
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
je 0x401454
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x230], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401120
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00401550
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x238], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401167
sub ecx, edx
lea eax, [ebp - 0x218]
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00401550
cmp dword [ebp + 8], 2
mov byte [ebp - 4], 1
jne 0x4013bd
mov eax, dword [ebp + 0xc]
mov ecx, 0x4031c4
mov eax, dword [eax + 4]
mov edx, eax
nop
mov bl, byte [ecx]
cmp bl, byte [edx]
jne 0x4011c0
test bl, bl
je 0x4011bc
mov bl, byte [ecx + 1]
cmp bl, byte [edx + 1]
jne 0x4011c0
add ecx, 2
add edx, 2
test bl, bl
jne 0x4011a0
xor ecx, ecx
jmp 0x4011c5
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x401291
mov edx, dword [ebp - 0x21c]
mov eax, edx
mov ecx, dword [ebp - 0x220]
sub eax, ecx
push 0xb
push str.__regserver
cmp eax, 0xb
jb 0x401213
cmp edx, 0x10
lea esi, [ebp - 0x230]
lea eax, [ecx + 0xb]
cmovae esi, dword [ebp - 0x230]
add esi, ecx
mov dword [ebp - 0x220], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0xb], 0
jmp 0x40122d
mov byte [ebp - 0x24c], 0
lea ecx, [ebp - 0x230]
push dword [ebp - 0x24c]
push 0xb
call fcn.004017e0
lea eax, [ebp - 0x248]
mov edx, str.regsvr32__s
push eax
lea ecx, [ebp - 0x264]
call fcn.00401690
add esp, 4
lea ecx, [ebp - 0x248]
push eax
call fcn.004014d0
mov edx, dword [ebp - 0x250]
cmp edx, 0x10
jb 0x401385
mov ecx, dword [ebp - 0x264]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40137b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40137b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, 0x4031e4
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4012b6
test dl, dl
je 0x4012b2
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4012b6
add ecx, 2
add eax, 2
test dl, dl
jne 0x401296
xor eax, eax
jmp 0x4012bb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4013bd
mov edx, dword [ebp - 0x21c]
mov eax, edx
mov ecx, dword [ebp - 0x220]
sub eax, ecx
push 0xd
push str.__unregserver
cmp eax, 0xd
jb 0x401309
cmp edx, 0x10
lea esi, [ebp - 0x230]
lea eax, [ecx + 0xd]
cmovae esi, dword [ebp - 0x230]
add esi, ecx
mov dword [ebp - 0x220], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0xd], 0
jmp 0x401323
mov byte [ebp - 0x24c], 0
lea ecx, [ebp - 0x230]
push dword [ebp - 0x24c]
push 0xd
call fcn.004017e0
lea eax, [ebp - 0x248]
mov edx, str.regsvr32__u__s
push eax
lea ecx, [ebp - 0x264]
call fcn.00401690
add esp, 4
lea ecx, [ebp - 0x248]
push eax
call fcn.004014d0
mov edx, dword [ebp - 0x250]
cmp edx, 0x10
jb 0x401385
mov ecx, dword [ebp - 0x264]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40137b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40137b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00401b30
add esp, 8
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
mov esi, dword [sym.imp.KERNEL32.dll_WinExec]
cmovae eax, dword [ebp - 0x230]
push 5
push eax
call esi
cmp dword [ebp - 0x234], 0x10
lea eax, [ebp - 0x248]
push 5
cmovae eax, dword [ebp - 0x248]
push eax
call esi
mov edx, dword [ebp - 0x234]
cmp edx, 0x10
jb 0x4013f9
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4013ef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4013ef
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00401b30
add esp, 8
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
cmp edx, 0x10
jb 0x401450
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401446
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401446
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00401b30
add esp, 8
xor eax, eax
jmp 0x401457
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401aef
mov esp, ebp
pop ebp
ret