Function at 0x405431
Capabilities:
Accept command line arguments
Check for time delay via queryperformancecounter

Disassembly:
push 0x2ec
mov eax, 0x443168
call fcn.00424af3
xor ebx, ebx
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 4], ebx
call fcn.004036c7
push str.undefined
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
mov byte [ebp - 0x2c1], bl
call fcn.004066ee
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2d4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov dword [ebp - 0x2e4], esi
mov byte [ebp - 4], 4
cmp dword [ebp - 0x2d4], 2
jne 0x4056de
push str.__shutdown
push dword [esi + 4]
call fcn.00429741
pop ecx
pop ecx
test eax, eax
jne 0x405503
lea ecx, [ebp - 0x2c0]
call fcn.00403ab5
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.00408384
cmp dword [ebp - 0x2b8], 0
je 0x4054e7
push dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2bc], 0
je 0x4054fc
push dword [ebp - 0x2bc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x4058aa
push str.__recover
push dword [esi + 4]
call fcn.00429741
pop ecx
pop ecx
test eax, eax
jne 0x4055b7
mov byte [ebp - 0x2c1], 1
cmp dword [ebp - 0x2b8], 0
je 0x40553c
push str.Startup_requested.
push 0x49
lea ecx, [ebp - 0x2c0]
call fcn.004039ae
lea ecx, [ebp - 0x2c0]
call fcn.00405407
test al, al
je 0x405705
cmp dword [ebp - 0x2b8], 0
je 0x40556a
push str.GFE_is_in_Standby_Mode__not_launching.
push 0x45
lea ecx, [ebp - 0x2c0]
call fcn.004039ae
test esi, esi
je 0x405575
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.00408384
cmp dword [ebp - 0x2b8], 0
je 0x405598
push dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2bc], 0
je 0x4055ad
push dword [ebp - 0x2bc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80004005
jmp 0x4058aa
push dword [esi + 4]
lea ecx, [ebp - 0x264]
call fcn.004065a8
push str.__launcher
mov edi, eax
call fcn.004024c8
pop ecx
push eax
push ecx
push str.__launcher
mov ecx, edi
call fcn.00408184
push ebx
push 1
lea ecx, [ebp - 0x264]
mov edi, eax
call fcn.0040812d
test edi, edi
jne 0x40567a
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x24c]
add eax, 0x16
push eax
call fcn.004065a8
mov byte [ebp - 4], 5
cmp dword [ebp - 0x23c], edi
je 0x405663
lea ecx, [ebp - 0x2b4]
call fcn.00405f72
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x2b4]
call fcn.00405ee8
push eax
lea ecx, [ebp - 0x234]
call fcn.0040667a
push ebx
push 1
lea ecx, [ebp - 0x264]
call fcn.00408384
lea ecx, [ebp - 0x2b4]
call fcn.00405f48
push ebx
push 1
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 4
call fcn.0040812d
jmp 0x405521
cmp dword [ebp - 0x2b8], 0
je 0x405695
push str.Unknown_command_line_argument
push 0x45
lea ecx, [ebp - 0x2c0]
call fcn.004039ae
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.00408384
cmp dword [ebp - 0x2b8], 0
je 0x4056bf
push dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2bc], 0
je 0x4056d4
push dword [ebp - 0x2bc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80070057
jmp 0x4058aa
jle 0x405521
cmp dword [ebp - 0x2b8], 0
je 0x4056ff
push str.Too_many_command_line_arguments
push 0x45
lea ecx, [ebp - 0x2c0]
call fcn.004039ae
test esi, esi
je 0x40569c
jmp 0x405695
lea eax, [ebp - 0x2ec]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call fcn.00403a40
mov edi, eax
mov dword [ebp - 0x2c8], edi
test edi, edi
jne 0x405789
cmp dword [ebp - 0x2b8], eax
je 0x40573d
push str.Node_is_already_running
push 0x49
lea ecx, [ebp - 0x2c0]
call fcn.004039ae
test esi, esi
je 0x405748
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
xor ebx, ebx
lea ecx, [ebp - 0x234]
inc ebx
push ebx
call fcn.00408384
cmp dword [ebp - 0x2b8], 0
je 0x40576d
push dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2bc], 0
je 0x405782
push dword [ebp - 0x2bc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x4058aa
jns 0x4057ac
cmp dword [ebp - 0x2b8], 0
je 0x40582a
push str.Failed_to_check_event
push 0x45
lea ecx, [ebp - 0x2c0]
call fcn.004039ae
jmp 0x40582a
mov edi, ebx
mov dword [ebp - 0x2e0], edi
mov eax, dword [ebp - 0x2c8]
mov byte [ebp - 4], 7
cmp eax, 2
je 0x4059c1
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x208
mov edi, eax
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.004272a0
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x405837
cmp dword [ebp - 0x2b8], eax
je 0x405816
push str.GetModuleFileName_failed
push 0x45
lea ecx, [ebp - 0x2c0]
call fcn.004039ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test esi, esi
je 0x4054c4
jmp 0x4054bd
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x4058b2
cmp dword [ebp - 0x2b8], eax
je 0x405862
push str.PathRemoveFileSpec_failed
push 0x45
lea ecx, [ebp - 0x2c0]
call fcn.004039ae
test esi, esi
je 0x40586d
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.00408384
cmp dword [ebp - 0x2b8], 0
je 0x405890
push dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2bc], 0
je 0x4058a5
push dword [ebp - 0x2bc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x8000ffff
call fcn.00424a40
ret 0x10
cmp dword [ebp - 0x2b8], 0
je 0x4058cd
push str.Starting_node_process...
push 0x49
lea ecx, [ebp - 0x2c0]
call fcn.004039ae
push str.index.js
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x2cc], ebx
call fcn.004065a8
cmp byte [ebp - 0x2c1], 0
mov byte [ebp - 4], 8
je 0x405909
mov edi, str._recover
push edi
call fcn.004024c8
pop ecx
push eax
push edi
lea ecx, [ebp - 0x24c]
call fcn.00409414
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x264]
call fcn.004065a8
lea eax, [ebp - 0x2cc]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x24c]
push eax
lea edx, [ebp - 0x264]
lea ecx, [ebp - 0x2c0]
call fcn.004049f7
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 8
mov edi, eax
call fcn.0040812d
test edi, edi
jns 0x405986
cmp dword [ebp - 0x2b8], 0
je 0x405973
push str.CreateNodeProcess_failed
push 0x45
lea ecx, [ebp - 0x2c0]
call fcn.004039ae
push ebx
push 1
lea ecx, [ebp - 0x24c]
call fcn.0040812d
jmp 0x40582a
cmp dword [ebp - 0x2b8], 0
mov edi, dword [ebp - 0x2cc]
mov dword [ebp - 0x2e0], edi
je 0x4059ad
push str.Process_created__waiting_for_initialization.
push 0x49
lea ecx, [ebp - 0x2c0]
call fcn.004039ae
push ebx
push 1
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 7
call fcn.0040812d
jmp 0x4059dc
cmp dword [ebp - 0x2b8], 0
je 0x4059e2
push str.Event_exists__this_means_that_process_is_already_running.
push 0x49
lea ecx, [ebp - 0x2c0]
call fcn.004039ae
mov eax, dword [ebp - 0x2c8]
cmp eax, 2
mov byte [ebp - 0x2c1], bl
mov eax, ebx
mov dword [ebp - 0x2c8], ebx
sete byte [ebp - 0x2cc]
cmp eax, 0x5dc0
jae 0x405d54
call fcn.00403a40
mov ecx, eax
mov dword [ebp - 0x2d8], ecx
test ecx, ecx
jne 0x405bc5
lea eax, [ebp - 0x2d0]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x2dc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
cmp dword [ebp - 0x2b8], 0
je 0x405a4f
push str.Initialized__reporting_launch_time.
push 0x49
lea ecx, [ebp - 0x2c0]
call fcn.004039ae
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x2dc]
or eax, dword [ebp - 0x2d8]
je 0x405a9b
mov ecx, dword [ebp - 0x2d0]
sub ecx, dword [ebp - 0x2ec]
mov eax, dword [ebp - 0x2cc]
sbb eax, dword [ebp - 0x2e8]
push ebx
push 0x3e8
push eax
push ecx
call fcn.00424b40
push dword [ebp - 0x2d8]
push dword [ebp - 0x2dc]
push edx
push eax
call fcn.00442a00
jmp 0x405a9d
mov eax, ebx
lea edx, [ebp - 0x234]
mov ecx, eax
call fcn.00404e66
mov dword [ebp - 4], 7
jmp 0x405b55
cmp dword [ebp - 0x2b8], 0
je 0x405b70
push str.Initialized__returning_S_OK
push 0x49
lea ecx, [ebp - 0x2c0]
call fcn.004039ae
test edi, edi
je 0x405b7b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x405b86
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.00408384
cmp dword [ebp - 0x2b8], 0
je 0x405ba9
push dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2bc], 0
je 0x405bbe
push dword [ebp - 0x2bc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4058aa
jns 0x405c3b
cmp dword [ebp - 0x2b8], 0
je 0x405be2
push str.CheckEvent_failed
push 0x45
lea ecx, [ebp - 0x2c0]
call fcn.004039ae
test edi, edi
je 0x405bed
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x405bf8
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.00408384
cmp dword [ebp - 0x2b8], 0
je 0x405c1b
push dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2bc], 0
je 0x405c30
push dword [ebp - 0x2bc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2d8]
jmp 0x4058aa
mov edx, dword [ebp - 0x2cc]
cmp ecx, 2
push 1
pop eax
movzx edx, dl
cmove edx, eax
mov dword [ebp - 0x2cc], edx
cmp ecx, eax
jne 0x405c8a
test dl, dl
je 0x405c8a
cmp dword [ebp - 0x2b8], 0
je 0x405c76
push str.Event_existed_before_but_no_longer_exists._Assuming_init_failure.
push 0x45
lea ecx, [ebp - 0x2c0]
call fcn.004039ae
test edi, edi
je 0x40556a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40556a
mov al, byte [ebp - 0x2c1]
test al, al
je 0x405ca8
test dl, dl
jne 0x405ca8
cmp dword [ebp - 0x2b8], 0
je 0x405c76
push str.Process_already_exited_and_no_event_to_wait_for...
jmp 0x405c69
test edi, edi
je 0x405d3a
test al, al
jne 0x405d3a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405d18
cmp eax, 0x102
je 0x405d3a
cmp eax, 0xffffffff
jne 0x405cf1
cmp dword [ebp - 0x2b8], 0
je 0x405ceb
push str.Process_wait_failed
push 0x45
lea ecx, [ebp - 0x2c0]
call fcn.004039ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x2b8], 0
je 0x405d0c
push str.Unexpected_code_from_process_wait
push 0x45
lea ecx, [ebp - 0x2c0]
call fcn.004039ae
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405862
cmp dword [ebp - 0x2b8], 0
je 0x405d33
push str.Detected_process_exit
push 0x49
lea ecx, [ebp - 0x2c0]
call fcn.004039ae
mov byte [ebp - 0x2c1], 1
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x2c8]
inc eax
mov dword [ebp - 0x2c8], eax
jmp 0x4059fa
cmp dword [ebp - 0x2b8], 0
je 0x405d6f
push str.Returning_ERROR_TIMEOUT
push 0x49
lea ecx, [ebp - 0x2c0]
call fcn.004039ae
test edi, edi
je 0x405d7a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x405d85
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.00408384
cmp dword [ebp - 0x2b8], 0
je 0x405da8
push dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2bc], 0
je 0x405dbd
push dword [ebp - 0x2bc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x800705b4
jmp 0x4058aa