Function at 0x410817
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
call fcn.004107c7
mov edi, dword [ebp + 0xc]
mov dword [ebp + 8], eax
call fcn.004107c7
mov edi, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
call fcn.004107c7
mov dword [ebp + 0x10], eax
cmp dword [0x41d4cc], esi
jne 0x41085b
push 0x11
call dword [sym.imp.GDI32.DLL_GetStockObject]
mov dword [0x41d4cc], eax
mov eax, dword [0x41d3f8]
xor edi, edi
inc edi
push edi
push eax
mov dword [ebp - 0x64], 0x30
mov dword [ebp - 0x60], 3
mov dword [ebp - 0x5c], 0x410714
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], eax
call dword [sym.imp.USER32.DLL_LoadIconW]
push 0x7f00
push esi
mov dword [ebp - 0x4c], eax
call dword [sym.imp.USER32.DLL_LoadCursorW]
mov dword [ebp - 0x48], eax
mov eax, dword [str.InputRequester]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x44], 0x10
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x38], esi
call dword [sym.imp.USER32.DLL_RegisterClassExW]
push edi
mov dword [0x41d4c0], esi
call fcn.004110c4
call fcn.0041116d
mov dword [0x41d4bc], eax
cmp eax, esi
je 0x4108f4
push eax
call dword [sym.imp.USER32.DLL_IsWindowEnabled]
test eax, eax
je 0x4108f4
push esi
push dword [0x41d4bc]
call dword [sym.imp.USER32.DLL_EnableWindow]
mov dword [0x41d4c4], edi
jmp 0x4108fa
mov dword [0x41d4c4], esi
push esi
push dword [0x41d3f8]
push esi
call fcn.0041116d
push eax
push 0x82
push 0x12c
push edi
mov edi, dword [sym.imp.USER32.DLL_GetSystemMetrics]
call edi
cdq
sub eax, edx
sar eax, 1
sub eax, 0x41
push eax
push esi
call edi
mov edi, dword [sym.imp.USER32.DLL_CreateWindowExW]
cdq
sub eax, edx
sar eax, 1
sub eax, 0x96
push eax
push 0x10c80000
push dword [ebp + 8]
push dword [0x41c290]
push esi
call edi
mov ebx, eax
mov dword [ebp - 8], ebx
cmp ebx, esi
je 0x410b29
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffeb
push ebx
call dword [sym.imp.USER32.DLL_SetWindowLongW]
push esi
push dword [0x41d3f8]
push esi
push ebx
push 0x16
push 0x118
push 0xa
push 0xa
push 0x5000000b
push dword [ebp + 0xc]
push str.STATIC
push esi
call edi
mov ebx, dword [sym.imp.USER32.DLL_SendMessageW]
push 1
push dword [0x41d4cc]
mov dword [0x41d4b4], eax
push 0x30
push eax
call ebx
test byte [ebp + 0x14], 1
je 0x4109aa
push 0x20
pop eax
jmp 0x4109ac
mov eax, esi
push esi
push dword [0x41d3f8]
or eax, 0x50010080
push 0xa
push dword [ebp - 8]
push 0x15
push 0x113
push 0x20
push 0xa
push eax
push esi
push str.EDIT
push 0x200
call edi
push 1
push dword [0x41d4cc]
mov dword [0x41d4b8], eax
push 0x30
push eax
call ebx
push dword [0x41d4b8]
call dword [sym.imp.USER32.DLL_SetFocus]
cmp dword [ebp + 0x10], esi
je 0x410a28
push dword [ebp + 0x10]
push esi
push 0xc
push dword [0x41d4b8]
call ebx
push dword [ebp + 0x10]
call sub.MSVCRT.dll_wcslen
pop ecx
push eax
push dword [ebp + 0x10]
call sub.MSVCRT.dll_wcslen
pop ecx
push eax
push 0xb1
push dword [0x41d4b8]
call ebx
push esi
push dword [0x41d3f8]
push 0x3e8
push dword [ebp - 8]
push 0x19
push 0x50
push 0x43
push 0x6e
push 0x50010001
push 0x417058
push str.BUTTON
push esi
call edi
push 1
push dword [0x41d4cc]
mov dword [0x41d4c8], eax
push 0x30
push eax
call ebx
push 0xd
pop eax
mov word [ebp - 0x16], ax
push 0x1b
mov eax, 0x3e8
mov word [ebp - 0x14], ax
pop eax
mov word [ebp - 0x10], ax
mov eax, 0x3e9
mov word [ebp - 0xe], ax
push 2
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 0x18], 1
mov byte [ebp - 0x12], 1
call dword [sym.imp.USER32.DLL_CreateAcceleratorTableW]
push dword [ebp - 8]
mov edi, eax
call dword [sym.imp.USER32.DLL_SetForegroundWindow]
push dword [ebp - 8]
call dword [sym.imp.USER32.DLL_BringWindowToTop]
jmp 0x410ae4
push esi
push esi
push esi
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.DLL_GetMessageW]
test eax, eax
je 0x410aec
lea eax, [ebp - 0x34]
push eax
push edi
push dword [ebp - 8]
call dword [sym.imp.USER32.DLL_TranslateAcceleratorW]
test eax, eax
jne 0x410ae4
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.DLL_TranslateMessage]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.DLL_DispatchMessageW]
cmp dword [0x41d4c0], esi
je 0x410aad
cmp edi, esi
je 0x410af7
push edi
call dword [sym.imp.USER32.DLL_DestroyAcceleratorTable]
cmp dword [ebp - 4], esi
je 0x410b2e
push dword [ebp - 4]
call sub.MSVCRT.dll_wcslen
pop ecx
push dword [ebp + 0x18]
push eax
call fcn.00416280
push dword [ebp - 4]
push eax
call sub.MSVCRT.dll_wcscpy
pop ecx
pop ecx
push dword [ebp - 4]
push esi
push dword [0x41d3f4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], esi
jne 0x410b36
push dword [ebp + 0x18]
call fcn.00416380
push dword [ebp + 8]
call fcn.004107fd
push dword [ebp + 0xc]
call fcn.004107fd
push dword [ebp + 0x10]
call fcn.004107fd
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret 0x14