Function at 0x4522b8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd4c
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x48]
mov dword [ebp - 0x2b4], eax
xor edx, edx
mov dword [ebp - 0x2b0], edx
mov dword [ebp - 4], esi
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffffd
cmp ecx, 0xb
ja case.0x4521f1.6
jmp dword [ecx*4 + 0x4521f8]
lea eax, [ebp - 4]
mov edi, esi
push eax
mov eax, edi
inc eax
push 0x4be572
push eax
call fcn.0049d988
add esp, 0xc
dec eax
jne case.0x4521f1.6
mov edx, dword [ebp - 4]
cmp edx, dword [ebx + 0x48]
jne case.0x4521f1.6
push 0x29
push edi
call fcn.004988ed
add esp, 8
test eax, eax
je case.0x4521f1.6
cmp dword [ebx + 0xc0], 0
je case.0x4521f1.6
add eax, 2
push eax
mov edx, dword [ebx + 0xc0]
mov ecx, dword [edx + 0x8e]
push ecx
call fcn.0040dc90
add esp, 8
jmp case.0x4521f1.6
mov eax, dword [ebp - 4]
push eax
push 1
push ebx
call fcn.00451e3c
add esp, 0xc
jmp case.0x4521f1.6
mov edx, dword [ebp - 4]
push edx
push 0
push ebx
call fcn.00451e3c
add esp, 0xc
jmp case.0x4521f1.6
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebx + 0x48]
jne case.0x4521f1.6
lea eax, [ebp - 0x2b4]
push eax
push 0xd
push 0x408
mov edx, dword [ebx + 0x40]
push edx
call sub.USER32.dll_SendMessageA
cmp dword [ebp - 0x2b0], 0
je 0x45230a
cmp dword [ebp - 0x2ac], 0
je 0x45230a
lea ecx, [ebp - 0x2a8]
push ecx
mov eax, dword [ebx + 0xe8]
mov edx, dword [eax]
mov ecx, dword [edx + 0xc]
push ecx
call sub.USER32.dll_SetWindowTextA
jmp case.0x4521f1.6
push 0x4be46c
mov eax, dword [ebx + 0xe8]
mov edx, dword [eax]
mov ecx, dword [edx + 0xc]
push ecx
call sub.USER32.dll_SetWindowTextA
jmp case.0x4521f1.6
mov eax, dword [ebp - 4]
cmp eax, dword [ebx + 0x48]
jne case.0x4521f1.6
lea edx, [ebp - 0x2b4]
push edx
push 0xc
push 0x408
mov ecx, dword [ebx + 0x40]
push ecx
call sub.USER32.dll_SendMessageA
cmp dword [ebp - 0x2b0], 0
je case.0x4521f1.6
mov eax, dword [ebp - 0x298]
push eax
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 0x29c]
push edx
mov ecx, dword [ebp - 0x2a0]
push ecx
push str._02d:_02d:_02d
push eax
call fcn.0049d914
add esp, 0x14
lea edx, [ebp - 0x54]
push edx
mov ecx, dword [ebx + 0xf0]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push edx
call sub.USER32.dll_SetWindowTextA
mov ecx, dword [ebp - 0x2a4]
push ecx
lea ecx, [ebp - 0x54]
mov eax, dword [ebp - 0x2a8]
push eax
mov edx, dword [ebp - 0x2ac]
push edx
push str._02d:_02d:_02d
push ecx
call fcn.0049d914
add esp, 0x14
lea eax, [ebp - 0x54]
push eax
mov edx, dword [ebx + 0xec]
mov ecx, dword [edx]
mov eax, dword [ecx + 0xc]
push eax
call sub.USER32.dll_SetWindowTextA
mov edx, dword [ebp - 0x294]
mov eax, edx
add eax, dword [0x4be074]
sar eax, 1
jns 0x4523e0
adc eax, 0
mov dword [0x4be074], edx
test eax, eax
jl 0x452416
push eax
push 0x4be584
lea edx, [ebp - 0x54]
push edx
call fcn.0049d914
add esp, 0xc
lea ecx, [ebp - 0x54]
push ecx
mov eax, dword [ebx + 0xfc]
mov edx, dword [eax]
mov ecx, dword [edx + 0xc]
push ecx
call sub.USER32.dll_SetWindowTextA
jmp case.0x4521f1.6
push 0x4be46c
mov eax, dword [ebx + 0xfc]
mov edx, dword [eax]
mov ecx, dword [edx + 0xc]
push ecx
call sub.USER32.dll_SetWindowTextA
jmp case.0x4521f1.6
mov eax, dword [ebp - 4]
push eax
push 0
push ebx
call fcn.00451e3c
add esp, 0xc
mov edx, dword [ebp - 4]
cmp edx, dword [ebx + 0x48]
jne case.0x4521f1.6
lea ecx, [ebp - 0x2b4]
push ecx
push 0xe
push 0x408
mov eax, dword [ebx + 0x40]
push eax
call sub.USER32.dll_SendMessageA
cmp dword [ebp - 0x2b0], 0
je case.0x4521f1.6
mov edx, dword [ebp - 0x2a8]
lea ecx, [ebp - 0x54]
push edx
push 0x4be588
push ecx
call fcn.0049d914
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
mov edx, dword [ebx + 0xf4]
mov ecx, dword [edx]
mov eax, dword [ecx + 0xc]
push eax
call sub.USER32.dll_SetWindowTextA
mov edx, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x54]
push edx
push 0x4be588
push ecx
call fcn.0049d914
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
mov edx, dword [ebx + 0xf8]
mov ecx, dword [edx]
mov eax, dword [ecx + 0xc]
push eax
call sub.USER32.dll_SetWindowTextA
lea edx, [ebp - 0x2a4]
push edx
mov ecx, dword [ebx + 0x100]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push edx
call sub.USER32.dll_SetWindowTextA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret