Function at 0x401b00
Capabilities:
Create thread
Query environment variable

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0xd8
mov eax, dword [ecx]
mov dword [ebp - 0xac], eax
xor eax, eax
mov edx, dword [eax + str.IPTip_Main_Window]
mov dword [ebp + eax - 0x64], edx
add eax, 4
cmp eax, 0x24
jb 0x401b21
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x8c], ebx
xor edi, edi
xor edx, edx
mov dword [ebp - 0x88], esi
xor eax, eax
mov dword [ebp - 0x84], edi
mov dword [ebp + eax - 0x40], edx
mov dword [ebp + eax - 0x3c], edx
add eax, 8
cmp eax, 0x28
jb 0x401b4f
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x94], edx
lea ebx, [ebp - 0x80]
xor edx, edx
mov dword [ebp - 0x90], ecx
xor eax, eax
mov dword [ebp + eax - 0x80], edx
mov dword [ebp + eax - 0x7c], edx
add eax, 8
cmp eax, 0x18
jb 0x401b76
mov dword [ebx + eax], 0
xor eax, eax
mov esi, dword [sym.imp.ucrtbase.dll_getenv]
mov dword [ebp - 0x9c], eax
xor eax, eax
mov dword [esp], str.SteamDeck
mov dword [0x4080e0], eax
call esi
test eax, eax
je 0x401f75
movzx edx, byte [eax]
sub edx, 0x31
jne 0x401bbf
movzx edx, byte [eax + 1]
xor eax, eax
test edx, edx
sete al
mov dword [esp], str.SteamAppId
mov dword [0x4080e4], eax
call esi
test eax, eax
mov edx, eax
je 0x401c23
mov esi, eax
mov edi, str.1182900
mov ecx, 8
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
jne 0x401c06
test byte [0x404010], 8
jne 0x401ff0
xor edi, edi
mov dword [0x4080e4], edi
mov dword [esp], edx
mov ecx, 0xa
xor esi, esi
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
call dword [sym.imp.ucrtbase.dll_strtol]
mov dword [section..bss], eax
test byte [0x404010], 8
jne 0x401f40
mov dword [esp], 0xffffffff
mov eax, 4
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x9c]
mov dword [esp + 8], eax
mov eax, 0x3e8
mov dword [esp + 4], eax
call dword [sym.imp.ntdll.dll_NtSetInformationProcess]
xor eax, eax
xor edx, edx
mov edi, dword [sym.imp.kernel32.dll_CreateEventW]
sub esp, 0x10
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp], 0
call edi
mov ecx, str.TABTIP_STARTED_EVENT
sub esp, 0x10
mov esi, eax
mov dword [esp + 0xc], ecx
xor eax, eax
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
mov dword [esp], 0
call edi
sub esp, 0x10
test esi, esi
mov edi, eax
je 0x40202c
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x40202c
test edi, edi
je 0x40202c
mov dword [esp], 0
xor eax, eax
mov dword [esp + 4], eax
call sym._CoInitializeEx_8
sub esp, 8
test eax, eax
js 0x40204d
mov dword [esp], 0x405b04
lea eax, [ebp - 0x98]
mov dword [esp + 0x10], eax
mov eax, 0x405b14
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
call sym._CoCreateInstance_20
sub esp, 0x14
test eax, eax
js 0x401f98
mov eax, section..data
mov edx, 1
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x90], edx
mov edx, dword [eax]
mov dword [esp + 8], ecx
xor ecx, ecx
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x9c]
sub esp, 0xc
test eax, eax
js 0x401f80
mov dword [esp], edi
mov eax, dword [sym.imp.kernel32.dll_SetEvent]
mov dword [ebp - 0xb0], eax
call eax
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0x64]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x3c], sym._WindowProc_16
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
sub esp, 4
mov dword [esp], eax
call sym._RegisterClassW_4
xor eax, eax
xor edx, edx
xor ecx, ecx
sub esp, 4
mov dword [esp + 0x2c], eax
mov eax, dword [ebp - 0xac]
mov dword [esp + 0x24], edx
mov edx, str.Input
mov dword [esp + 8], edx
lea edx, [ebp - 0x64]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, 4
mov dword [esp + 0x14], eax
mov eax, 4
mov dword [esp + 0x10], eax
mov eax, 0xcf0000
mov dword [esp + 0xc], eax
mov dword [esp + 4], edx
mov dword [esp], 0
call sym._CreateWindowExW_48
sub esp, 0x30
test eax, eax
je 0x40208b
mov dword [ebp - 0x84], eax
mov edx, dword [ebp - 0x9c]
xor eax, eax
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x8c]
mov dword [esp + 0xc], eax
mov eax, sym._tabtip_exit_watcher_4
mov dword [ebp - 0x88], edx
xor edx, edx
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], 0
mov dword [ebp - 0x8c], esi
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
jmp 0x401e66
mov dword [esp], ebx
call sym._TranslateMessage_4
sub esp, 4
mov dword [esp], ebx
call sym._DispatchMessageW_4
sub esp, 4
mov dword [esp], ebx
xor eax, eax
xor ecx, ecx
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
call sym._GetMessageW_16
sub esp, 0x10
test eax, eax
jne 0x401e50
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xb0]
mov dword [esp], esi
call eax
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax]
sub esp, 4
mov dword [esp], eax
call dword [ecx + 0xa4]
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax]
sub esp, 4
mov dword [esp], eax
call dword [ecx + 8]
sub esp, 4
call sym._CoUninitialize_0
mov edx, dword [ebp - 0xac]
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x401f20
mov dword [esp], eax
mov dword [ebp - 0xac], edx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [ebp - 0xac]
sub esp, 4
test esi, esi
jne 0x401f20
test edi, edi
je 0x401f0d
mov dword [esp], edi
mov dword [ebp - 0xac], edx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [ebp - 0xac]
sub esp, 4
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp], esi
mov dword [ebp - 0xac], edx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [ebp - 0xac]
sub esp, 4
jmp 0x401ef1
mov dword [esp], 3
mov eax, dword [0x4080e4]
mov dword [esp + 0x10], eax
mov eax, str.use_steam_osk_d_n
mov dword [esp + 0xc], eax
mov eax, str.tabtip_use_osk_check
mov dword [esp + 8], eax
mov eax, 0x404010
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
jmp 0x401c30
xor eax, eax
jmp 0x401bc6
test byte [0x404010], 2
jne 0x401fe0
mov edx, 0xffffffff
jmp 0x401ecb
test byte [0x404010], 2
je 0x401f89
mov dword [esp + 0x10], eax
mov ebx, str.Failed_to_create_IUIAutomation_interface__hr__x_n
mov dword [esp + 0xc], ebx
mov dword [esp], 1
mov eax, str.create_uia_event_handler
mov dword [esp + 8], eax
mov eax, 0x404010
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
mov edx, 0xffffffff
jmp 0x401ecb
mov dword [esp + 0x10], eax
mov eax, str.Failed_to_add_focus_changed_event_handler__hr__x_n
mov dword [esp + 0xc], eax
jmp 0x401fae
mov dword [esp + 0x10], edx
mov eax, str.Disabling_OSK_auto_popup_for_appid__s_n
mov dword [esp + 0xc], eax
mov eax, str.tabtip_use_osk_check
mov dword [esp + 8], eax
mov eax, 0x404010
mov dword [esp + 4], eax
mov dword [esp], 3
mov dword [ebp - 0xb0], edx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0xb0]
jmp 0x401bfe
test byte [0x404010], 2
jne 0x4020a3
mov eax, dword [ebp - 0x9c]
mov edx, 0xffffffff
test eax, eax
jne 0x401ed5
jmp 0x401eed
test byte [0x404010], 2
je 0x401f89
mov eax, str.CoInitialize_failed__n
mov dword [esp + 0xc], eax
mov dword [esp], 1
mov ecx, str.wWinMain
mov ebx, 0x404010
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
call sym._wine_dbg_log.constprop.0
mov edx, 0xffffffff
jmp 0x401ecb
test byte [0x404010], 2
je 0x401f89
mov eax, str.Failed_to_create_hwnd__n
mov dword [esp + 0xc], eax
jmp 0x402063
mov edx, str.Failed_to_create_event_handles__n
mov ecx, str.wWinMain
mov dword [esp + 0xc], edx
mov ebx, 0x404010
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x402035