Function at 0x465560
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x468
push ebx
push ebp
mov ebp, ecx
push esi
mov esi, dword [sym.imp.USER32.dll_IsWindow]
push edi
mov eax, dword [ebp + 0x44]
lea ebx, [ebp + 0x44]
push eax
call esi
test eax, eax
je 0x4659a8
mov ecx, dword [esp + 0x47c]
push ecx
call esi
test eax, eax
je 0x4659a8
cmp dword [esp + 0x480], 0xffffffff
jne 0x4657af
mov eax, dword [ebx]
mov edx, dword [esp + 0x47c]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1304
push eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], 8
call esi
xor edi, edi
mov dword [esp + 0x10], eax
test eax, eax
jle 0x46560b
mov edx, dword [ebx]
lea ecx, [esp + 0x18]
push ecx
push edi
push 0x133c
push edx
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
cmp ecx, eax
je 0x4655fb
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jl 0x4655d4
jmp 0x46560b
cmp edi, 0xffffffff
mov dword [esp + 0x480], edi
jne 0x4657b5
mov edx, dword [ebx]
mov ecx, dword [esp + 0x47c]
push edx
mov dword [esp + 0x14], ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4659a8
mov ecx, dword [ebx]
mov eax, dword [esp + 0x10]
push 0
push 0
push 0x1304
push ecx
mov dword [esp + 0x28], 8
mov dword [esp + 0x40], eax
call esi
mov edx, dword [esp + 0x10]
push 0xffffffffffffffde
push edx
mov edi, eax
call dword [sym.imp.USER32.dll_GetClassLongW]
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
push 0
push 0
push 0x1304
push eax
call esi
test eax, eax
jne 0x465696
mov eax, dword [ebp + 0x84]
mov dword [ebp + 0x84], 0
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
push 0
push 0
push 0x21
push 0x10
push 0x10
lea ecx, [ebp + 0x84]
call fcn.0043d390
lea ecx, [esp + 0x34]
call fcn.00467610
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x84]
push ecx
push 0xffffffffffffffff
push edx
mov dword [esp + 0x40], 1
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push 0x200
push 0x201
lea ecx, [esp + 0x4c]
mov dword [esp + 0x3c], eax
call fcn.0040f900
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
lea ecx, [esp + 0x48]
call int.00401970
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x34]
lea eax, [esp + 0x10]
mov dword [esp + 0x38], ecx
push edx
push eax
lea ecx, [ebp + 0x94]
call fcn.00466f40
mov ecx, eax
call fcn.00467070
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 0x84]
or ecx, 2
lea eax, [esp + 0x14]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x2c], ecx
push edx
push eax
mov ecx, ebx
call fcn.0043d400
lea ecx, [esp + 0x18]
push ecx
push edi
mov ecx, ebx
call fcn.0043d460
mov edx, dword [ebx]
push 0x3c
push 0
push 0x1331
push edx
call esi
push 0x8c
lea ecx, [ebp + 0x40]
call fcn.004672c0
mov eax, dword [esp + 0x10]
push 1
push eax
lea ecx, [ebp + 0xa4]
call fcn.004a4d20
mov ecx, dword [esp + 0x10]
push 0
push edi
push ecx
mov ecx, ebp
call fcn.00465560
mov edx, dword [ebx]
push 0
push 0
push 0x1304
push edx
call esi
cmp eax, dword [ebp + 0x28]
jne 0x465799
mov ecx, dword [ebp + 0x3c]
push 0
call fcn.00462000
lea ecx, [esp + 0x34]
call fcn.004662e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x468
ret 0xc
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x480]
lea eax, [esp + 0x270]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x58], eax
mov eax, dword [ebx]
push ecx
push edx
push 0x133c
push eax
mov dword [esp + 0x5c], 9
mov dword [esp + 0x6c], 0x104
call esi
mov eax, dword [esp + 0x47c]
mov ecx, dword [esp + 0x64]
cmp ecx, eax
jne 0x4659a8
lea ecx, [esp + 0x68]
push 0x104
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [0x4d9540]
lea eax, [esp + 0x68]
test eax, eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x10], edx
je 0x465881
lea ecx, [esp + 0x68]
shr ecx, 0x10
jne 0x465843
xor edx, edx
lea eax, [esp + 0x68]
mov dx, ax
lea ecx, [esp + 0x10]
push edx
call fcn.0040ff70
jmp 0x465881
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x465881
push edi
lea ecx, [esp + 0x14]
call fcn.004012f0
test eax, eax
je 0x465881
lea ecx, [edi + edi]
mov edi, dword [esp + 0x10]
mov edx, ecx
lea esi, [esp + 0x68]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x10]
mov edi, dword [eax - 8]
cmp edi, 0x20
jle 0x4658fd
lea eax, [edi - 0x20]
test eax, eax
jle 0x4658d4
cmp edi, 0x20
jle 0x4658d4
lea ecx, [esp + 0x10]
call fcn.00401380
lea eax, [edi]
mov ecx, eax
neg ecx
shl ecx, 0x1f
sub ecx, eax
add ecx, edi
lea edx, [ecx + ecx + 2]
mov ecx, dword [esp + 0x10]
push edx
lea eax, [ecx + eax*2]
add ecx, 0x40
push eax
push ecx
call fcn.004c5570
mov ecx, dword [esp + 0x1c]
lea eax, [edi - 0x20]
add esp, 0xc
sub edi, eax
mov dword [ecx - 8], edi
push 0x4db5b0
lea ecx, [esp + 0x18]
call fcn.004014f0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
mov edx, dword [eax - 8]
push edx
call fcn.00401850
lea ecx, [esp + 0x14]
call fcn.004014c0
push 0
lea ecx, [esp + 0x14]
call fcn.0040f900
mov dword [esp + 0x24], eax
lea eax, [esp + 0x47c]
push eax
lea ecx, [ebp + 0x94]
call fcn.00466f40
push eax
lea ecx, [esp + 0x38]
call fcn.00466140
mov eax, dword [esp + 0x484]
test eax, eax
je 0x465957
mov edi, dword [esp + 0x18]
mov ecx, dword [ebp + 0x84]
push eax
or edi, 2
push 0xffffffffffffffff
push ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], eax
mov edi, dword [esp + 0x480]
lea edx, [esp + 0x18]
push edx
push edi
mov ecx, ebx
call fcn.0043d420
mov ebp, dword [ebp + 0x3c]
push 0
add ebp, 4
push 0
push 0x229
mov eax, dword [ebp + 4]
push eax
call esi
cmp dword [esp + 0x47c], eax
jne 0x465996
mov ecx, dword [ebx]
push 0
push edi
push 0x130c
push ecx
call esi
lea ecx, [esp + 0x34]
call fcn.004662e0
lea ecx, [esp + 0x10]
call fcn.004014c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x468
ret 0xc