Function at 0x466930
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x88
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x44]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x466c79
mov edx, dword [ebx + 0x44]
mov ecx, dword [esp + 0x90]
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push esi
push edi
xor edi, edi
mov dword [esp + 0x44], 8
push edi
push edi
push 0x1304
push edx
mov dword [esp + 0x6c], ecx
call ebp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x9c]
push 0xffffffffffffffde
push eax
call dword [sym.imp.USER32.dll_GetClassLongW]
mov ecx, dword [ebx + 0x44]
push edi
push edi
push 0x1304
push ecx
mov esi, eax
call ebp
test eax, eax
jne 0x4669c4
mov eax, dword [ebx + 0x84]
mov dword [ebx + 0x84], edi
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
push edi
push edi
push 0x21
push 0x10
push 0x10
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov dword [ebx + 0x84], eax
mov edx, dword [ebx + 0x84]
mov eax, dword [0x4d9540]
push esi
push 0xffffffffffffffff
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], 1
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
mov ecx, 0x201
mov edx, dword [eax - 0xc]
lea esi, [eax - 0xc]
cmp edx, 1
mov dword [esp + 0x28], esi
jg 0x466a1e
cmp dword [eax - 4], ecx
jge 0x466a6b
mov edi, dword [eax - 8]
cmp edi, ecx
mov dword [esp + 0x40], edi
jle 0x466a2b
mov ecx, edi
push ecx
lea ecx, [esp + 0x24]
call fcn.004012f0
test eax, eax
je 0x466a6b
lea ecx, [edi + edi + 2]
mov edi, dword [esp + 0x20]
mov eax, ecx
add esi, 0xc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x40]
mov ecx, eax
mov eax, dword [esp + 0x28]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
push eax
mov dword [ecx - 8], edx
call fcn.00401350
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x9c]
push 0x200
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x20]
call fcn.00401380
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x20]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x60]
mov word [edx + eax*2], 0
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x14], eax
call fcn.00467610
lea ecx, [esp + 0x9c]
push eax
push ecx
lea ecx, [esp + 0x80]
call fcn.00467720
lea edx, [esp + 0x28]
push eax
push edx
lea ecx, [ebx + 0x94]
call fcn.00467630
mov esi, dword [eax]
lea ecx, [esp + 0x80]
call fcn.004662e0
lea ecx, [esp + 0x60]
call fcn.004662e0
mov eax, dword [esp + 0x10]
mov dword [esi + 0x18], eax
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x1c], ecx
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
mov dword [esi + 0x20], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x24], eax
call fcn.0040ec90
lea edx, [esp + 0x24]
lea ecx, [esi + 0x2c]
push edx
call fcn.0040ec90
mov ecx, dword [ebx + 0x84]
mov esi, dword [esp + 0x44]
mov edx, dword [ebx + 0x44]
mov eax, dword [esp + 0x10]
push ecx
push 0
or esi, 2
push 0x1303
push edx
mov dword [esp + 0x54], esi
mov dword [esp + 0x68], eax
call ebp
mov edi, dword [esp + 0x38]
mov ecx, dword [ebx + 0x44]
lea eax, [esp + 0x44]
push eax
push edi
push 0x133e
push ecx
call ebp
mov edx, dword [ebx + 0x44]
push 0x3c
push 0
push 0x1331
push edx
call ebp
mov eax, dword [ebx + 0x44]
lea esi, [ebx + 0x44]
push 0
push 0
push 0x1304
push eax
call ebp
test eax, eax
jle 0x466bc9
lea ecx, [esp + 0x28]
push ecx
push 0
mov ecx, esi
call fcn.0043d440
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
sub edx, ecx
cmp edx, 0x8c
je 0x466bc9
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
sub eax, edx
mov ecx, 0x8c
push eax
lea eax, [esp + 0x3c]
push ecx
push eax
mov ecx, esi
call fcn.0043d480
mov edx, dword [ebx + 0xac]
mov ecx, dword [esp + 0x9c]
lea esi, [ebx + 0xa4]
mov dword [esp + 0x28], ecx
lea eax, [edx*4 + 4]
mov dword [esp + 0x38], 1
mov ecx, dword [esi]
push eax
push ecx
call fcn.004c58b3
add esp, 8
test eax, eax
je 0x466c3b
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
mov dword [esi], eax
lea eax, [edx*4 + 4]
push eax
push ecx
call fcn.004c58b3
add esp, 8
test eax, eax
je 0x466c3b
mov edx, dword [esi + 8]
mov dword [esi + 4], eax
inc edx
lea ecx, [esp + 0x28]
mov dword [esi + 8], edx
mov eax, edx
lea edx, [esp + 0x38]
dec eax
push edx
push ecx
push eax
mov ecx, esi
call fcn.004330d0
mov edx, dword [esp + 0x9c]
push 0
push edi
push edx
mov ecx, ebx
call fcn.00465560
mov eax, dword [ebx + 0x44]
push 0
push 0
push 0x1304
push eax
call ebp
mov ecx, dword [ebx + 0x28]
pop edi
pop esi
cmp eax, ecx
pop ebp
jne 0x466c70
mov ecx, dword [ebx + 0x3c]
push 0
call fcn.00462000
lea ecx, [esp + 4]
call fcn.004662e0
pop ebx
add esp, 0x88
ret 8