Function at 0x401380
Capabilities:
Create process on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
mov eax, 0x21a0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
call fcn.00401048
sub esp, eax
lea esi, [ebp - 0x2018]
mov ebx, dword [ecx + 4]
mov dword [esp + 8], 0x2008
mov dword [esp + 4], 0
mov dword [esp], esi
call sym._memset
mov dword [ebp - 0x2154], 0
mov dword [ebp - 0x2150], 0
mov dword [ebp - 0x214c], 0
mov dword [ebp - 0x2148], 0
mov dword [ebp - 0x2170], 0
test byte [0x404024], 8
jne 0x401870
test ebx, ebx
je 0x40171c
mov eax, dword [ebx]
lea edx, [ebp - 0x2154]
mov dword [esp], ebx
mov dword [esp + 4], edx
call dword [eax + 0x12c]
sub esp, 8
test eax, eax
js 0x401830
mov eax, dword [ebx]
lea edx, [ebp - 0x216c]
mov dword [esp], ebx
mov dword [esp + 4], edx
call dword [eax + 0xd4]
sub esp, 8
test eax, eax
js 0x4017f0
mov eax, dword [ebx]
lea edx, [ebp - 0x2170]
mov dword [esp], ebx
mov dword [esp + 4], edx
call dword [eax + 0xdc]
sub esp, 8
test eax, eax
js 0x4017b0
mov eax, dword [ebx]
lea edx, [ebp - 0x2174]
mov dword [esp], ebx
mov dword [esp + 4], edx
call dword [eax + 0xe8]
sub esp, 8
test eax, eax
js 0x401770
lea edi, [ebp - 0x2168]
mov dword [esp], edi
call dword [sym.imp.oleaut32.dll_VariantInit]
mov eax, dword [ebx]
sub esp, 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x755e
mov dword [esp], ebx
call dword [eax + 0x34]
sub esp, 0x10
test eax, eax
js 0x401730
xor ebx, ebx
cmp word [ebp - 0x2168], 0xb
jne 0x4014d7
xor ebx, ebx
cmp word [ebp - 0x2160], 0xffff
sete bl
mov dword [esp], edi
call dword [sym.imp.oleaut32.dll_VariantClear]
mov edi, dword [0x404104]
sub esp, 4
test edi, edi
je 0x4016f0
cmp dword [ebp - 0x216c], 0xc354
je 0x4019b0
mov edx, dword [0x404058]
test edx, edx
jne 0x4018a0
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x4016fd
test eax, eax
je 0x4016fd
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.shell32.dll_ShellExecuteW]
sub esp, 0x18
test byte [0x404024], 8
je 0x40170a
lea esi, cs:[esi]
mov eax, dword [ebp - 0x2174]
mov dword [esp], str.__d__d____d__d_
mov dword [ebp - 0x217c], eax
mov eax, dword [ebp - 0x2148]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x214c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2150]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2154]
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf
mov dword [esp + 0x10], sym._str_id_pair_compare
mov dword [ebp - 0x2184], eax
mov eax, dword [ebp - 0x216c]
mov dword [esp + 0xc], 8
mov dword [ebp - 0x2144], eax
lea eax, [ebp - 0x2144]
mov dword [esp + 8], 0x29
mov dword [esp + 4], 0x407d40
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_bsearch]
mov dword [ebp - 0x2178], 0x4050a6
test eax, eax
je 0x401600
mov eax, dword [eax + 4]
mov dword [ebp - 0x2178], eax
mov eax, dword [ebp - 0x216c]
mov esi, dword [ebp - 0x2170]
mov dword [ebp - 0x2180], eax
test esi, esi
je 0x401b80
mov eax, esi
shr eax, 0x10
je 0x401940
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x401955
cmp word [esi], 0
je 0x401b90
mov edx, eax
lea eax, [eax + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x401650
mov ecx, 0x224c
mov dword [ebp - 0x2188], ebx
mov word [ebp - 0x2144], cx
lea ecx, [ebp - 0x2142]
jmp 0x4016bb
cmp ax, 9
je 0x401b20
cmp ax, 0xa
jne 0x401a9d
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
test edx, edx
jle 0x401b38
lea edi, [ebp - 0x2022]
cmp ecx, edi
ja 0x401b38
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x401b08
jbe 0x401680
cmp ax, 0x22
je 0x401af0
cmp ax, 0x5c
jne 0x401a90
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4016a0
mov eax, dword [0x404058]
test eax, eax
jne 0x4018a0
test byte [0x404024], 8
jne 0x401568
mov eax, dword [ebp - 0x2170]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_SysFreeString]
sub esp, 4
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
test byte [0x404024], 2
je 0x4014be
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_get_cached_property_value_for_UIA_ValueIsReadOnlyPropertyId__hr__lx_n
mov dword [esp + 8], str.FocusChangedHandler_HandleFocusChangedEvent
mov dword [esp + 4], 0x404024
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4014be
test byte [0x404024], 2
je 0x401485
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_get_cached_has_keyboard_focus_property__hr__lx_n
mov dword [esp + 8], str.FocusChangedHandler_HandleFocusChangedEvent
mov dword [esp + 4], 0x404024
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401485
test byte [0x404024], 2
je 0x401465
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_get_cached_name__hr__lx_n
mov dword [esp + 8], str.FocusChangedHandler_HandleFocusChangedEvent
mov dword [esp + 4], 0x404024
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401465
test byte [0x404024], 2
je 0x401445
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_get_cached_control_type__hr__lx_n
mov dword [esp + 8], str.FocusChangedHandler_HandleFocusChangedEvent
mov dword [esp + 4], 0x404024
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401445
test byte [0x404024], 2
je 0x401425
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_get_cached_bounding_rect__hr__lx_n
mov dword [esp + 8], str.FocusChangedHandler_HandleFocusChangedEvent
mov dword [esp + 4], 0x404024
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401425
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.sender__p_n
mov dword [esp + 8], str.FocusChangedHandler_HandleFocusChangedEvent
mov dword [esp + 4], 0x404024
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4013fd
mov dword [ebp - 0x18], esi
mov dword [esp + 8], str.steam:__close_keyboard
mov dword [esp + 4], 0x4051fc
mov dword [esp], esi
call dword [sym.imp.user32.dll_wsprintfW]
mov ecx, dword [0x404100]
mov dword [ebp - 0x14], 0
add eax, eax
add dword [ebp - 0x18], eax
test ecx, ecx
jne 0x401900
test byte [0x404024], 8
jne 0x401910
mov dword [0x404058], 0
mov edx, dword [0x404104]
test edx, edx
jne 0x40150f
jmp 0x4016fd
mov edx, str.AppID
mov eax, esi
call sym._osk_link_add_int_arg
jmp 0x4018d2
mov dword [esp + 0xc], str.Keyboard_down__n
mov dword [esp + 8], str.FocusChangedHandler_HandleFocusChangedEvent
mov dword [esp + 4], 0x404024
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4018db
movzx esi, si
mov dword [esp], str._04x
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf
mov edx, eax
mov eax, dword [ebp - 0x217c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x2184]
mov dword [esp + 0xc], str.name__s__control_type__d___s___rect__s__has_kbd_focus__d__is_readonly__d_n
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x2178]
mov dword [esp + 8], str.FocusChangedHandler_HandleFocusChangedEvent
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x2180]
mov dword [esp + 4], 0x404024
mov dword [esp + 0x14], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x40170a
mov ecx, dword [ebp - 0x2174]
test ecx, ecx
je 0x401501
test ebx, ebx
jne 0x401501
mov dword [ebp - 0x18], esi
mov dword [esp + 8], str.steam:__open_keyboard
mov dword [esp + 4], 0x4051fc
mov dword [esp], esi
call dword [sym.imp.user32.dll_wsprintfW]
mov ecx, dword [0x404100]
mov dword [ebp - 0x14], 0
add eax, eax
add dword [ebp - 0x18], eax
test ecx, ecx
jne 0x401bd7
mov ecx, dword [ebp - 0x2154]
mov eax, dword [ebp - 0x2150]
or eax, ecx
or eax, dword [ebp - 0x214c]
or eax, dword [ebp - 0x2148]
je 0x401a74
mov edx, str.XPosition
mov eax, esi
call sym._osk_link_add_int_arg
mov ecx, dword [ebp - 0x2150]
mov edx, str.YPosition
mov eax, esi
call sym._osk_link_add_int_arg
mov ecx, dword [ebp - 0x214c]
mov edx, str.Width
mov eax, esi
sub ecx, dword [ebp - 0x2154]
call sym._osk_link_add_int_arg
mov ecx, dword [ebp - 0x2148]
mov edx, str.Height
mov eax, esi
sub ecx, dword [ebp - 0x2150]
call sym._osk_link_add_int_arg
xor ecx, ecx
mov edx, str.Mode
mov eax, esi
call sym._osk_link_add_int_arg
test byte [0x404024], 8
jne 0x401bae
mov dword [0x404058], 1
jmp 0x4018e5
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x401b70
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdef]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdef]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdef]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdef]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x4016a0
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4016a0
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4016a0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4016a0
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x2188]
test eax, eax
jle 0x401ba9
mov edi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], di
mov byte [eax], 0
lea eax, [ebp - 0x2144]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
jmp 0x401955
mov byte [ecx], al
inc ecx
jmp 0x4016a0
mov edx, str._null_
jmp 0x401955
mov esi, 0x224c
mov byte [ebp - 0x2142], 0x22
lea ecx, [ebp - 0x2142]
mov word [ebp - 0x2144], si
lea eax, [ecx + 1]
jmp 0x401b55
mov dword [esp + 0xc], str.Keyboard_up__n
mov dword [esp + 8], str.FocusChangedHandler_HandleFocusChangedEvent
mov dword [esp + 4], 0x404024
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x401a81
mov edx, str.AppID
mov eax, esi
call sym._osk_link_add_int_arg
jmp 0x4019fc