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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491fb6
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x4be434]
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 0x419faf
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x419a91
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x419faf
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 0x419ac3
mov edx, dword [esi]
mov edi, dword [esi + 0x10]
test edi, edi
je 0x419ae2
mov ecx, edi
mov eax, edx
mov edi, edi
cmp word [eax], 0x20
je 0x419b65
add eax, 2
sub ecx, 1
jne 0x419ad0
lea eax, [ebp - 0x58]
cmp eax, esi
je 0x419afa
cmp ebx, 8
jb 0x419af0
mov esi, dword [esi]
push edi
push esi
lea ecx, [ebp - 0x58]
call fcn.00407630
push 0x49c63c
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040c080
push dword [ebp - 0xc0]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040bfb0
add esp, 0x18
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x419de2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419dd8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x419dd8
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 0x419ae2
push 0x49fbac
lea ecx, [ebp - 0xb8]
call fcn.00401a00
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 1
push eax
push esi
call fcn.0041b310
add esp, 8
test al, al
je 0x419bae
push esi
lea ecx, [ebp - 0x28]
call fcn.00402080
mov byte [ebp - 4], 2
mov ebx, 1
jmp 0x419c05
push 0x49fbac
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.0040bfb0
push 0x49fbac
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 0x419c64
mov edx, dword [ebp - 0x5c]
and ebx, 0xfffffff7
cmp edx, 8
jb 0x419c50
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419c46
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419dc3
push edx
push ecx
call fcn.004876f4
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 0x419cc7
mov edx, dword [ebp - 0x74]
and ebx, 0xfffffffb
cmp edx, 8
jb 0x419cb0
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419ca6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419dc3
push edx
push ecx
call fcn.004876f4
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 0x419d33
mov edx, dword [ebp - 0x8c]
and ebx, 0xfffffffd
cmp edx, 8
jb 0x419d16
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419d0c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419dc3
push edx
push ecx
call fcn.004876f4
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 0x419d89
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x419d75
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419d6b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419dc3
push edx
push ecx
call fcn.004876f4
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 0x419afa
mov ecx, dword [ebp - 0xb8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419dc9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x419dc9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
jmp 0x419afa
push edx
push ecx
call fcn.004876f4
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 0x419e1d
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 0x419e56
cmp edi, 0x7fffffff
ja 0x419fcd
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 0x419eb4
xor eax, eax
jmp 0x419ebc
cmp dword [eax + 0x14], 8
jb 0x419ebc
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 0x419eee
push dword [ebp - 0xd0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0xd4]
test esi, esi
je 0x419f25
sub ebx, esi
mov eax, esi
and ebx, 0xfffffffe
cmp ebx, 0x1000
jb 0x419f1b
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419f9b
push ebx
push esi
call fcn.004876f4
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x419f5b
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419f51
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419f9b
push edx
push ecx
call fcn.004876f4
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 0x419fab
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419fa1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x419fa1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
mov eax, edi
jmp 0x419fb1
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.00487702
mov esp, ebp
pop ebp
ret
call fcn.00401d10
int3