Function at 0x404458
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa30
mov eax, dword [ebx + 0x88]
push esi
xor esi, esi
push edi
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
test al, 8
je 0x40454d
push pe_nt_image_headers32
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [esp + 0x28]
push eax
call fcn.00455031
mov edi, eax
pop ecx
mov dword [esp + 8], esi
cmp edi, esi
je 0x4044c4
lea esi, [edi - 1]
jmp 0x4044c0
movzx eax, word [esp + esi*2 + 0x28]
push eax
call fcn.0045706c
dec esi
pop ecx
test eax, eax
je 0x4044c4
inc dword [esp + 8]
test esi, esi
jns 0x4044ab
mov eax, dword [ebx + 0x134]
cmp eax, edi
jle 0x40481c
mov ecx, dword [ebx + 0x138]
cmp ecx, dword [esp + 8]
jle 0x40481c
sub eax, ecx
add eax, dword [esp + 8]
cmp edi, eax
jne 0x40481c
mov eax, dword [ebx + 0x9c]
push edi
lea ecx, [esp + 0x2c]
push ecx
push eax
call fcn.004570d2
add esp, 0xc
test eax, eax
jne 0x40481c
inc dword [ebx + 0x130]
push dword [ebx + 0x130]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x238]
push str._s_u
push eax
call fcn.0045710b
push dword [ebx + 0x9c]
lea eax, [esp + 0x244]
push eax
call fcn.00456fac
add esp, 0x18
test eax, eax
jmp 0x40480d
test eax, 0x400
je 0x404618
push dword [ebp + 8]
mov esi, 0x202
lea edi, [ebx + 8]
push esi
call fcn.0040b908
mov dword [esp + 0xc], eax
test eax, eax
je 0x404610
lea ecx, [esp + 0x10]
push ecx
push 0x1388
push 2
push eax
push 0x101
push dword [ebx + 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x4045d7
cmp dword [esp + 0x10], 0
jbe 0x4045d7
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
mov eax, edi
call fcn.0040b995
push dword [ebx + 0xac]
xor eax, eax
mov word [esp + 0x22c], ax
lea eax, [esp + 0x2c]
push eax
call fcn.00456fac
pop ecx
pop ecx
test eax, eax
jne 0x4045d7
mov dword [esp + 8], 1
xor eax, eax
lea ecx, [ebx + 0xc]
mov edx, dword [esp + 0xc]
cmp dword [ecx], edx
je 0x4045ef
inc eax
add ecx, 8
cmp eax, 0x10
jl 0x4045dc
jmp 0x404610
push 0x8000
lea esi, [edi + eax*8]
push 0
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 4], 0
mov dword [esp + 0xc], 1
test byte [ebx + 0x88], 0x10
mov edi, dword [sym.imp.USER32.dll_GetClassNameW]
je 0x40467e
push 0x400
lea eax, [esp + 0x234]
push eax
push dword [ebp + 8]
call edi
lea eax, [esp + 0x230]
push eax
lea esi, [esp + 0x1c]
call fcn.00401983
lea esi, [ebx + 0xec]
push esi
lea eax, [esp + 0x1c]
call fcn.004072b7
mov eax, dword [esi + 4]
lea ecx, [esp + 0x18]
mov dword [esi + 0x28], eax
mov byte [esi + 0x10], 1
call fcn.00401a04
call fcn.004074d6
test al, al
je 0x40467a
inc dword [esp + 8]
inc dword [esp + 0xc]
mov eax, dword [ebx + 0x88]
test al, 0x20
je 0x4046a9
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp dword [ebx + 0xcc], eax
jne 0x40481c
mov dword [ebx + 0xd8], esi
jmp 0x404818
mov esi, pe_nt_image_headers32
test al, 0xc0
jne 0x4046bd
test eax, 0x300
je 0x404761
lea eax, [esp + 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebx + 0x88]
test al, 0x40
je 0x40470e
mov ecx, dword [ebx + 0xdc]
cmp ecx, dword [esp + 0x10]
jne 0x40470a
inc dword [esp + 8]
inc dword [esp + 0xc]
test al, al
jns 0x404726
mov ecx, dword [ebx + 0xe0]
cmp ecx, dword [esp + 0x14]
jne 0x404722
inc dword [esp + 8]
inc dword [esp + 0xc]
test esi, eax
je 0x404742
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x18]
cmp dword [ebx + 0xe4], ecx
jne 0x40473e
inc dword [esp + 8]
inc dword [esp + 0xc]
test eax, 0x200
je 0x404761
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x1c]
cmp dword [ebx + 0xe8], ecx
jne 0x40475d
inc dword [esp + 8]
inc dword [esp + 0xc]
test al, 1
je 0x404795
push esi
lea eax, [esp + 0x234]
push eax
push dword [ebp + 8]
call edi
mov eax, dword [ebx + 0x8c]
lea ecx, [esp + 0x230]
push ecx
push eax
call fcn.00456fac
pop ecx
pop ecx
test eax, eax
jne 0x404791
inc dword [esp + 8]
inc dword [esp + 0xc]
test byte [ebx + 0x88], 4
je 0x4047d6
push 0x400
lea eax, [esp + 0x234]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebx + 0xbc]
lea ecx, [esp + 0x230]
push ecx
push eax
call fcn.00456fac
pop ecx
pop ecx
test eax, eax
jne 0x4047d2
inc dword [esp + 8]
inc dword [esp + 0xc]
test byte [ebx + 0x88], 2
je 0x404805
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0xc]
jne 0x404801
inc dword [ebx + 0x130]
mov eax, dword [ebx + 0x130]
cmp eax, dword [ebx + 0xd0]
jne 0x404801
inc dword [esp + 8]
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp dword [esp + 8], eax
jne 0x40481c
mov eax, dword [ebp + 8]
mov dword [ebx + 0xd8], eax
xor eax, eax
jmp 0x40481f
xor eax, eax
inc eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4