Function at 0x419aa0
Capabilities:
Accept command line arguments
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492946
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x4bf434]
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 esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xbc], 0
cmp dword [esi + 0x10], 0
mov dword [ebp - 0xc4], eax
je 0x41a01f
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x419b01
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41a01f
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov ebx, dword [esi + 0x14]
mov edx, esi
mov dword [ebp - 4], eax
cmp ebx, 8
jb 0x419b33
mov edx, dword [esi]
mov edi, dword [esi + 0x10]
test edi, edi
je 0x419b52
mov ecx, edi
mov eax, edx
mov edi, edi
cmp word [eax], 0x20
je 0x419bd5
add eax, 2
sub ecx, 1
jne 0x419b40
lea eax, [ebp - 0x58]
cmp eax, esi
je 0x419b6a
cmp ebx, 8
jb 0x419b60
mov esi, dword [esi]
push edi
push esi
lea ecx, [ebp - 0x58]
call fcn.00407630
push 0x49d61c
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040c040
push dword [ebp - 0xc0]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040bf70
add esp, 0x18
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x419e52
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419e48
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x419e48
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x419b52
push 0x4a0b94
lea ecx, [ebp - 0xb8]
call fcn.00401a00
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 1
push eax
push esi
call fcn.0041b380
add esp, 8
test al, al
je 0x419c1e
push esi
lea ecx, [ebp - 0x28]
call fcn.00402080
mov byte [ebp - 4], 2
mov ebx, 1
jmp 0x419c75
push 0x4a0b94
lea ecx, [ebp - 0xa0]
call fcn.00401a00
push esi
push eax
lea eax, [ebp - 0x88]
mov dword [ebp - 4], 3
push eax
mov dword [ebp - 0xbc], 2
call fcn.0040bf70
push 0x4a0b94
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 4
push eax
mov dword [ebp - 0xbc], 6
call fcn.004016a0
add esp, 0x18
mov ebx, 0xe
push eax
lea ecx, [ebp - 0x58]
call fcn.00407d00
test bl, 8
je 0x419cd4
mov edx, dword [ebp - 0x5c]
and ebx, 0xfffffff7
cmp edx, 8
jb 0x419cc0
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419cb6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419e33
push edx
push ecx
call fcn.00488034
add esp, 8
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov dword [ebp - 4], 3
test bl, 4
je 0x419d37
mov edx, dword [ebp - 0x74]
and ebx, 0xfffffffb
cmp edx, 8
jb 0x419d20
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419d16
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419e33
push edx
push ecx
call fcn.00488034
add esp, 8
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
mov dword [ebp - 4], 2
test bl, 2
je 0x419da3
mov edx, dword [ebp - 0x8c]
and ebx, 0xfffffffd
cmp edx, 8
jb 0x419d86
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419d7c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419e33
push edx
push ecx
call fcn.00488034
add esp, 8
xor eax, eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
mov dword [ebp - 4], 1
test bl, 1
je 0x419df9
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x419de5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419ddb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419e33
push edx
push ecx
call fcn.00488034
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov edx, dword [ebp - 0xa4]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x419b6a
mov ecx, dword [ebp - 0xb8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419e39
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x419e39
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00488034
add esp, 8
jmp 0x419b6a
push edx
push ecx
call fcn.00488034
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push str.enableetw
push eax
call sub.VCRUNTIME140.dll_wcsstr
add esp, 8
test eax, eax
je 0x419e8d
push 0xb
push str.__enableetw
lea ecx, [ebp - 0x40]
call fcn.00401d80
mov edi, dword [ebp - 0x30]
xor esi, esi
xor ebx, ebx
xor ecx, ecx
add edi, 1
je 0x419ec6
cmp edi, 0x7fffffff
ja 0x41a03d
push edi
lea ecx, [ebp - 0x64]
call fcn.00401d20
mov esi, eax
mov ecx, edi
xor eax, eax
shr ecx, 1
lea ebx, [esi + edi*2]
mov edi, esi
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov ecx, ebx
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
sub ecx, esi
push eax
sar ecx, 1
push ecx
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
xor eax, eax
mov dword [ebp - 0x118], 0x44
push 0x40
push eax
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0x114]
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0xc4]
add esp, 0x18
cmp dword [eax + 0x10], 0
jne 0x419f24
xor eax, eax
jmp 0x419f2c
cmp dword [eax + 0x14], 8
jb 0x419f2c
mov eax, dword [eax]
lea ecx, [ebp - 0xd4]
push ecx
lea ecx, [ebp - 0x118]
push ecx
push eax
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x419f5e
push dword [ebp - 0xd0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0xd4]
test esi, esi
je 0x419f95
sub ebx, esi
mov eax, esi
and ebx, 0xfffffffe
cmp ebx, 0x1000
jb 0x419f8b
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a00b
push ebx
push esi
call fcn.00488034
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x419fcb
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419fc1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a00b
push edx
push ecx
call fcn.00488034
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x41a01b
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a011
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41a011
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00488034
add esp, 8
mov eax, edi
jmp 0x41a021
xor eax, eax
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.00488042
mov esp, ebp
pop ebp
ret
call fcn.00401d10
int3