Function at 0x4040f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ecx, 0x10
mov ebp, esp
push edi
push esi
mov esi, eax
xor eax, eax
push ebx
lea ebx, [ebp - 0x188]
sub esp, 0x1dc
mov dword [ebp - 0x1ac], edx
lea edx, [ebp - 0x184]
mov dword [ebp - 0x19c], 0
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x198]
mov dword [ebp - 0x188], 0x44
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x194], 0
mov dword [ebp - 0x190], 0
mov dword [ebp - 0x18c], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ebx
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], esi
mov dword [esp], 0
call dword [sym.imp.kernelbase.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x404330
test byte [0x40a160], 8
jne 0x404200
mov eax, dword [ebp - 0x1ac]
test eax, eax
jne 0x4042f0
mov eax, dword [ebp - 0x194]
mov ebx, dword [sym.imp.kernelbase.dll_CloseHandle]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x198]
sub esp, 4
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x19c]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [ebp - 0x198]
test esi, esi
je 0x4045c0
mov eax, esi
shr eax, 0x10
je 0x404430
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x404443
movzx eax, word [esi]
test ax, ax
je 0x4045d0
lea esi, [esi]
nop
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x404250
mov ecx, 0x224c
lea ebx, [ebp - 0x22]
mov dword [ebp - 0x1b0], edi
mov word [ebp - 0x144], cx
mov edi, ebx
lea ecx, [ebp - 0x142]
jmp 0x4042b8
cmp ax, 9
je 0x404508
cmp ax, 0xa
jne 0x404481
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea ebx, [edx - 1]
cmp ecx, edi
ja 0x404520
test edx, edx
jle 0x404520
movzx eax, word [esi]
mov edx, ebx
add esi, 2
cmp ax, 0xd
je 0x4044f0
jbe 0x404280
cmp ax, 0x22
je 0x4044d8
cmp ax, 0x5c
jne 0x404474
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x4042a0
mov eax, dword [ebp - 0x198]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_WaitForSingleObject]
lea eax, [ebp - 0x19c]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x198]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_GetExitCodeProcess]
sub esp, 8
jmp 0x4041c8
mov eax, 0xffffffff
test byte [0x40a160], 4
je 0x4041f0
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
test esi, esi
je 0x4046e0
mov eax, esi
shr eax, 0x10
je 0x404570
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x404583
movzx eax, word [esi]
test ax, ax
je 0x4046ea
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x404390
mov edi, 0x224c
mov dword [ebp - 0x1b0], ebx
lea ecx, [ebp - 0x142]
mov word [ebp - 0x144], di
lea edi, [ebp - 0x22]
mov dword [ebp - 0x1ac], edi
jmp 0x4043fc
cmp ax, 9
je 0x404688
cmp ax, 0xa
jne 0x404616
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [edx - 1]
cmp ecx, dword [ebp - 0x1ac]
ja 0x4046a0
test edx, edx
jle 0x4046a0
movzx eax, word [esi]
mov edx, edi
add esi, 2
cmp ax, 0xd
je 0x4045f8
jbe 0x4043c0
cmp ax, 0x22
je 0x404670
cmp ax, 0x5c
jne 0x404609
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x4043e0
movzx esi, si
mov dword [esp], 0x40b21c
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0_1
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Successfully_ran_command__s___Created_process_handle__p_n
mov dword [esp + 8], str.runCmd
mov dword [esp + 4], 0x40a160
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x4041ba
lea ebx, [eax - 0x20]
cmp bx, 0x5e
jbe 0x404560
mov ebx, eax
mov byte [ecx], 0x5c
add ecx, 5
shr bx, 0xc
movzx ebx, bx
movzx ebx, byte [ebx + 0x4156a8]
mov byte [ecx - 4], bl
mov ebx, eax
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + 0x4156a8]
mov byte [ecx - 3], bl
mov ebx, eax
and eax, 0xf
shr bx, 4
movzx eax, byte [eax + 0x4156a8]
and ebx, 0xf
movzx ebx, byte [ebx + 0x4156a8]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x4042a0
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4042a0
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4042a0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4042a0
mov byte [ecx], 0x22
mov edi, dword [ebp - 0x1b0]
test ebx, ebx
jle 0x4045e9
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [esp], eax
call sym.___wine_dbg_strdup
jmp 0x404443
mov byte [ecx], al
inc ecx
jmp 0x4042a0
movzx esi, si
mov dword [esp], 0x40b21c
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0_1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_run_command__s___ld__n
mov dword [esp + 8], str.runCmd
mov dword [esp + 4], 0x40a160
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
mov eax, 0xffffffff
jmp 0x4041f0
mov eax, str._null_
jmp 0x404443
mov ebx, 0x224c
mov byte [ebp - 0x142], 0x22
lea ecx, [ebp - 0x142]
mov word [ebp - 0x144], bx
lea eax, [ecx + 1]
jmp 0x404541
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4043e0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x4046d8
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + 0x4156a8]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + 0x4156a8]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + 0x4156a8]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + 0x4156a8]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x4043e0
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x4043e0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4043e0
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x1b0]
test edi, edi
jle 0x404703
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [esp], eax
call sym.___wine_dbg_strdup
jmp 0x404583
mov byte [ecx], al
inc ecx
jmp 0x4043e0
mov eax, str._null_
jmp 0x404583
mov eax, 0x224c
mov byte [ebp - 0x142], 0x22
lea ecx, [ebp - 0x142]
mov word [ebp - 0x144], ax
lea eax, [ecx + 1]
jmp 0x4046bd