Function at 0x40f920
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, str.Default
push esi
push ebx
sub esp, 0x8c
mov ebx, dword [0x415a48]
mov ecx, dword [0x416edc]
test ebx, ebx
cmove ebx, eax
test ecx, ecx
jne 0x40fad5
test byte [0x4150b0], 8
jne 0x40fae0
mov eax, dword [sym.imp.user32.dll_GetDlgItem]
mov dword [esp + 4], 0x3ff
mov dword [esp], edi
mov dword [ebp - 0x64], eax
call eax
sub esp, 8
mov esi, eax
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_GetWindowTextLengthW]
mov dword [ebp - 0x60], eax
call eax
sub esp, 4
inc eax
mov edx, eax
je 0x40fb10
add eax, eax
mov dword [ebp - 0x68], edx
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x6c], eax
call eax
mov edx, dword [ebp - 0x68]
test eax, eax
mov dword [ebp - 0x5c], eax
je 0x40fb10
mov eax, dword [ebp - 0x5c]
mov dword [esp + 8], edx
mov dword [esp], esi
mov dword [esp + 4], eax
mov eax, dword [sym.imp.user32.dll_GetWindowTextW]
mov dword [ebp - 0x68], eax
call eax
sub esp, 0xc
test eax, eax
je 0x40fce0
mov dword [esp + 4], 0x400
mov eax, dword [ebp - 0x64]
mov dword [esp], edi
call eax
sub esp, 8
mov esi, eax
mov dword [esp], eax
mov eax, dword [ebp - 0x60]
call eax
sub esp, 4
inc eax
mov edx, eax
je 0x40fc80
lea eax, [edx + edx]
mov dword [ebp - 0x64], edx
mov dword [esp], eax
mov eax, dword [ebp - 0x6c]
call eax
mov edx, dword [ebp - 0x64]
test eax, eax
mov dword [ebp - 0x60], eax
je 0x40fd4b
mov eax, dword [ebp - 0x60]
mov dword [esp + 8], edx
mov dword [esp], esi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x68]
call eax
sub esp, 0xc
test eax, eax
je 0x40fd56
mov eax, dword [ebp - 0x5c]
cmp word [eax], 0
jne 0x40fca8
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov edi, 0x320
mov ecx, dword [ebp - 0x60]
mov eax, 0x258
cmp word [ecx], 0
jne 0x40fc28
mov dword [esp + 0xc], edi
lea edi, [ebp - 0x58]
mov dword [esp + 0x10], eax
mov dword [esp + 8], str._ux_u
mov dword [esp + 4], 0x20
mov dword [esp], edi
call sym._swprintf.constprop.0_4
mov eax, dword [0x415a44]
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], 0x41907c
call sym._set_reg_key
mov dword [esp], str.Explorer
call sym._keypath
mov dword [esp + 0xc], ebx
mov dword [esp + 4], eax
mov eax, dword [0x415a44]
mov dword [esp + 8], str.Desktop
mov dword [esp], eax
call sym._set_reg_key
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], str._nExplorerDesktops
mov dword [esp + 8], str.set_from_desktop_edits
mov dword [esp + 4], 0x4150b0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
jmp 0x40f959
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], edi
mov eax, dword [ebp - 0x64]
mov dword [esp + 4], 0x400
call eax
sub esp, 8
mov edi, eax
mov dword [esp], eax
mov eax, dword [ebp - 0x60]
call eax
sub esp, 4
inc eax
mov edx, eax
je 0x40fc08
add eax, eax
mov dword [ebp - 0x5c], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x5c]
test eax, eax
mov dword [ebp - 0x60], eax
je 0x40fc08
mov eax, dword [ebp - 0x60]
mov dword [esp], edi
mov edi, 0x320
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call dword [sym.imp.user32.dll_GetWindowTextW]
mov dword [ebp - 0x5c], 0
sub esp, 0xc
test eax, eax
jne 0x40fa4a
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x5c]
test edx, edx
je 0x40fc08
mov eax, dword [ebp - 0x5c]
cmp word [eax], 0
je 0x40fd70
mov eax, dword [ebp - 0x5c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov edi, dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [esp], eax
call edi
mov dword [ebp - 0x60], 0
cmp eax, 0x27f
jle 0x40fd61
mov eax, dword [ebp - 0x5c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call edi
mov edi, eax
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x40fa4a
mov eax, 0x258
jmp 0x40fa5c
mov dword [ebp - 0x5c], 0
mov edi, 0x320
mov eax, 0x258
mov dword [ebp - 0x60], 0
jmp 0x40fa5c
mov edx, dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [esp], ecx
mov dword [esp + 8], 0xa
mov dword [ebp - 0x64], edx
mov dword [esp + 4], 0
call edx
mov edx, dword [ebp - 0x64]
mov ecx, eax
mov eax, 0x1e0
cmp ecx, 0x1df
jle 0x40fa5c
mov eax, dword [ebp - 0x60]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call edx
jmp 0x40fa5c
mov eax, dword [ebp - 0x5c]
cmp word [eax], 0
jne 0x40fcf8
mov dword [ebp - 0x60], 0
mov edi, 0x320
mov eax, 0x258
mov esi, dword [sym.imp.ucrtbase.dll_free]
jmp 0x40fa5c
mov eax, dword [ebp - 0x5c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov edi, dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [esp], eax
call edi
cmp eax, 0x27f
jg 0x40fd40
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov edi, 0x280
jmp 0x40fa4a
mov eax, dword [ebp - 0x5c]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call esi
jmp 0x40fb16
mov dword [esp + 8], 0xa
mov edi, dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [esp + 4], 0
mov dword [esp], eax
call edi
mov dword [ebp - 0x60], 0
cmp eax, 0x27f
jg 0x40fd40
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov edi, 0x280
mov eax, 0x258
jmp 0x40fa5c
mov esi, dword [sym.imp.ucrtbase.dll_free]
jmp 0x40fbd2
mov esi, dword [sym.imp.ucrtbase.dll_free]
jmp 0x40fb95
mov esi, dword [sym.imp.ucrtbase.dll_free]
jmp 0x40fb86
mov edi, 0x280
mov eax, 0x258
jmp 0x40fa5c
mov dword [ebp - 0x60], 0
mov edi, 0x320
jmp 0x40fbf7