Function at 0x404ce0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
xor eax, eax
push ebx
mov ebx, ecx
mov ecx, 0x10
sub esp, 0x3cc
mov dword [ebp - 0x3a4], edx
lea edx, [ebp - 0x39c]
mov dword [ebp - 0x3a0], 0x44
mov edi, edx
rep stosd dword es:[edi], eax
movzx eax, bx
lea ebx, [ebp - 0x230]
mov dword [esp + 4], 0x104
mov dword [ebp - 0x3ac], eax
mov dword [esp + 8], eax
mov dword [esp], ebx
call dword [sym.imp.kernelbase.dll_GetSystemWow64Directory2W]
sub esp, 0xc
test eax, eax
je 0x404fa0
cmp word [ebp - 0x230], 0
mov edx, ebx
je 0x404d59
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x404d50
xor eax, eax
mov ecx, 0x5c
jmp 0x404d6f
movzx ecx, word [eax + str._rundll32.exe]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404d68
test byte [0x40a160], 8
jne 0x404ea8
cmp word [ebp - 0x230], 0
je 0x4050e0
mov edx, ebx
lea esi, cs:[esi]
add edx, 2
cmp word [edx], 0
jne 0x404da0
sub edx, ebx
sar edx, 1
lea ecx, [edx + 0x31]
cmp word [esi], 0
je 0x4050f0
mov eax, esi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x404dc0
sub eax, esi
sar eax, 1
add ecx, eax
lea eax, [ecx + ecx]
mov dword [ebp - 0x3a8], ecx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x404fa0
mov ecx, dword [ebp - 0x3a8]
mov eax, dword [ebp - 0x3a4]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 8], str._s_setupapi_InstallHinfSection__s_128__s
mov dword [esp + 4], ecx
mov dword [esp], edi
call sym._swprintf
lea eax, [ebp - 0x35c]
mov dword [esp], ebx
xor ebx, ebx
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x3a0]
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
call dword [sym.imp.kernelbase.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
jne 0x404e88
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x358]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_CloseHandle]
mov ebx, dword [ebp - 0x35c]
sub esp, 4
jmp 0x404e71
mov eax, ebx
shr eax, 0x10
je 0x404fb0
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x404fc3
movzx eax, word [ebp - 0x230]
test ax, ax
je 0x405108
lea esi, cs:[esi]
nop
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x404ef0
mov ecx, 0x224c
mov dword [ebp - 0x3b0], esi
mov esi, ebx
mov word [ebp - 0x35c], cx
lea ecx, [ebp - 0x35a]
mov dword [ebp - 0x3a8], edx
jmp 0x404f68
cmp ax, 9
je 0x405018
cmp ax, 0xa
jne 0x405036
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
mov eax, dword [ebp - 0x3a8]
lea edi, [eax - 1]
test eax, eax
jle 0x4050a8
lea eax, [ebp - 0x23a]
cmp ecx, eax
ja 0x4050a8
mov dword [ebp - 0x3a8], edi
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x405000
jbe 0x404f20
cmp ax, 0x22
je 0x405090
cmp ax, 0x5c
jne 0x405029
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x404f40
lea esp, [ebp - 0xc]
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, bx
mov dword [esp], 0x40b17c
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x3ac]
mov dword [esp + 0xc], str.machine__x_starting__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.start_rundll32
mov dword [esp + 4], 0x40a160
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x404d88
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x404f40
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x404f40
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x405100
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx edx, byte [edi + 0x415720]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], dl
movzx edx, byte [edi + 0x415720]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + 0x415720]
and edi, 0xf
mov byte [ecx - 3], dl
movzx edx, byte [edi + 0x415720]
mov byte [ecx - 1], al
mov byte [ecx - 2], dl
jmp 0x404f40
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x404f40
mov byte [ecx], 0x22
mov esi, dword [ebp - 0x3b0]
test edi, edi
jle 0x405121
mov edi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], di
mov byte [eax], 0
lea eax, [ebp - 0x35c]
mov dword [esp], eax
call sym.___wine_dbg_strdup
jmp 0x404fc3
mov ecx, 0x31
jmp 0x404db0
xor eax, eax
jmp 0x404dcd
mov byte [ecx], al
inc ecx
jmp 0x404f40
mov eax, 0x224c
mov byte [ebp - 0x35a], 0x22
lea ecx, [ebp - 0x35a]
mov word [ebp - 0x35c], ax
lea eax, [ecx + 1]
jmp 0x4050c5