Function at 0x402950
Capabilities:
Query environment variable

Disassembly:
push ebp
xor eax, eax
mov ecx, 0xa
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x34]
push ebx
sub esp, 0x88
mov dword [ebp - 0x58], 0
mov ebx, dword [sym.imp.ucrtbase.dll_getenv]
rep stosd dword es:[edi], eax
mov dword [0x404058], 0
mov dword [esp], str.SteamDeck
call ebx
xor edx, edx
test eax, eax
je 0x4029a2
movzx edx, byte [eax]
sub edx, 0x31
je 0x402d8d
test edx, edx
sete dl
movzx edx, dl
mov dword [0x404104], edx
mov dword [esp], str.SteamAppId
call ebx
mov ebx, eax
test eax, eax
je 0x402a0b
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
je 0x402e44
mov edi, str.752590
mov ecx, 7
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
je 0x402e44
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strtol]
mov dword [0x404100], eax
test byte [0x404024], 8
jne 0x402d9d
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], eax
mov dword [esp + 4], 0x3e8
mov dword [esp], 0xffffffff
call dword [sym.imp.ntdll.dll_NtSetInformationProcess]
sub esp, 0x10
mov dword [esp + 0xc], str.TABTIP_STARTED_EVENT
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventW]
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
sub esp, 0x10
test edx, edx
je 0x402efa
test eax, eax
je 0x402efa
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
sub esp, 8
test eax, eax
js 0x402ec4
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 0
sub esp, 4
mov dword [ebp - 0x50], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x406950
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x405aa0
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
js 0x402dcf
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x54]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x50]
sub esp, 8
mov esi, eax
test eax, eax
js 0x402ba9
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x50]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x54]
sub esp, 8
mov esi, eax
test eax, eax
js 0x402ba9
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x24]
sub esp, 8
mov esi, eax
test eax, eax
js 0x402ba9
mov ebx, 0x7531
xor edi, edi
mov eax, dword [ebp - 0x54]
mov edx, dword [eax]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 8
mov esi, eax
test eax, eax
js 0x402e5c
inc edi
cmp edi, 5
je 0x402b7f
mov ebx, dword [edi*4 + 0x407d20]
jmp 0x402b54
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
mov edx, dword [eax]
mov dword [esp + 8], 0x404000
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x9c]
sub esp, 0xc
mov esi, eax
test eax, eax
js 0x402e0a
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x402bbb
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x402bcd
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
test esi, esi
js 0x402e00
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], sym._tabtip_win_proc_16
mov dword [ebp - 0x10], str.IPTip_Main_Window
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x34]
mov dword [esp], eax
call dword [sym.imp.user32.dll_RegisterClassW]
mov eax, dword [ebp + 8]
sub esp, 4
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0xcf0000
mov dword [esp + 8], str.Input
mov dword [esp + 4], str.IPTip_Main_Window
mov dword [esp], 0
call dword [sym.imp.user32.dll_CreateWindowExW]
sub esp, 0x30
test eax, eax
je 0x402f11
lea esi, cs:[esi]
nop
lea eax, [ebp - 0x5c]
mov dword [esp + 0x10], 0x1cff
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 1
call dword [sym.imp.user32.dll_MsgWaitForMultipleObjects]
sub esp, 0x14
test eax, eax
je 0x402d96
mov esi, dword [sym.imp.user32.dll_PeekMessageW]
xor edi, edi
lea ebx, [ebp - 0x50]
jmp 0x402cc7
cmp dword [ebp - 0x4c], 0x12
jne 0x402d70
mov edi, 1
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call esi
sub esp, 0x14
test eax, eax
jne 0x402cb8
mov edx, eax
test edi, edi
je 0x402c70
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x402d26
mov ecx, dword [eax]
mov dword [ebp - 0x64], edx
mov dword [esp], eax
call dword [ecx + 0xa4]
mov eax, dword [ebp - 0x58]
sub esp, 4
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x64]
sub esp, 4
mov dword [ebp - 0x64], edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x64]
test eax, eax
je 0x402d48
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [ebp - 0x64]
sub esp, 4
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x402d61
mov dword [ebp - 0x60], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [ebp - 0x60]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esp], ebx
call dword [sym.imp.user32.dll_TranslateMessage]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.user32.dll_DispatchMessageW]
sub esp, 4
jmp 0x402cc7
movzx edx, byte [eax + 1]
jmp 0x40299a
xor edx, edx
jmp 0x402cfd
mov eax, dword [0x404104]
mov dword [esp + 0xc], str.use_steam_osk_d_n
mov dword [esp + 8], str.tabtip_use_osk_check
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x404024
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x402a18
test byte [0x404024], 2
je 0x402e00
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_create_IUIAutomation_interface__hr__lx_n
mov dword [esp + 8], str.add_uia_event_handler
mov dword [esp + 4], 0x404024
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
mov edx, 0xffffffff
jmp 0x402cfd
test byte [0x404024], 2
je 0x402ba9
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_add_focus_changed_event_handler__hr__lx_n
mov dword [esp + 8], str.add_uia_event_handler
mov dword [esp + 4], 0x404024
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x402ba9
test byte [0x404024], 8
jne 0x402e9a
mov dword [0x404104], 0
jmp 0x4029ed
test byte [0x404024], 2
je 0x402ba9
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.Failed_to_add_prop_id__d_to_cache_req__hr__lx_n
mov dword [esp + 8], str.add_uia_event_handler
mov dword [esp + 4], 0x404024
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x402ba9
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.Disabling_OSK_auto_popup_for_appid__s_n
mov dword [esp + 8], str.tabtip_use_osk_check
mov dword [esp + 4], 0x404024
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x402e4d
test byte [0x404024], 2
je 0x402e00
mov dword [esp + 0xc], str.CoInitialize_failed__n
mov dword [esp + 8], str.wWinMain
mov dword [esp + 4], 0x404024
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x402e00
test byte [0x404024], 2
je 0x402e00
mov dword [esp + 0xc], str.Failed_to_create_event_handles__n
jmp 0x402ed9
test byte [0x404024], 2
jne 0x402f3b
mov eax, dword [ebp + 8]
mov dword [esp], str.IPTip_Main_Window
mov dword [esp + 4], eax
call dword [sym.imp.user32.dll_UnregisterClassW]
mov edx, 0xffffffff
sub esp, 8
jmp 0x402cfd
mov dword [esp + 0xc], str.Failed_to_create_hwnd__n
mov dword [esp + 8], str.wWinMain
mov dword [esp + 4], 0x404024
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x402f1a