Function at 0x455228
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], ebx
push 0
call fcn.004581b8
pop ecx
call fcn.00455a64
mov dword [ebp - 4], eax
test eax, eax
je 0x455466
mov eax, dword [ebp + 8]
cmp eax, 0x400
jge 0x455266
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x455279
jmp 0x455441
mov edx, dword [0x4affb0]
mov eax, dword [ebp + 8]
add edx, 0x400
cmp eax, edx
jle 0x45528a
push 0xffffffffffffffff
call fcn.004581b8
pop ecx
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4a2424]
mov edx, dword [ebp + 8]
push 0
mov esi, dword [eax + edx*4 - 0x1000]
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ebx, eax
test ebx, ebx
je 0x455466
mov edx, dword [ebx + 4]
cmp edx, 1
je 0x4554db
test esi, esi
je 0x455432
mov edx, dword [ebx + 0x190]
test edx, edx
je 0x4552de
cmp esi, edx
je 0x4552de
push 0
push 0xd
push 0x106
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4553e2
push 0
push esi
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov esi, eax
push 0x4b66f0
push 0
push 0x800
push esi
call dword [sym.imp.USER32.dll_AppendMenuA]
push 0x4b70b8
push 0xf060
push 0
push esi
call dword [sym.imp.USER32.dll_AppendMenuA]
mov ecx, dword [ebx + 0x10]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x455336
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x45531f
add eax, 0xffffffff
mov ecx, dword [0x4affc4]
mov esi, eax
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x455357
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x455340
add eax, 0xffffffff
lea edx, [esi + eax + 1]
push edx
call fcn.0046e46e
mov dword [ebp - 0x14], eax
add esp, 4
mov edx, eax
test edx, edx
je 0x45549e
mov esi, eax
mov edi, dword [ebx + 0x10]
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x455376
test eax, eax
je 0x455478
mov edi, dword [ebp - 0x14]
mov edx, dword [0x4affc4]
mov esi, edi
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov al, byte [edx]
add edx, 1
mov byte [edi], al
add edi, 1
test al, al
jne 0x4553a3
mov eax, esi
test eax, eax
je 0x455452
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x10]
push ecx
mov dword [ebx + 0x10], edx
call fcn.0046e793
pop ecx
push dword [ebx + 0x10]
push dword [ebx]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov dword [ebx + 0x184], 1
jmp 0x455424
push dword [ebx]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x455424
call fcn.00450988
mov edx, dword [0x4a2424]
mov ecx, dword [ebp + 8]
push 0
push dword [edx + ecx*4 - 0x1000]
push 0x221
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x4a2424]
mov edx, dword [ebp + 8]
mov dword [eax + edx*4 - 0x1000], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
cmp eax, dword [edx]
je 0x4554c4
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
xor eax, eax
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.004581b8
pop ecx
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
push 0xa0
push 0x4b70c8
push 5
call fcn.004580ec
add esp, 0xc
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
push 0x9a
push 0x4b70c8
push 5
call fcn.004580ec
add esp, 0xc
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
push 0x93
push 0x4b70c8
push 4
call fcn.004580ec
add esp, 0xc
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.0044dd6c
pop ecx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
cmp edx, dword [0x4aef0c]
jne 0x4552b8
mov dword [0x4aef0c], 0
jmp 0x4552b8