Function at 0x20024865
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
xor eax, eax
push esi
push edi
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 1
stosd dword es:[edi], eax
call fcn.2000fd0a
cmp dword [0x2002dd64], 0
pop ecx
jne 0x200248c3
push 5
pop ecx
push 0x8c
lea eax, [ebp - 0xf0]
push 0
mov esi, 0x200040c0
lea edi, [ebp - 0x104]
push eax
rep movsd dword es:[edi], dword [esi]
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x104]
push eax
call fcn.20024354
add esp, 0x10
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
push 0x6c
pop edi
push 0x16
pop ebx
push 0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], ebx
call esi
sub eax, edi
cdq
sub eax, edx
mov edi, eax
sar edi, 1
add edi, 0x64
push 1
mov dword [ebp - 0x28], edi
call esi
and dword [0x2002dd54], 0
sub eax, ebx
cdq
sub eax, edx
push 0xe
mov ebx, eax
pop eax
mov esi, 0x2000297c
sar ebx, 1
push esi
sub ebx, 0x28
push eax
mov dword [ebp - 0x24], ebx
mov dword [0x2002db70], eax
call fcn.2000c702
mov dword [ebp - 0x10], eax
mov eax, dword [0x2002db70]
neg eax
push esi
push eax
call fcn.2000c702
push 0
push 0x800020
push eax
push dword [0x2002dd64]
mov dword [ebp - 0x14], eax
push dword [0x2003f03c]
lea eax, [ebp - 0x28]
push eax
push 0x200029e8
call fcn.20017973
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
add esp, 0x2c
push 0x50
mov dword [ebp - 8], eax
lea eax, [ebp - 0x244]
push eax
push 0x2723
push dword [0x2003f03c]
call esi
push dword [ebp - 0x10]
lea eax, [edi + 0x6e]
push dword [0x2002dd64]
mov dword [ebp - 0x38], eax
push dword [0x2003f03c]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x244]
push eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 0x21
mov dword [ebp - 0x2c], 0x16
call fcn.200177c8
mov dword [0x2002dd58], eax
lea eax, [ebx - 0x14]
mov dword [0x2002db50], eax
lea eax, [edi + 0xc8]
mov dword [0x2002db54], eax
lea eax, [ebx - 2]
add esp, 0x14
mov dword [0x2002db4c], edi
mov dword [0x2002db58], eax
push 0x50
lea eax, [ebp - 0x424]
push eax
push 0x2724
push dword [0x2003f03c]
call esi
push 0x50
lea eax, [ebp - 0x1a4]
push eax
push 0x2726
push dword [0x2003f03c]
call esi
lea eax, [ebp - 0x1a4]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x62c]
push 0x200040ac
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x62c]
push eax
call fcn.2001f95b
add esp, 0x18
push 0xfffffffffffffffc
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0x200166e2
push 0xfffffffffffffffc
push dword [ebp - 8]
mov dword [0x2002dc4c], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x50
lea eax, [ebp - 0x384]
push eax
push 0x2725
push dword [0x2003f03c]
call esi
push 0x50
lea eax, [ebp - 0x2e4]
push eax
push 0x2729
push dword [0x2003f03c]
call esi
lea eax, [ebp - 0x2e4]
push eax
call fcn.2000c372
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
mov esi, dword [sym.imp.USER32.dll_SetFocus]
pop ecx
mov dword [ebp - 0x18], eax
jmp 0x20024b7e
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
xor eax, eax
cmp dword [0x2002dd54], eax
je 0x20024b85
push 0x9e
push eax
mov dword [0x2002dd54], eax
mov word [ebp - 0x104], ax
lea eax, [ebp - 0x102]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x50
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x20004090
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x20024b9c
lea eax, [ebp - 0x104]
push eax
call fcn.2001f1b9
pop ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x20024b9c
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ecx, dword [ebp + 0xc]
neg eax
sbb eax, eax
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
je 0x20024ba3
test eax, eax
jne 0x20024ba3
sub ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x1a4]
push eax
push ecx
lea eax, [ebp - 0x384]
push eax
lea eax, [ebp - 0x62c]
push 0x20004080
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x62c]
push eax
call fcn.2001f95b
add esp, 0x18
push dword [ebp - 8]
call esi
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x20024a9b
jmp 0x20024ba3
mov dword [ebp - 4], 1
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x10
push dword [0x2002dd58]
call esi
push 0
push 0
push 0x10
push dword [ebp - 8]
call esi
push 0x200029e8
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x62c]
push eax
call fcn.2001f95b
cmp dword [0x2003f040], 0
pop ecx
jne 0x20024c17
lea eax, [edi - 2]
mov dword [ebp - 0x48], eax
lea eax, [ebx - 0x16]
mov dword [ebp - 0x44], eax
push 1
lea eax, [ebp - 0x48]
push eax
push dword [0x2002dd64]
add edi, 0xca
add ebx, 0x18
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp dword [ebp - 0x10], 0
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
pop ebx
je 0x20024c29
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x14], 0
je 0x20024c34
push dword [ebp - 0x14]
call esi
push 0
call fcn.2000fd0a
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
leave
ret