Function at 0x4083f0
Capabilities:
Check if process is running under wine
Contain obfuscated stackstrings
Create process on windows
Create thread
Query or enumerate registry value
Set registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58c
mov ebx, dword [ebp + 8]
movzx ecx, word [ebx]
mov edx, ebx
mov eax, ecx
test cx, cx
je 0x409b01
nop
cmp ax, 0x20
je 0x40853f
cmp ax, 9
je 0x40853f
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x408410
mov dword [ebp - 0x52c], 0
cmp cx, 0x3d
je 0x408446
cmp cx, 0x2c
jne 0x408459
movzx eax, word [ebx + 2]
cmp ax, 0x2c
je 0x408459
test ax, ax
jne 0x409437
mov dword [ebp - 0x46c], 0x208
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetThreadDesktop]
sub esp, 4
test eax, eax
je 0x4084ae
xor ebx, ebx
mov dword [esp + 0xc], 0x104
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0x41b000
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetUserObjectInformationW]
sub esp, 0x14
test eax, eax
jne 0x409283
lea eax, [ebp - 0x360]
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0x51c], eax
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareWineExplorer
mov dword [esp], 0x80000001
call esi
sub esp, 0xc
test eax, eax
lea eax, [ebp - 0x46c]
mov dword [ebp - 0x524], eax
jne 0x408598
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], 0x41b000
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], str.Desktop
mov eax, dword [ebp - 0x360]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
mov eax, dword [ebp - 0x360]
jne 0x40858e
cmp word [section..bss], 0
je 0x40858e
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push eax
jmp 0x4092be
lea eax, [edx + 2]
mov word [edx], 0
mov dword [ebp - 0x52c], eax
movzx eax, word [edx + 2]
mov edx, dword [ebp - 0x52c]
test ax, ax
jne 0x408574
movzx ecx, word [ebx]
jmp 0x408430
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
je 0x40855c
cmp ax, 0x20
je 0x408568
cmp ax, 9
je 0x408568
mov dword [ebp - 0x52c], edx
movzx ecx, word [ebx]
jmp 0x40843a
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push eax
lea eax, [ebp - 0x50c]
mov dword [ebp - 0x528], eax
mov dword [esp], eax
call dword [sym.imp.rpcrt4.dll_UuidCreate]
push ecx
test byte [0x411024], 8
jne 0x409513
mov eax, dword [sym.imp.ucrtbase.dll_wcschr]
xor edx, edx
mov dword [ebp - 0x538], edx
mov dword [ebp - 0x530], edx
mov dword [ebp - 0x520], eax
mov ecx, dword [ebp - 0x51c]
xor eax, eax
lea esi, [esi]
movzx edx, word [eax + 0x4143b0]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x4085e0
lea ebx, [ebp - 0x510]
mov dword [esp + 4], str.SoftwareWineDrivers
mov dword [esp + 8], ebx
mov dword [esp], 0x80000001
call esi
sub esp, 0xc
test eax, eax
je 0x4099b2
mov dword [ebp - 0x534], ebx
mov esi, dword [ebp - 0x51c]
jmp 0x408654
mov dword [esp + 8], eax
lea eax, [ebp - 0x4bc]
mov dword [esp + 4], str.Unknown_error___lu_.
mov dword [esp], eax
call sym._sprintf.constprop.0
test ebx, ebx
je 0x4086ff
mov esi, ebx
mov dword [esp + 4], 0x2c
xor ebx, ebx
mov dword [esp], esi
mov eax, dword [ebp - 0x520]
call eax
test eax, eax
je 0x408675
xor edx, edx
lea ebx, [eax + 2]
mov word [eax], dx
mov dword [esp + 4], str.null
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x408799
lea eax, [ebp - 0x4fc]
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.wine_s.drv
mov dword [esp + 4], 0x20
mov dword [esp], eax
call dbg.swprintf
lea eax, [ebp - 0x4fc]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
jne 0x408c55
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
cmp eax, 0x7e
je 0x408710
cmp eax, 0x45a
jne 0x408630
lea eax, [ebp - 0x4bc]
mov esi, str.Make_sure_that_your_X_server_is_running_and_that__DISPLAY_is_set_correctly.
mov ecx, 0x13
mov edi, eax
rep movsd dword es:[edi], dword [esi]
test ebx, ebx
jne 0x408652
mov ebx, dword [ebp - 0x534]
xor esi, esi
xor edi, edi
jmp 0x4087d7
mov dword [ebp - 0x4bc], 0x20656854
mov eax, 0x21
mov dword [ebp - 0x4b8], 0x70617267
mov dword [ebp - 0x4b4], 0x73636968
mov dword [ebp - 0x4b0], 0x69726420
mov dword [ebp - 0x4ac], 0x20726576
mov dword [ebp - 0x4a8], 0x6d207369
mov dword [ebp - 0x4a4], 0x69737369
mov dword [ebp - 0x4a0], 0x202e676e
mov dword [ebp - 0x49c], 0x63656843
mov dword [ebp - 0x498], 0x6f79206b
mov dword [ebp - 0x494], 0x62207275
mov dword [ebp - 0x490], 0x646c6975
mov word [ebp - 0x48c], ax
jmp 0x40864a
mov edi, dword [ebp - 0x528]
mov ecx, 4
mov ebx, dword [ebp - 0x534]
rep stosd dword es:[edi], eax
test byte [0x411024], 8
jne 0x409a87
lea eax, [ebp - 0x4fc]
mov dword [esp + 4], str.null
xor esi, esi
mov edi, 1
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscpy]
test byte [0x411024], 8
jne 0x408c02
movzx eax, byte [ebp - 0x4fd]
mov dword [esp + 0x34], eax
movzx eax, byte [ebp - 0x4fe]
mov dword [esp + 0x30], eax
movzx eax, byte [ebp - 0x4ff]
mov dword [esp + 0x2c], eax
movzx eax, byte [ebp - 0x500]
mov dword [esp + 0x28], eax
movzx eax, byte [ebp - 0x501]
mov dword [esp + 0x24], eax
movzx eax, byte [ebp - 0x502]
mov dword [esp + 0x20], eax
movzx eax, byte [ebp - 0x503]
mov dword [esp + 0x1c], eax
movzx eax, byte [ebp - 0x504]
mov dword [esp + 0x18], eax
movzx eax, word [ebp - 0x506]
mov dword [esp + 0x14], eax
movzx eax, word [ebp - 0x508]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x50c]
mov dword [esp + 8], str.SystemCurrentControlSetControlVideo_08x__04x__04x__02x_02x__02x_02x_02x_02x_02x_02x0000
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x86
mov eax, dword [ebp - 0x524]
mov dword [esp], eax
call dbg.swprintf
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x524]
mov dword [esp], 0x80000002
mov dword [esp + 4], eax
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
sub esp, 0x24
test eax, eax
jne 0x40893e
mov ebx, dword [ebp - 0x510]
test esi, esi
jne 0x4088de
test edi, edi
je 0x4093f6
cmp word [ebp - 0x4fc], 0
lea eax, [ebp - 0x4fc]
je 0x4088f9
nop
add eax, 2
cmp word [eax], 0
jne 0x4088f0
lea ecx, [ebp - 0x4fc]
mov dword [esp + 0xc], 1
sub eax, ecx
mov dword [esp + 0x10], ecx
add eax, 2
mov dword [esp + 4], str.GraphicsDriver
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp], ebx
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov eax, dword [ebp - 0x510]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push edi
mov ebx, dword [ebp - 0x530]
test ebx, ebx
je 0x409566
mov edx, dword [ebp - 0x518]
test edx, edx
je 0x408964
mov ebx, dword [ebp - 0x514]
test ebx, ebx
jne 0x409a09
mov eax, dword [ebp - 0x528]
mov ebx, dword [sym.imp.user32.dll_CreateWindowExW]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x86000000
mov dword [esp + 8], 0
mov dword [esp + 4], 0x8001
mov dword [esp], 0
call ebx
mov dword [ebp - 0x528], eax
sub esp, 0x30
test eax, eax
jne 0x408c64
xor eax, eax
mov ebx, dword [0x41c534]
xor esi, esi
mov dword [ebp - 0x528], eax
nop
mov eax, dword [ebp - 0x52c]
test eax, eax
je 0x408a70
lea edx, [ebp - 0x35c]
mov ecx, 0x10
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x360], 0x44
test byte [0x411024], 8
jne 0x409692
mov eax, dword [ebp - 0x524]
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0x51c]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x52c]
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
jne 0x40966f
mov eax, dword [ebp - 0x51c]
mov dword [0x41b20c], 0x414220
mov dword [0x41b210], 0x414208
mov dword [0x41b214], 0x4141c0
mov dword [esp], eax
call dword [0x41c5a8]
sub esp, 4
test eax, eax
js 0x408acd
mov eax, dword [ebp - 0x360]
mov edx, dword [eax]
mov dword [esp + 0xc], 0x41b218
mov dword [esp + 8], 0x41623c
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x20]
sub esp, 0x10
mov dword [esp], 0
call ebx
mov dword [0x41b220], 0x414360
sub esp, 4
mov dword [esp], 0x41b224
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov eax, dword [0x41b224]
sub esp, 4
mov dword [eax + 0x18], str..._wine_programs_explorer_desktop.c:_shellwindows.cs
mov dword [esp + 0x10], 0x41101c
mov dword [esp + 0xc], 1
mov dword [esp + 8], 4
mov dword [esp + 4], 0x411018
mov dword [esp], 0x415a2c
call dword [0x41c538]
sub esp, 0x14
test eax, eax
js 0x408bc8
mov edi, dword [ebp - 0x528]
test edi, edi
je 0x408baf
test byte [0x411024], 8
jne 0x409213
mov dword [ebp - 0x520], esi
mov ebx, dword [sym.imp.user32.dll_GetMessageW]
mov edi, dword [sym.imp.user32.dll_DispatchMessageW]
mov esi, dword [ebp - 0x51c]
jmp 0x408b78
mov dword [esp], esi
call edi
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call ebx
sub esp, 0x10
test eax, eax
jne 0x408b70
mov esi, dword [ebp - 0x520]
test byte [0x411024], 8
jne 0x409246
test esi, esi
je 0x408bbb
xor ecx, ecx
mov dword [esp], ecx
call esi
push ebx
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_ExitProcess]
test byte [0x411024], 4
je 0x408b37
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_register_ShellWindows_object:__08lx_n
mov dword [esp + 8], str.shellwindows_init
mov dword [esp + 4], global___dbch
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x408b37
lea eax, [ebp - 0x4fc]
call sym._wine_dbgstr_wn.constprop.0
mov dword [ebp - 0x520], eax
mov eax, dword [ebp - 0x528]
call sym._wine_dbgstr_guid
mov edx, dword [ebp - 0x520]
mov dword [esp + 0xc], str.display__s_driver__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 8], str.load_graphics_driver
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x4087e4
mov ebx, dword [ebp - 0x534]
mov esi, eax
xor edi, edi
jmp 0x4087d7
xor eax, eax
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x1c], 0x64
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], 0x64
mov dword [esp + 0xc], 0x86000000
mov dword [esp + 4], str.Message
mov dword [esp], eax
call ebx
sub esp, 0x30
mov dword [esp + 8], dbg.desktop_wnd_proc
mov dword [esp + 4], 0xfffffffc
mov edi, dword [ebp - 0x528]
mov dword [esp], edi
call dword [sym.imp.user32.dll_SetWindowLongW]
sub esp, 0xc
mov dword [0x41b208], eax
xor eax, eax
mov dword [esp + 4], 0x7f05
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadIconW]
push edx
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], edi
call dword [sym.imp.user32.dll_SendMessageW]
mov eax, dword [ebp - 0x530]
sub esp, 0x10
cmp word [eax], 0
je 0x409b0e
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x408d20
mov ecx, dword [ebp - 0x530]
sub eax, ecx
add eax, 0x22
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, dword [ebp - 0x530]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x409b0e
nop
movzx edx, word [ecx + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x408d50
mov dword [esp + 4], 0x413fd4
mov dword [esp], ebx
call dbg.lstrcatW
push eax
push eax
mov dword [esp + 4], str.Wine_desktop
mov dword [esp], ebx
call dbg.lstrcatW
push eax
push eax
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x528]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetWindowTextW]
push eax
push eax
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
mov edi, dword [sym.imp.user32.dll_GetSystemMetrics]
mov dword [esp], 0x4f
call edi
push edx
mov ebx, edi
mov dword [ebp - 0x520], eax
mov dword [esp], 0x4e
call edi
push ecx
mov edi, eax
mov dword [esp], 0x4d
mov dword [ebp - 0x534], ebx
call ebx
push ebx
mov ebx, eax
mov dword [esp], 0x4c
mov eax, dword [ebp - 0x534]
call eax
xor ecx, ecx
push edx
mov dword [esp + 0x18], 0x40
mov edx, dword [ebp - 0x520]
mov dword [esp + 0x10], edi
xor edi, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], ebx
xor ebx, ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x528]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetWindowPos]
lea eax, [ebp - 0x4fc]
sub esp, 0x1c
mov dword [esp + 0x14], eax
mov eax, dword [sym.imp.kernel32.dll_CreateThread]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], sym._clipboard_thread_4
mov dword [esp + 4], edi
mov dword [esp], edi
mov dword [ebp - 0x54c], eax
call eax
sub esp, 0x18
test eax, eax
je 0x408e61
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push eax
mov eax, dword [sym.imp.user32.dll_SystemParametersInfoW]
xor edi, edi
mov dword [esp], 0x14
lea ebx, [ebp - 0x35c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], edi
mov dword [esp + 4], edi
mov dword [ebp - 0x548], eax
call eax
xor eax, eax
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.user32.dll_ClipCursor]
mov ecx, 0xd2
push eax
mov eax, dword [ebp - 0x514]
mov edi, dword [ebp - 0x51c]
mov dword [ebp - 0x53c], esi
mov dword [ebp - 0x540], eax
mov eax, dword [ebp - 0x518]
mov esi, dword [ebp - 0x524]
mov dword [ebp - 0x544], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, ebx
mov dword [ebp - 0x360], 0x348
shr eax, 0x10
mov dword [ebp - 0x530], eax
xor eax, eax
jmp 0x408f34
test byte [0x411024], 8
jne 0x408ff8
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x10000009
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.user32.dll_ChangeDisplaySettingsExW]
sub esp, 0x14
test eax, eax
je 0x408f2e
test byte [0x411024], 2
jne 0x409196
mov eax, dword [ebp - 0x520]
lea edi, [eax + 1]
mov dword [ebp - 0x520], edi
mov dword [esp + 0xc], 0
mov ecx, dword [ebp - 0x51c]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], 0
call dword [sym.imp.user32.dll_EnumDisplayDevicesW]
sub esp, 0x10
test eax, eax
je 0x409101
xor eax, eax
mov edi, esi
mov ecx, 0x37
mov esi, 0xdc
rep stosd dword es:[edi], eax
mov word [ebp - 0x428], si
lea esi, [ebp - 0x46c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.user32.dll_EnumDisplaySettingsExW]
sub esp, 0x10
test eax, eax
jne 0x408ee8
test byte [0x411024], 2
je 0x408f2e
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Failed_to_query_current_display_settings_for__s._n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.initialize_display_settings
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x408f2e
mov dword [ebp - 0x4bc], 0
lea edi, [ebp - 0x4bc]
mov dword [ebp - 0x4b8], 0
mov dword [ebp - 0x4b4], 0
mov dword [ebp - 0x4b0], 0
mov dword [ebp - 0x4ac], 0
mov dword [ebp - 0x4a8], 0
mov dword [ebp - 0x4a4], 0
mov dword [ebp - 0x4a0], 0
test byte [ebp - 0x424], 0x20
jne 0x4091e2
mov dword [esp + 0x18], edi
imul eax, dword [ebp - 0x418], 0x5a
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x3b4]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x3c4]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3bc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3c0]
mov dword [esp], str._ux_u__ubits__uHz_rotated__u_degrees_s
mov dword [esp + 4], eax
call dbg.wine_dbg_sprintf
mov ecx, dword [ebp - 0x530]
mov edi, eax
test ecx, ecx
je 0x4091ca
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push edx
push edx
test eax, eax
jne 0x409279
mov eax, ebx
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Device__s_current_display_mode__s._n
mov dword [esp + 8], str.initialize_display_settings
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x408ef5
cmp dword [0x411020], 0
mov dword [ebp - 0x524], esi
mov esi, dword [ebp - 0x53c]
je 0x40990a
call dbg.initialize_appbar
mov eax, dword [0x411020]
xor edx, edx
test eax, eax
cmove edx, dword [ebp - 0x538]
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 8], edx
call dbg.initialize_systray
cmp dword [0x411020], 0
mov ebx, dword [0x41c534]
je 0x4096ca
mov dword [esp], str.shell32.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
push esi
xor esi, esi
test eax, eax
je 0x4089f0
mov dword [esp + 4], 0xbc
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
push ecx
push ecx
test eax, eax
je 0x4089f0
mov dword [esp], 1
call eax
push edx
jmp 0x4089f0
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Failed_to_initialize_registry_display_settings_for__s._n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.initialize_display_settings
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x408f2e
movzx eax, bx
mov dword [esp], 0x412355
mov dword [esp + 4], eax
call dbg.wine_dbg_sprintf
jmp 0x4090d0
mov eax, dword [ebp - 0x41c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x420]
mov dword [esp + 8], str._at___d__d_
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x20
mov dword [esp], edi
call sym._snprintf.constprop.0
jmp 0x40905b
mov eax, dword [ebp - 0x528]
mov dword [esp + 0xc], str.desktop_message_loop_starting_on_hwnd__p_n
mov dword [esp + 8], global___func__.20
mov dword [esp + 0x10], eax
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x408b4e
mov eax, dword [ebp - 0x528]
mov dword [esp + 0xc], str.desktop_message_loop_exiting_for_hwnd__p_n
mov dword [esp + 8], global___func__.20
mov dword [esp + 0x10], eax
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x408baf
mov eax, 0x41234b
jmp 0x4090d0
mov dword [esp + 4], str.Default
mov dword [esp], section..bss
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
je 0x4084ae
lea eax, [ebp - 0x360]
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0x51c], eax
lea eax, [ebp - 0x46c]
mov dword [ebp - 0x524], eax
lea ecx, [ebp - 0x514]
lea edx, [ebp - 0x518]
mov eax, section..bss
call dbg.get_default_desktop_size
test eax, eax
jne 0x4092e6
xor eax, eax
mov dword [ebp - 0x514], eax
mov dword [ebp - 0x518], eax
mov eax, dword [sym.imp.ucrtbase.dll_wcschr]
xor ebx, ebx
mov dword [ebp - 0x530], 0x41b000
mov dword [ebp - 0x520], eax
mov dword [ebp - 0x360], 4
lea edi, [ebp - 0x4bc]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SoftwareWineExplorerDesktops
mov dword [esp], 0x80000001
call esi
sub esp, 0xc
test eax, eax
jne 0x4094e7
mov eax, dword [ebp - 0x51c]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x524]
mov dword [esp + 0xc], 0x10
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.EnableShell
mov eax, dword [ebp - 0x530]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4bc]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegGetValueW]
sub esp, 0x1c
test eax, eax
mov eax, dword [ebp - 0x4bc]
mov dword [esp], eax
jne 0x4094e0
call dword [sym.imp.advapi32.dll_RegCloseKey]
push edi
mov eax, dword [ebp - 0x46c]
mov dword [ebp - 0x538], eax
lea eax, [ebp - 0x50c]
mov dword [ebp - 0x528], eax
mov dword [esp], eax
call dword [sym.imp.rpcrt4.dll_UuidCreate]
push eax
test byte [0x411024], 8
jne 0x40952e
mov eax, dword [ebp - 0x51c]
lea ecx, [ebp - 0x15a]
test ebx, ebx
jne 0x4093de
jmp 0x4085d4
add eax, 2
add ebx, 2
mov word [eax - 2], dx
cmp eax, ecx
je 0x4093e6
movzx edx, word [ebx]
test dx, dx
jne 0x4093d0
mov word [eax], 0
lea ebx, [ebp - 0x510]
jmp 0x408619
lea edi, [ebp - 0x4bc]
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0x10], edi
add eax, 1
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], str.DriverError
mov dword [esp], ebx
call dword [sym.imp.advapi32.dll_RegSetValueExA]
sub esp, 0x18
jmp 0x40892e
lea eax, [ebx + 2]
mov dword [ebp - 0x530], eax
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_wcschr]
mov dword [esp + 4], 0x2c
mov dword [ebp - 0x520], eax
call eax
mov ebx, eax
test eax, eax
je 0x409bad
lea esi, [eax + 2]
mov word [eax], 0
mov dword [esp + 4], 0x2c
mov dword [esp], esi
mov eax, dword [ebp - 0x520]
call eax
mov ebx, eax
test eax, eax
je 0x40948b
mov word [eax], 0
add ebx, 2
lea edi, [ebp - 0x514]
lea edx, [ebp - 0x518]
mov eax, esi
mov ecx, edi
mov dword [ebp - 0x51c], edx
call dbg.parse_size
mov edx, dword [ebp - 0x51c]
test eax, eax
jne 0x4094bd
mov eax, dword [ebp - 0x530]
mov ecx, edi
call dbg.get_default_desktop_size
lea eax, [ebp - 0x360]
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0x51c], eax
lea eax, [ebp - 0x46c]
mov dword [ebp - 0x524], eax
jmp 0x4092fd
call dword [sym.imp.advapi32.dll_RegCloseKey]
push ecx
mov dword [esp + 4], str.shell
mov eax, dword [ebp - 0x530]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
test eax, eax
push edx
sete al
push edx
movzx eax, al
mov dword [ebp - 0x46c], eax
jmp 0x40938b
mov eax, dword [sym.imp.ucrtbase.dll_wcschr]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x538], edi
mov dword [ebp - 0x530], edi
mov dword [ebp - 0x520], eax
mov eax, dword [ebp - 0x528]
call sym._wine_dbgstr_guid
mov dword [esp + 0xc], str.display_guid__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], global___func__.20
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x4093ba
mov eax, dword [ebp - 0x528]
xor edx, edx
xor ecx, ecx
xor ebx, ebx
mov dword [esp], ebx
mov ebx, dword [sym.imp.user32.dll_CreateWindowExW]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x86000000
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x8001
call ebx
mov dword [ebp - 0x528], eax
sub esp, 0x30
test eax, eax
je 0x4089de
xor eax, eax
xor edi, edi
mov dword [esp + 0x1c], 0x64
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], 0x64
mov dword [esp + 0xc], 0x86000000
mov dword [esp + 4], str.Message
mov dword [esp], eax
call ebx
sub esp, 0x30
mov dword [esp + 8], dbg.desktop_wnd_proc
mov dword [esp + 4], 0xfffffffc
mov edi, dword [ebp - 0x528]
mov dword [esp], edi
call dword [sym.imp.user32.dll_SetWindowLongW]
sub esp, 0xc
mov dword [0x41b208], eax
xor eax, eax
mov dword [esp + 4], 0x7f05
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadIconW]
push edx
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], edi
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
jmp 0x408da2
mov eax, dword [ebp - 0x468]
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], eax
call edi
push eax
mov eax, dword [ebp - 0x46c]
mov dword [esp], eax
call edi
push eax
jmp 0x408a70
mov eax, dword [ebp - 0x52c]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.starting__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], global___func__.20
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x408a22
mov eax, dword [ebp - 0x528]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDC]
push edi
mov esi, eax
xor eax, eax
mov dword [esp + 0xc], eax
mov edi, dword [ebp - 0x51c]
mov dword [esp + 4], 0x5c
mov dword [esp + 8], edi
mov dword [esp], 0x1f
mov ecx, dword [ebp - 0x548]
call ecx
sub esp, 0x10
mov dword [esp], edi
call dword [sym.imp.gdi32.dll_CreateFontIndirectW]
push edx
mov edx, dword [sym.imp.gdi32.dll_SelectObject]
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [ebp - 0x530], edx
call edx
push ecx
mov edi, eax
push ecx
mov ecx, dword [ebp - 0x524]
mov dword [esp], esi
mov dword [esp + 4], ecx
call dword [sym.imp.gdi32.dll_GetTextMetricsW]
push edx
push edx
mov dword [ebp - 0x520], eax
mov dword [esp], esi
mov dword [esp + 4], edi
mov edx, dword [ebp - 0x530]
call edx
push ecx
push ecx
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x528]
mov dword [esp], eax
call dword [sym.imp.user32.dll_ReleaseDC]
push esi
push esi
mov ecx, dword [ebp - 0x520]
test ecx, ecx
je 0x409152
mov dword [esp], 0xb
mov edi, dword [ebp - 0x534]
call edi
push edx
mov dword [0x41b288], eax
mov dword [esp], 0xc
call edi
mov ebx, dword [0x41b288]
mov dword [0x41b270], 4
push ecx
mov ecx, eax
cmp eax, ebx
mov esi, ebx
mov dword [0x41b284], eax
cmovge esi, eax
mov eax, dword [ebp - 0x46c]
imul edx, dword [ebp - 0x458], 0xe
add eax, eax
mov dword [0x41b274], eax
lea eax, [esi + eax + 4]
cmp eax, edx
cmovl eax, edx
mov dword [0x41b278], eax
add eax, 8
mov dword [0x41b268], eax
sub eax, ebx
mov ebx, 2
cdq
idiv ebx
mov dword [0x41b280], eax
mov eax, esi
add esi, 8
sub eax, ecx
mov dword [0x41b26c], esi
cdq
idiv ebx
xor ebx, ebx
mov dword [esp], ebx
add eax, 4
mov dword [0x41b27c], eax
call edi
cdq
push esi
idiv dword [0x41b268]
test eax, eax
jne 0x40981e
mov eax, 1
xor edi, edi
mov dword [0x41b264], eax
mov ebx, dword [0x41c5b4]
mov dword [esp + 0xc], 0x41b290
mov dword [esp + 8], edi
mov dword [esp + 4], 0x8000
mov dword [esp], 0x41524c
call ebx
sub esp, 0x10
test eax, eax
js 0x409b2c
xor esi, esi
mov dword [esp + 0xc], 0x41b28c
mov dword [esp + 8], esi
mov dword [esp + 4], 0x8000
mov dword [esp], 0x414f2c
call ebx
sub esp, 0x10
test eax, eax
js 0x409bbe
mov dword [esp], 8
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebx, dword [0x41c534]
mov dword [0x41b260], eax
test eax, eax
je 0x409152
xor eax, eax
mov ebx, dword [0x41c534]
mov dword [0x41b258], 2
mov dword [esp], eax
call ebx
push edx
mov esi, eax
mov eax, dword [0x41b290]
call dbg.add_folder
mov eax, dword [0x41b28c]
call dbg.add_folder
test esi, esi
js 0x4098d5
call dword [0x41c544]
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
mov eax, dword [ebp - 0x528]
mov dword [esp + 8], dbg.watch_desktop_folders
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], eax
mov eax, dword [ebp - 0x54c]
call eax
sub esp, 0x18
jmp 0x409152
mov edi, dword [ebp - 0x524]
mov ecx, 0x37
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x544]
xor edi, edi
mov word [ebp - 0x428], 0xdc
mov dword [ebp - 0x424], 0x180000
mov dword [ebp - 0x3c0], eax
mov eax, dword [ebp - 0x540]
mov dword [ebp - 0x3bc], eax
xor eax, eax
mov dword [esp + 8], eax
lea eax, [ebp - 0x46c]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 9
mov dword [ebp - 0x524], eax
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp], eax
call dword [sym.imp.user32.dll_ChangeDisplaySettingsExW]
sub esp, 0x14
test eax, eax
je 0x40911a
test byte [0x411024], 2
je 0x40911a
mov dword [esp + 0xc], str.Failed_to_set_primary_display_settings._n
mov dword [esp + 8], str.initialize_display_settings
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x40911a
mov eax, dword [ebp - 0x524]
xor ecx, ecx
mov dword [ebp - 0x46c], 0x208
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x51c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 4], str.Graphics
mov eax, dword [ebp - 0x510]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x510]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push esi
jmp 0x408619
mov edi, dword [ebp - 0x51c]
xor eax, eax
mov ecx, 0x37
rep stosd dword es:[edi], eax
mov dword [ebp - 0x2b4], edx
mov dword [ebp - 0x2b0], ebx
mov dword [esp + 4], str.root
mov edi, dword [ebp - 0x530]
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [esp + 0x14], 0
test eax, eax
mov dword [esp + 0x10], 0x1ff
sete al
movzx eax, al
mov dword [0x411020], eax
jne 0x409abf
xor ecx, ecx
mov dword [esp], edi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ecx
mov dword [esp + 4], ecx
call dword [sym.imp.user32.dll_CreateDesktopW]
sub esp, 0x18
test eax, eax
je 0x409aeb
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetThreadDesktop]
push eax
jmp 0x408964
mov eax, dword [ebp - 0x528]
call sym._wine_dbgstr_guid
mov dword [esp + 0xc], str.display__s_using_null_driver_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.load_graphics_driver
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x4087b9
mov dword [esp + 0xc], 0x80000000
mov eax, dword [ebp - 0x51c]
xor edx, edx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x530]
mov dword [esp], eax
call dword [sym.imp.user32.dll_CreateDesktopW]
sub esp, 0x18
jmp 0x409a74
test byte [0x411024], 2
jne 0x409b68
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
xor esi, esi
mov dword [ebp - 0x52c], esi
jmp 0x408459
mov dword [esp + 4], str.Wine_desktop
mov eax, dword [ebp - 0x528]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetWindowTextW]
push eax
push eax
jmp 0x408da2
mov ebx, dword [0x41c534]
test byte [0x411024], 2
je 0x409152
mov dword [esp + 0xc], str.Could_not_get_user_desktop_folder_n
mov dword [esp + 8], str.initialize_launchers
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x409152
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
mov eax, dword [ebp - 0x530]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.failed_to_create_desktop__s_error__ld_n
mov dword [esp + 8], global___func__.20
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x409af4
lea edi, [ebp - 0x514]
lea edx, [ebp - 0x518]
jmp 0x4094b0
test byte [0x411024], 2
jne 0x409be1
mov eax, dword [0x41b290]
mov dword [esp], eax
call dword [0x41c540]
mov ebx, dword [0x41c534]
push ecx
jmp 0x409152
mov dword [esp + 0xc], str.Could_not_get_public_desktop_folder_n
mov dword [esp + 8], str.initialize_launchers
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x409bc7