Function at 0x4015a0
Capabilities:
Accept command line arguments
Access pe header
Access peb ldr_data
Create process on windows
Create process suspended
Get process heap flags
Get process heap force flags
Get system information on windows
Terminate process

Disassembly:
push ebp
pxor xmm0, xmm0
mov ebp, esp
push edi
push esi
movzx esi, ax
push ebx
mov ebx, eax
lea eax, [ebp - 0x3a4]
sub esp, 0x3d8
movups xmmword [ebp - 0x384], xmm0
mov dword [ebp - 0x3b0], 0
mov dword [ebp - 0x344], 0
movups xmmword [ebp - 0x374], xmm0
movups xmmword [ebp - 0x364], xmm0
movups xmmword [ebp - 0x354], xmm0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x3b0]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x20
mov dword [esp + 8], 4
mov dword [esp + 4], eax
mov dword [esp], 0xb5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
movzx eax, word [ebp - 0x3a4]
sub esp, 0x18
test ax, ax
je 0x4018c5
cmp bx, ax
je 0x401a68
movzx eax, word [ebp - 0x3a0]
test ax, ax
je 0x4018c5
cmp bx, ax
je 0x401aa6
movzx eax, word [ebp - 0x39c]
test ax, ax
je 0x4018c5
cmp bx, ax
je 0x401ab0
movzx eax, word [ebp - 0x398]
test ax, ax
je 0x4018c5
cmp bx, ax
je 0x401aba
movzx eax, word [ebp - 0x394]
test ax, ax
je 0x4018c5
cmp bx, ax
je 0x401b2c
movzx eax, word [ebp - 0x390]
test ax, ax
je 0x4018c5
cmp bx, ax
je 0x401b49
movzx eax, word [ebp - 0x38c]
test ax, ax
je 0x4018c5
cmp bx, ax
je 0x401b53
cmp word [ebp - 0x388], 0
je 0x4018c5
mov eax, 7
test byte [ebp + eax*4 - 0x3a2], 4
mov eax, 1
lea ebx, [ebp - 0x214]
mov dword [esp + 4], 0x104
cmovne esi, eax
mov dword [esp], ebx
mov dword [esp + 8], esi
call dword [sym.imp.kernelbase.dll_GetSystemWow64Directory2W]
sub esp, 0xc
test eax, eax
je 0x4018c5
mov eax, dword [sym.imp.ucrtbase.dll_wcscat]
mov dword [esp + 4], str._regsvr32.exe
mov dword [esp], ebx
mov dword [ebp - 0x3b8], eax
call eax
lea eax, [ebp - 0x340]
mov dword [ebp - 0x3b4], eax
test byte [section..data], 8
jne 0x4018f0
call dword [sym.imp.kernelbase.dll_GetCommandLineW]
mov esi, eax
movzx eax, word [eax]
test ax, ax
je 0x401797
xor ecx, ecx
xor edi, edi
jmp 0x401779
cmp ax, 0x5c
jne 0x4018d0
add ecx, 1
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
je 0x401797
cmp ax, 9
je 0x401785
cmp ax, 0x20
jne 0x401760
test edi, edi
je 0x401797
movzx eax, word [esi + 2]
add esi, 2
xor ecx, ecx
test ax, ax
jne 0x401779
mov ecx, dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [esp], ebx
mov dword [ebp - 0x3bc], ecx
call ecx
mov dword [esp], esi
mov ecx, dword [ebp - 0x3bc]
mov edi, eax
call ecx
mov dword [esp + 4], 0
lea eax, [edi + eax + 1]
add eax, eax
mov ecx, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x3bc], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscpy]
mov dword [esp + 4], esi
mov dword [esp], edi
mov eax, dword [ebp - 0x3b8]
call eax
lea eax, [ebp - 0x3ac]
mov dword [ebp - 0x384], 0x44
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_Wow64DisableWow64FsRedirection]
mov eax, dword [ebp - 0x3b4]
sub esp, 4
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x384]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.kernelbase.dll_CreateProcessW]
mov ecx, dword [ebp - 0x3bc]
sub esp, 0x28
test eax, eax
jne 0x401b86
test byte [section..data], 8
jne 0x401a38
mov eax, dword [ebp - 0x3ac]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_Wow64RevertWow64FsRedirection]
sub esp, 4
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ax, 0x22
jne 0x401789
and ecx, 1
jne 0x401789
xor edi, 1
jmp 0x40176d
mov eax, ebx
shr eax, 0x10
je 0x401ac4
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x401a08
cmp word [ebp - 0x214], 0
je 0x401b68
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x401930
mov esi, 0x224c
mov dword [ebp - 0x3b4], edx
lea eax, [ebp - 0x33e]
mov word [ebp - 0x340], si
mov esi, ebx
jmp 0x4019a0
cmp cx, 9
je 0x401a95
cmp cx, 0xa
jne 0x401adb
mov ecx, 0x6e5c
add eax, 2
mov word [eax - 2], cx
sub dword [ebp - 0x3b4], 1
mov edx, dword [ebp - 0x3b4]
cmp edx, 0xffffffff
je 0x401b5d
lea ecx, [ebp - 0x21e]
cmp ecx, eax
jb 0x4019d4
movzx ecx, word [esi]
add esi, 2
cmp cx, 0xd
je 0x401a6f
jbe 0x401960
cmp cx, 0x22
je 0x401a82
cmp cx, 0x5c
jne 0x401b36
mov edi, 0x5c5c
add eax, 2
mov word [eax - 2], di
jmp 0x401980
mov byte [eax], 0x22
test edx, edx
je 0x401b60
mov ecx, 0x2e2e
mov byte [eax + 3], 0x2e
lea edx, [eax + 4]
mov word [eax + 1], cx
lea eax, [ebp - 0x340]
mov byte [edx], 0
mov dword [ebp - 0x3b4], eax
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.restarting_as__s_n
mov dword [esp + 8], 0x406108
mov dword [esp + 4], 0x404000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x40174a
mov eax, dword [ecx + 0x34]
mov dword [esp + 0xc], str.failed_to_restart__err_ld_n
mov dword [esp + 8], 0x406108
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x404000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x40188f
xor eax, eax
jmp 0x4016e3
movzx edx, word [str._r_]
add eax, 2
mov word [eax - 2], dx
jmp 0x401980
movzx edx, word [0x406116]
add eax, 2
mov word [eax - 2], dx
jmp 0x401980
mov edx, 0x745c
add eax, 2
mov word [eax - 2], dx
jmp 0x401980
mov eax, 1
jmp 0x4016e3
mov eax, 2
jmp 0x4016e3
mov eax, 3
jmp 0x4016e3
mov dword [esp + 4], ebx
mov dword [esp], str._04x
call sym._wine_dbg_sprintf.constprop.0
mov edx, eax
jmp 0x401a08
mov edi, ecx
mov byte [eax], 0x5c
add eax, 5
shr di, 0xc
movzx edi, di
movzx edx, byte [edi + str.0123456789abcdefreexec_self]
mov edi, ecx
shr di, 8
and edi, 0xf
mov byte [eax - 4], dl
movzx edx, byte [edi + str.0123456789abcdefreexec_self]
mov edi, ecx
and ecx, 0xf
shr di, 4
movzx ecx, byte [ecx + str.0123456789abcdefreexec_self]
and edi, 0xf
mov byte [eax - 3], dl
movzx edx, byte [edi + str.0123456789abcdefreexec_self]
mov byte [eax - 1], cl
mov byte [eax - 2], dl
jmp 0x401980
mov eax, 4
jmp 0x4016e3
lea edi, [ecx - 0x20]
cmp di, 0x5e
ja 0x401adb
mov byte [eax], cl
add eax, 1
jmp 0x401980
mov eax, 5
jmp 0x4016e3
mov eax, 6
jmp 0x4016e3
mov byte [eax], 0x22
lea edx, [eax + 1]
jmp 0x4019ef
mov edi, 0x224c
mov byte [ebp - 0x33e], 0x22
lea edx, [ebp - 0x33d]
mov word [ebp - 0x340], di
jmp 0x4019ef
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x340]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_WaitForSingleObject]
push eax
push eax
lea eax, [ebp - 0x3a8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x340]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_GetExitCodeProcess]
push edx
push edx
mov eax, dword [ebp - 0x3a8]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_ExitProcess]