Function at 0x42d240
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4855e6
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x4aa0cc]
xor eax, esp
mov dword [esp + 0x458], eax
push ebx
push esi
push edi
mov eax, dword [0x4aa0cc]
xor eax, esp
push eax
lea eax, [esp + 0x470]
mov dword fs:[0], eax
mov ebx, edx
mov dword [esp + 0x20], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x28]
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x2c], ecx
mov ecx, ebx
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0
call fcn.0042b4e0
add esp, 4
mov esi, eax
push esi
push str._IPC_StartProcess_nStatus:_d
push 0
push str.Light_ipc.cpp
call fcn.0040e7d0
add esp, 0x10
cmp esi, 2
je 0x42d48e
cmp esi, 3
je 0x42d48e
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x4c]
call fcn.00415a60
lea eax, [esp + 0x4c]
mov dword [esp + 0x478], 0
push eax
lea ecx, [esp + 0x38]
call fcn.00403320
mov edi, dword [esp + 0x14]
mov byte [esp + 0x478], 1
test edi, edi
je 0x42d32f
push edi
lea ecx, [esp + 0x38]
call fcn.00408710
lea ecx, [esp + 0x34]
call fcn.00403470
push eax
push str._IPC_StartProcess_wsExeFile_s
push 0
push str.Light_ipc.cpp
call fcn.0040e7d0
add esp, 0x10
lea ecx, [esp + 0x34]
call fcn.00403470
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42d38f
push str._IPC__StartProcess
push 0
push str.Light_ipc.cpp
call fcn.0040e7d0
add esp, 0xc
lea ecx, [esp + 0x34]
call fcn.004033b0
lea ecx, [esp + 0x4c]
call fcn.004033b0
xor eax, eax
jmp 0x42d519
cmp dword [ebp + 0x24], 0
jne 0x42d39a
cmp esi, 1
jne 0x42d3a1
mov ecx, edi
call fcn.0041f9a0
xor eax, eax
push 0x3fe
push eax
mov word [esp + 0x6c], ax
lea eax, [esp + 0x6e]
push eax
call sub.MSVCR120.dll_memset
mov ecx, dword [esp + 0x38]
add esp, 0xc
call fcn.00403470
push eax
lea ecx, [esp + 0x38]
call fcn.00403470
push eax
push str.__s___s__s
lea eax, [esp + 0x70]
push 0x200
push eax
call fcn.0040b1f0
add esp, 0x14
lea eax, [esp + 0x64]
push eax
push str._IPC_StartProcess_RunProcess_s
push 0
push str.Light_ipc.cpp
call fcn.0040e7d0
add esp, 0xc
lea ecx, [esp + 0x50]
call fcn.00403470
mov edx, eax
lea ecx, [esp + 0x68]
call fcn.0041f7c0
add esp, 4
push ebx
push str._IPC_StartProcess_wait_window_s_Complete
push 0
push str.Light_ipc.cpp
call fcn.0040e7d0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x10
xor esi, esi
push dword [esp + 0x18]
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.0042b4e0
add esp, 4
cmp eax, 2
je 0x42d45a
cmp eax, 3
je 0x42d45a
push 0x64
inc esi
call edi
cmp esi, 0xa
jl 0x42d433
jmp 0x42d462
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x34]
call fcn.004033b0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x478], 0xffffffff
call fcn.004033b0
cmp dword [esp + 0x10], 0
je 0x42d388
mov edi, dword [esp + 0x28]
mov eax, dword [edi]
lea ecx, [esp + 0x30]
push ecx
push edi
mov dword [esp + 0x38], 0
call dword [eax + 0x14]
mov eax, dword [esp + 0x30]
cmp eax, 2
je 0x42d4c8
cmp eax, 3
je 0x42d4c8
push eax
push str._IPC__m_oIPCPipe_can_not_work__dwStatus___d
push 0
push str.Light_ipc.cpp
call fcn.0040e7d0
add esp, 0x10
xor eax, eax
jmp 0x42d519
push dword [esp + 0x14]
push str._IPC_StartProcess__s_IPC_POST
push 0
push str.Light_ipc.cpp
call fcn.0040e7d0
mov ebx, dword [esp + 0x2c]
mov esi, dword [ebp + 0x1c]
push ebx
push esi
push str._IPC_StartProcess_IPC_dwSize_d_pData_s
push 0
push str.Light_ipc.cpp
call fcn.0040e580
mov eax, dword [edi]
add esp, 0x24
push 0
push 0x1f4
push 0
push esi
push ebx
push 0x3e9
push dword [esp + 0x3c]
push edi
call dword [eax + 0x18]
mov eax, 1
mov ecx, dword [esp + 0x470]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x458]
xor ecx, esp
call fcn.0047db8e
mov esp, ebp
pop ebp
ret