Function at 0x4036e0
Capabilities:
Create process on windows
Get process heap flags

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, 0x3ec
mov dword [ebp - 0x3c0], edx
lea edx, [ebp - 0x3a8]
mov dword [ebp - 0x3ac], 0x44
mov edi, edx
rep stosd dword es:[edi], eax
movzx eax, bx
lea ebx, [ebp - 0x23c]
mov dword [esp + 4], 0x104
mov dword [ebp - 0x3c4], eax
mov dword [esp + 8], eax
mov dword [esp], ebx
call dword [sym.imp.kernelbase.dll_GetSystemWow64Directory2W]
sub esp, 0xc
test eax, eax
je 0x403a20
cmp word [ebp - 0x23c], 0
mov edx, ebx
je 0x403759
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x403750
xor eax, eax
nop
lea esi, [esi]
movzx ecx, word [eax + str._rundll32.exe]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x403760
test byte [0x409010], 8
jne 0x4038c0
cmp word [ebp - 0x23c], 0
je 0x403b20
mov edi, ebx
add edi, 2
cmp word [edi], 0
jne 0x403790
sub edi, ebx
sar edi, 1
lea edx, [edi + 0x31]
cmp word [esi], 0
je 0x403b10
mov eax, esi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4037b0
sub eax, esi
sar eax, 1
lea ecx, [edx + eax]
mov dword [esp + 4], 0
lea edx, [ecx + ecx]
mov dword [ebp - 0x3bc], ecx
mov dword [esp + 8], edx
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_HeapAlloc]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x403a20
mov ecx, dword [ebp - 0x3bc]
mov eax, dword [ebp - 0x3c0]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], ebx
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 - 0x368]
mov dword [esp], ebx
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x3ac]
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 0x4039b0
mov dword [ebp - 0x368], 0
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]
mov eax, dword [ebp - 0x368]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
shr eax, 0x10
je 0x4039d0
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 0x4039e5
cmp word [ebp - 0x23c], 0
je 0x403b3a
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x403900
mov ecx, 0x224c
mov dword [ebp - 0x3bc], edx
mov edi, ebx
mov word [ebp - 0x368], cx
lea ecx, [ebp - 0x366]
mov dword [ebp - 0x3c8], esi
jmp 0x403975
cmp ax, 9
je 0x403ac0
cmp ax, 0xa
jne 0x403a37
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
mov esi, dword [ebp - 0x3bc]
lea eax, [esi - 1]
test esi, esi
jle 0x403ad8
lea esi, [ebp - 0x246]
cmp ecx, esi
ja 0x403ad8
mov dword [ebp - 0x3bc], eax
movzx eax, word [edi]
add edi, 2
cmp ax, 0xd
je 0x403aa8
jbe 0x403930
cmp ax, 0x22
je 0x403a90
cmp ax, 0x5c
jne 0x403a2a
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x403950
mov eax, dword [ebp - 0x364]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_CloseHandle]
sub esp, 4
jmp 0x403889
movzx eax, bx
mov dword [esp], 0x40a5d5
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
mov edx, eax
mov eax, dword [ebp - 0x3c4]
mov dword [esp + 0x14], edx
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], 0x409010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x403780
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x403b30
mov esi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr si, 0xc
movzx esi, si
movzx edx, byte [esi + str.0123456789abcdefrootwinewinebus]
mov esi, eax
shr si, 8
and esi, 0xf
mov byte [ecx - 4], dl
movzx edx, byte [esi + str.0123456789abcdefrootwinewinebus]
mov esi, eax
and eax, 0xf
shr si, 4
movzx eax, byte [eax + str.0123456789abcdefrootwinewinebus]
and esi, 0xf
mov byte [ecx - 3], dl
movzx edx, byte [esi + str.0123456789abcdefrootwinewinebus]
mov byte [ecx - 1], al
mov byte [ecx - 2], dl
jmp 0x403950
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x403950
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x403950
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x403950
mov byte [ecx], 0x22
mov esi, dword [ebp - 0x3c8]
test eax, eax
jle 0x403b53
mov edi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], di
mov byte [eax], 0
lea eax, [ebp - 0x368]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
jmp 0x4039e5
xor eax, eax
jmp 0x4037bd
mov edx, 0x31
jmp 0x4037a0
mov byte [ecx], al
add ecx, 1
jmp 0x403950
mov eax, 0x224c
mov byte [ebp - 0x366], 0x22
lea ecx, [ebp - 0x366]
mov word [ebp - 0x368], ax
lea eax, [ecx + 1]
jmp 0x403af5