Function at 0x426640
Capabilities:
Accept command line arguments
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2f38
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4ee05c]
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 [0x4f3d54]
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
je 0x426690
push 0x3e9
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [0x4f3d54]
inc eax
mov dword [0x4f3d54], eax
call fcn.0041d6e0
test eax, eax
je 0x42680b
mov eax, dword [0x4f3dbc]
test al, 1
jne 0x4266c4
or eax, 1
mov dword [0x4f3dbc], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [0x4f3db8], eax
jmp 0x4266c9
mov eax, dword [0x4f3db8]
push 0xa
push 0x10
push 0x4f3d58
push eax
call fcn.00482d1d
push 0xa
push 0x10
push 0x4f3d98
push esi
call fcn.00482d1d
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xa
push 0x10
push 0x4f3d78
push eax
call fcn.00482d1d
push str.crash_handle
push str.exitsource
mov dword [0x4f3dc8], 1
mov dword [0x4f3dc4], 0
mov dword [0x4f3dc0], 0xc
call fcn.004359d0
push str.crash
push str.exitreason
call fcn.004359d0
add esp, 0x20
call fcn.00435a00
mov ecx, 8
lea edi, [ebp - 0x34]
mov esi, str.kcrashdumper.exe
lea eax, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call fcn.0041d6e0
push eax
push 0x4bf2a0
push 0x4f3dd0
call fcn.00426580
call fcn.0041d990
push eax
push 0x4f3d98
push 0x4f3d78
push 0x4f3d58
push 0x4f3dd0
push str._s__pid_s__tid_s__exp_s__callfrom1__module_s
push 0x4f45d0
call fcn.004265b0
add esp, 0x2c
mov dword [0x4f56d0], 0x44
mov eax, 0xa
mov dword [0x4f56fc], 1
mov word [0x4f5700], ax
push 0x4f5714
push 0x4f56d0
push 0
push 0
push 0
push 1
push 0
push 0
push 0x4f45d0
push 0x4f3dd0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [0x4f5724], eax
test eax, eax
je 0x42680b
push 0xffffffffffffffff
push dword [0x4f5714]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x4f5718]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [0x4f5714]
call esi
call fcn.0041d6e0
test eax, eax
je 0x4268c6
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402fe0
cmp dword [ebp - 0x18], 8
lea ebx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmovae ebx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0
cmp eax, 8
jb 0x4268b8
add eax, 0xfffffff9
lea ecx, [ebx + eax*2]
mov eax, ebx
mov dword [ebp - 0x38], ecx
lea esp, [esp]
sub ecx, eax
sar ecx, 1
je 0x4268b8
cmp word [eax], 0x2f
je 0x426866
add eax, 2
sub ecx, 1
jne 0x426856
jmp 0x4268b8
mov edx, str._nativex
mov edi, eax
mov esi, 8
sub edi, edx
mov cx, word [edi + edx]
cmp cx, word [edx]
jne 0x4268f0
add edx, 2
sub esi, 1
jne 0x426874
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x4268b8
push str.nativex.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4268b8
push str.ProcNativeXCrash
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4268b1
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x2c]
call fcn.00402120
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x3e9
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
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.00475f67
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x38]
add eax, 2
jmp 0x426850