Function at 0x4010a0
Capabilities:
Accept command line arguments
Create process on windows
Get common file path
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ecx, 0x11
xor eax, eax
push edi
push esi
push ebx
sub esp, 0x2bc
lea esi, [esp + 0x64]
mov edi, esi
rep stosd dword es:[edi], eax
test byte [section..data], 8
jne 0x401328
lea eax, [esp + 0x4c]
mov dword [esp], 0xffffffff
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_IsWow64Process]
sub esp, 8
test eax, eax
je 0x4010ea
mov ecx, dword [esp + 0x4c]
test ecx, ecx
jne 0x401108
test byte [section..data], 8
jne 0x4012c8
add esp, 0x2bc
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0xa8]
mov dword [esp + 4], 0x104
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
sub esp, 8
lea eax, [esp + 0xa8]
mov dword [esp + 4], str.SysNative
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_wcscat]
mov dword [esp + 0x3c], eax
call eax
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, 0xffdf
je 0x4011a6
cmp ax, 9
je 0x4011a6
xor edx, edx
xor ebp, ebp
mov dword [esp + 0x38], edx
nop
cmp ax, 0x5c
je 0x401300
cmp ax, 0x22
je 0x401310
mov dword [esp + 0x38], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x4011a6
cmp ax, 9
sete cl
cmp ax, 0x20
mov edi, ecx
sete cl
mov edx, edi
or dl, cl
je 0x401160
test ebp, 1
jne 0x401160
lea eax, [esp + 0xa8]
mov ebp, dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [esp], eax
call ebp
mov dword [esp], str._regsvr32.exe
mov edi, eax
call ebp
mov dword [esp], ebx
add edi, eax
call ebp
mov dword [esp + 4], 0
lea eax, [edi + eax + 1]
add eax, eax
mov dword [esp + 8], eax
mov ebp, dword fs:[0x18]
mov eax, dword [ebp + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
lea eax, [esp + 0xa8]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_wcscpy]
mov dword [esp], edi
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], str._regsvr32.exe
call eax
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x3c]
mov dword [esp], edi
call eax
lea eax, [esp + 0x54]
mov dword [esp + 0x20], esi
mov dword [esp + 0x64], 0x44
mov dword [esp + 0x24], 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], 0
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
jne 0x401388
test byte [section..data], 8
jne 0x401358
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.kernel32.dll_HeapFree]
sub esp, 0xc
add esp, 0x2bc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], str.not_running_in_wow64__cant_restart_as_64_bit_n
mov dword [esp + 8], global___FUNCTION__.0
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
add esp, 0x2bc
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [esp + 0x38], 1
jmp 0x40117c
and dword [esp + 0x38], 1
jne 0x401174
xor ebp, 1
jmp 0x40117c
mov dword [esp + 0xc], str.restarting_as_64_bit_n
mov dword [esp + 8], global___FUNCTION__.0
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4010c6
mov eax, dword [ebp + 0x34]
mov dword [esp + 0xc], str.failed_to_restart__err_d_n
mov dword [esp + 8], global___FUNCTION__.0
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x401296
mov eax, dword [esp + 0x54]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push eax
push eax
lea eax, [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
push edx
push edx
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitProcess]