Function at 0x40ffd0
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, 0x68
mov ebx, dword [0x415a48]
mov ecx, dword [0x416ee0]
test ebx, ebx
cmove ebx, eax
test ecx, ecx
jne 0x410182
test byte [0x4150c0], 8
jne 0x410190
mov eax, dword [sym.imp.user32.dll_GetDlgItem]
mov dword [esp + 4], 0x3ff
mov dword [esp], edi
mov dword [ebp - 0x58], eax
call eax
sub esp, 8
mov esi, eax
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_GetWindowTextLengthW]
mov dword [ebp - 0x54], eax
call eax
sub esp, 4
inc eax
mov edx, eax
je 0x4101c0
add eax, eax
mov dword [ebp - 0x5c], edx
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x60], eax
call eax
mov edx, dword [ebp - 0x5c]
test eax, eax
mov dword [ebp - 0x50], eax
je 0x4101c0
mov eax, dword [ebp - 0x50]
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 - 0x5c], eax
call eax
sub esp, 0xc
test eax, eax
je 0x410390
mov dword [esp + 4], 0x400
mov eax, dword [ebp - 0x58]
mov dword [esp], edi
call eax
sub esp, 8
mov esi, eax
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
sub esp, 4
inc eax
mov edx, eax
je 0x410330
lea eax, [edx + edx]
mov dword [ebp - 0x58], edx
mov dword [esp], eax
mov eax, dword [ebp - 0x60]
call eax
mov edx, dword [ebp - 0x58]
test eax, eax
mov dword [ebp - 0x54], eax
je 0x4103fb
mov eax, dword [ebp - 0x54]
mov dword [esp + 8], edx
mov dword [esp], esi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5c]
call eax
sub esp, 0xc
test eax, eax
je 0x410406
mov eax, dword [ebp - 0x50]
cmp word [eax], 0
jne 0x410358
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov edi, 0x320
mov ecx, dword [ebp - 0x54]
mov eax, 0x258
cmp word [ecx], 0
jne 0x4102d8
mov dword [esp + 0xc], edi
lea edi, [ebp - 0x4c]
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], 0x419294
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 - 0x50]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x54]
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], 0x4150c0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_9
jmp 0x410006
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], edi
mov eax, dword [ebp - 0x58]
mov dword [esp + 4], 0x400
call eax
sub esp, 8
mov edi, eax
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
sub esp, 4
inc eax
mov edx, eax
je 0x4102b8
add eax, eax
mov dword [ebp - 0x50], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x50]
test eax, eax
mov dword [ebp - 0x54], eax
je 0x4102b8
mov eax, dword [ebp - 0x54]
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 - 0x50], 0
sub esp, 0xc
test eax, eax
jne 0x4100f7
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x50]
test edx, edx
je 0x4102b8
mov eax, dword [ebp - 0x50]
cmp word [eax], 0
je 0x410420
mov eax, dword [ebp - 0x50]
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 - 0x54], 0
cmp eax, 0x27f
jle 0x410411
mov eax, dword [ebp - 0x50]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call edi
mov edi, eax
mov eax, dword [ebp - 0x54]
test eax, eax
jne 0x4100f7
mov eax, 0x258
jmp 0x410109
mov dword [ebp - 0x50], 0
mov edi, 0x320
mov eax, 0x258
mov dword [ebp - 0x54], 0
jmp 0x410109
mov edx, dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [esp], ecx
mov dword [esp + 8], 0xa
mov dword [ebp - 0x58], edx
mov dword [esp + 4], 0
call edx
mov edx, dword [ebp - 0x58]
mov ecx, eax
mov eax, 0x1e0
cmp ecx, 0x1df
jle 0x410109
mov eax, dword [ebp - 0x54]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call edx
jmp 0x410109
mov eax, dword [ebp - 0x50]
cmp word [eax], 0
jne 0x4103a8
mov dword [ebp - 0x54], 0
mov edi, 0x320
mov eax, 0x258
mov esi, dword [sym.imp.ucrtbase.dll_free]
jmp 0x410109
mov eax, dword [ebp - 0x50]
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 0x4103f0
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov edi, 0x280
jmp 0x4100f7
mov eax, dword [ebp - 0x50]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call esi
jmp 0x4101c6
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 - 0x54], 0
cmp eax, 0x27f
jg 0x4103f0
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov edi, 0x280
mov eax, 0x258
jmp 0x410109
mov esi, dword [sym.imp.ucrtbase.dll_free]
jmp 0x410282
mov esi, dword [sym.imp.ucrtbase.dll_free]
jmp 0x410245
mov esi, dword [sym.imp.ucrtbase.dll_free]
jmp 0x410236
mov edi, 0x280
mov eax, 0x258
jmp 0x410109
mov dword [ebp - 0x54], 0
mov edi, 0x320
jmp 0x4102a7