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

Disassembly:
push ebp
sub esp, 0x6b0
lea ebp, [esp - 4]
mov eax, dword [0x41d06c]
xor eax, ebp
mov dword [ebp + 0x6b0], eax
push 0x14c
mov eax, 0x417c66
call fcn.004139cb
xor esi, esi
mov dword [ebp - 4], esi
mov word [ebp], si
push 0x4ae
push esi
lea eax, [ebp + 2]
push eax
call fcn.00404950
mov word [ebp + 0x5b0], si
mov edi, 0xfe
push edi
push esi
lea eax, [ebp + 0x5b2]
push eax
call fcn.00404950
mov word [ebp + 0x4b0], si
push edi
push esi
lea eax, [ebp + 0x4b2]
push eax
call fcn.00404950
add esp, 0x24
mov eax, dword [ebp + 0x6bc]
sub eax, esi
je 0x402d8c
dec eax
je 0x402ce5
dec eax
je 0x402c39
dec eax
jne 0x402e77
push 0x80
lea eax, [ebp + 0x5b0]
push eax
mov edi, 0x41f648
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea eax, [ebp + 0x5b0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0x41f448
test eax, eax
je 0x402b9c
lea eax, [ebp + 0x5b0]
push eax
jmp 0x402b9d
push edi
push 0x41fa88
push str._s__C__s___sTempd2fme.tmp__2_1
lea eax, [ebp]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
xor edi, edi
inc edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x3c], 0xc
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x114], 0x44
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 0xe8], edi
mov word [ebp - 0xe4], si
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x3c]
push esi
push esi
push esi
push edi
push esi
push eax
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0x36ee80
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x402c26
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
jmp 0x402e75
push 0x41f648
mov ebx, 0x41f448
push ebx
push str._sTemp_s
lea eax, [ebp + 0x4b0]
push eax
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
call edi
add esp, 0x10
push 0x80
lea eax, [ebp + 0x5b0]
push eax
lea eax, [ebp + 0x4b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea eax, [ebp + 0x5b0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402e77
push ebx
lea eax, [ebp + 0x5b0]
push eax
push 0x41fa88
push str._s__C__s___sTempd2fme.tmp__2_1
lea eax, [ebp]
push eax
call edi
add esp, 0x14
xor edi, edi
inc edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x48], 0xc
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x8c], 0x44
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 0x60], edi
mov word [ebp - 0x5c], si
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x48]
jmp 0x402bf6
push 0x80
lea eax, [ebp + 0x5b0]
push eax
mov edi, 0x41f648
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea eax, [ebp + 0x5b0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402d17
lea eax, [ebp + 0x5b0]
push eax
jmp 0x402d18
push edi
push 0x41fa88
push str._s__C__s
lea eax, [ebp]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
xor edi, edi
inc edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x2c], 0xc
mov dword [ebp - 0x28], esi
mov dword [ebp - 0xd0], 0x44
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 0xa4], edi
mov word [ebp - 0xa0], si
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xd0]
push eax
push esi
push esi
push esi
push edi
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0x2710
jmp 0x402c0c
push 0x41f648
push 0x41f448
push str._sTemp_s
lea eax, [ebp + 0x4b0]
push eax
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
call edi
add esp, 0x10
push 0x80
lea eax, [ebp + 0x5b0]
push eax
lea eax, [ebp + 0x4b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea eax, [ebp + 0x5b0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402e77
lea eax, [ebp + 0x5b0]
push eax
push 0x41fa88
push str._s__C__s
lea eax, [ebp]
push eax
call edi
add esp, 0x10
xor edi, edi
inc edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x158], 0x44
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 0x12c], edi
mov word [ebp - 0x128], si
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x158]
push eax
push esi
push esi
push esi
push edi
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0x2710
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x402e67
push esi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x6b0]
xor ecx, ebp
call fcn.0040488f
add ebp, 0x6b4
leave
ret