Function at 0x476703
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x56afe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x238], edi
lea ebx, [edi + 0x74]
mov eax, dword [ebx]
mov ecx, ebx
mov dword [ebp - 0x220], ebx
call dword [eax + 0x20]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor eax, eax
push eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x22c]
push eax
sub esp, 0x18
lea eax, [ebp - 0x20c]
mov ecx, esp
push eax
call fcn.004108e3
mov ecx, dword [0x5740b0]
call fcn.0045d309
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x21c], 1
cmp ecx, eax
je 0x476995
lea ebx, [ecx + 4]
mov dword [ebp - 0x234], ebx
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x4767b5
mov eax, dword [ebx]
push eax
lea ecx, [ebp - 0x214]
call fcn.00402af5
mov esi, dword [ebp - 0x214]
lea eax, [esi - 0x10]
push eax
call fcn.00402f5d
cmp dword [ebx + 0x14], 8
pop ecx
lea edi, [eax + 0x10]
mov eax, ebx
mov dword [ebp - 0x248], edi
jb 0x4767e4
mov eax, dword [ebx]
push eax
lea ecx, [ebp - 0x210]
call fcn.00402af5
lea ecx, [ebp - 0x210]
call fcn.00426094
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x218]
call fcn.00402af5
lea ecx, [ebp - 0x218]
call fcn.00426094
push 0
push dword [ebp - 0x218]
lea ecx, [ebp - 0x210]
call fcn.0040386a
mov dword [ebp - 0x23c], eax
cmp eax, 0xffffffff
je 0x476919
mov edi, dword [ebp - 0x218]
mov ebx, eax
push dword [edi - 0xc]
lea eax, [ebp - 0x230]
push ebx
push eax
lea ecx, [ebp - 0x214]
call fcn.004216b7
push dword [edi - 0xc]
lea ecx, [ebp - 0x214]
push ebx
call fcn.00403457
push dword [edi - 0xc]
lea ecx, [ebp - 0x210]
push ebx
call fcn.00403457
push str._._colorrgb_22_22_22__boldfalse___._
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x240]
push str._._colorrgb_22_22_22__boldtrue___._
push eax
call fcn.0041346d
add esp, 0xc
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.00413428
mov ecx, dword [ebp - 0x240]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.004042e9
mov esi, dword [ebp - 0x244]
lea ecx, [ebp - 0x214]
push esi
push ebx
call fcn.00475e42
push esi
push ebx
lea ecx, [ebp - 0x210]
call fcn.00475e42
mov eax, dword [esi - 0xc]
lea ecx, [ebp - 0x210]
add eax, ebx
push eax
push edi
call fcn.0040386a
lea ecx, [esi - 0x10]
mov ebx, eax
call fcn.004042e9
mov ecx, dword [ebp - 0x230]
lea ecx, [ecx - 0x10]
call fcn.004042e9
cmp ebx, 0xffffffff
jne 0x476842
mov edi, dword [ebp - 0x248]
mov ebx, dword [ebp - 0x234]
mov esi, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x220]
push edi
push 0xffffffffffffffff
push 0x1c
mov eax, dword [ecx]
push 0xffffffffffffffff
push 0
push esi
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x218]
lea ecx, [ecx - 0x10]
call fcn.004042e9
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.004042e9
lea ecx, [edi - 0x10]
call fcn.004042e9
lea ecx, [esi - 0x10]
call fcn.004042e9
cmp dword [ebp - 0x21c], 0xa
jge 0x476983
push 0x1c
pop eax
add ebx, eax
inc dword [ebp - 0x21c]
mov dword [ebp - 0x234], ebx
lea eax, [ebx - 4]
cmp eax, dword [ebp - 0x24c]
jne 0x4767ab
mov edi, dword [ebp - 0x238]
mov ebx, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x228]
sub eax, ecx
push 0x1c
cdq
pop ecx
idiv ecx
mov esi, eax
test esi, esi
je 0x4769b0
mov ecx, ebx
call fcn.004783b6
neg esi
mov ecx, ebx
sbb esi, esi
and esi, 5
push esi
call fcn.004785ad
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
push 1
push 0
push dword [edi + 4]
call esi
push 1
push 0
push dword [edi + 0x78]
call esi
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push dword [ebp - 0x250]
push dword [ebp - 0x254]
call dword [sym.imp.USER32.dll_SetCursorPos]
lea ecx, [ebp - 0x22c]
call fcn.00443d92
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00522d04
leave
ret