Function at 0x476140
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c8c41
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x500770]
xor eax, esp
mov dword [esp + 0x2a0], eax
push ebx
push esi
push edi
mov eax, dword [0x500770]
xor eax, esp
push eax
lea eax, [esp + 0x2b8]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov ecx, dword [ebx + 0x48]
lea eax, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
neg edx
push edx
neg eax
push eax
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [ebx + 0x4c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x40]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x3c]
sub edx, ecx
push edx
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea eax, [ebx + 4]
push eax
push edi
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4764b1
mov eax, dword [ebx + 0x1c]
mov edx, dword [eax]
lea esi, [ebx + 0x18]
mov dword [esp + 0x24], edx
mov edi, edi
cmp esi, esi
mov edi, dword [esi + 4]
je 0x47622c
call fcn.004a79fe
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x4764b1
cmp eax, dword [esi + 4]
jne 0x476242
call fcn.004a79fe
mov eax, dword [esp + 0x24]
mov esi, dword [eax + 8]
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
mov ecx, esi
call eax
test al, al
je 0x476495
mov edx, dword [esi]
mov edx, dword [edx + 0x70]
lea eax, [esp + 0x94]
push eax
mov ecx, esi
call edx
push eax
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x476495
mov edx, dword [esi]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
call edx
mov ecx, eax
mov dword [esp + 0x2c0], 0
mov eax, dword [ecx + 0x14]
push str.syswinicon
mov edi, 0xa
call fcn.004484f0
test eax, eax
sete byte [esp + 0x17]
mov dword [esp + 0x2c0], 0xffffffff
cmp dword [esp + 0x64], 8
jb 0x4762d7
mov eax, dword [esp + 0x50]
push eax
call fcn.00488fd0
add esp, 4
cmp byte [esp + 0x17], 0
je 0x476352
mov ecx, dword [ebx + 0x48]
push 0
push 0
push 0x7f
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
test edi, edi
jne 0x47630a
mov edx, dword [ebx + 0x48]
push 0xfffffffffffffff2
push edx
call dword [sym.imp.USER32.dll_GetClassLongW]
mov edi, eax
test edi, edi
je 0x476495
mov eax, dword [esi]
mov edx, dword [eax + 0x70]
lea ecx, [esp + 0x84]
push ecx
mov ecx, esi
call edx
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 3
push 0
push 0
push 0x32
call esi
push eax
push 0x31
call esi
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x9c]
push edi
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawIconEx]
jmp 0x476495
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
call edx
mov ecx, eax
mov dword [esp + 0x2c0], 1
mov eax, dword [ecx + 0x14]
push str.syswintitle
mov edi, 0xb
call fcn.004484f0
test eax, eax
sete byte [esp + 0x17]
mov dword [esp + 0x2c0], 0xffffffff
cmp dword [esp + 0x64], 8
jb 0x4763a5
mov eax, dword [esp + 0x50]
push eax
call fcn.00488fd0
add esp, 4
cmp byte [esp + 0x17], 0
je 0x47647f
mov edx, dword [ebx + 0x48]
push 0x104
lea ecx, [esp + 0xa8]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
lea ecx, [esp + 0x68]
push ecx
mov ecx, esi
call edx
mov ecx, eax
lea eax, [esp + 0xa4]
mov dword [esp + 0x2c0], 2
lea edi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4763f0
sub eax, edi
sar eax, 1
lea edx, [esp + 0xa4]
mov edi, eax
mov eax, dword [ecx + 0x14]
push edx
call fcn.004484f0
test eax, eax
setne bl
mov dword [esp + 0x2c0], 0xffffffff
cmp dword [esp + 0x80], 8
jb 0x476438
mov eax, dword [esp + 0x6c]
push eax
call fcn.00488fd0
add esp, 4
xor eax, eax
test bl, bl
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], eax
mov word [esp + 0x6c], ax
je 0x476463
mov edx, dword [esi]
mov edx, dword [edx + 0x1c]
lea eax, [esp + 0xa4]
push eax
mov ecx, esi
call edx
mov ecx, dword [esp + 0x18]
mov eax, dword [esi]
mov edx, dword [esp + 0x1c]
mov eax, dword [eax + 0x98]
push ecx
push edx
mov ecx, esi
call eax
mov ebx, dword [esp + 0x38]
jmp 0x476495
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi]
mov edx, dword [edx + 0x98]
push eax
push ecx
mov ecx, esi
call edx
mov edi, dword [esp + 0x24]
cmp edi, dword [ebx + 0x1c]
lea esi, [ebx + 0x18]
jne 0x4764a6
call fcn.004a79fe
mov eax, dword [edi]
mov dword [esp + 0x24], eax
jmp 0x476220
mov ecx, dword [esp + 0x2b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a0]
xor ecx, esp
call fcn.004a74b2
mov esp, ebp
pop ebp
ret 8