Function at 0x4ffce0
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x5240]
mov eax, 0x5240
call fcn.006222c0
push 0xffffffffffffffff
push 0x6571f5
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x523c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x4c], edi
mov esi, dword [ebp + 0x524c]
mov dword [ebp - 0x28], esi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
push ebx
movzx eax, word [edi + 0x40]
push eax
mov ecx, esi
call fcn.006008b9
test eax, eax
jne 0x4ffd81
push eax
movzx ecx, word [edi + 0x44]
push ecx
mov ecx, esi
call fcn.006008b9
test eax, eax
jne 0x4ffd81
push eax
movzx edx, word [0x75e230]
push edx
mov ecx, esi
call fcn.006008b9
test eax, eax
jne 0x4ffd81
push eax
push 1
mov ecx, esi
call fcn.006008b9
test eax, eax
je 0x5005cd
push 0x67997c
lea ecx, [ebp - 0x14]
call fcn.004030a0
mov byte [ebp - 4], 1
xor edi, edi
mov dword [ebp - 0x54], edi
push 0x24
call fcn.005f4e18
add esp, 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4ffdb5
mov ecx, eax
call fcn.004274a0
jmp 0x4ffdb7
xor eax, eax
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x5005c1
push 0
movzx eax, word [0x75e230]
push eax
mov ecx, esi
call fcn.006008b9
test eax, eax
je 0x50018e
push 0
movzx ecx, word [0x75e230]
push ecx
mov ecx, esi
call fcn.0060094e
mov dword [ebp - 0x3c], eax
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
lea ecx, [ebp - 0x30]
call fcn.004030a0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x30]
push edx
push 0x678ea8
lea eax, [ebp - 0x14]
push eax
call fcn.00402f60
push str.____StartFragment___
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00622230
add esp, 0x14
mov ebx, eax
mov dword [ebp - 0x2c], ebx
test ebx, ebx
je 0x500177
lea ecx, [ebp - 0x38]
call fcn.004024f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.004024f0
mov byte [ebp - 4], 5
push str.SourceURL:
mov edx, dword [ebp - 0x14]
push edx
call fcn.00622230
add esp, 8
mov edi, eax
test edi, edi
je 0x4ffeeb
cmp edi, ebx
jae 0x4ffeeb
add edi, 0xa
push 0x67b29c
push edi
call fcn.006232f0
add esp, 8
cmp eax, edi
jbe 0x4ffee8
sub eax, edi
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.005f4e47
add esp, 4
mov esi, eax
test esi, esi
je 0x4ffee8
push ebx
push edi
push esi
call fcn.00622730
mov byte [esi + ebx], 0
push 7
push 0x679010
push esi
call fcn.006255fd
add esp, 0x18
test eax, eax
je 0x4ffecd
push 8
push 0x678ff0
push esi
call fcn.006255fd
add esp, 0xc
test eax, eax
jne 0x4ffedf
push esi
push 0x678ea8
lea ecx, [ebp - 0x38]
push ecx
call fcn.00402f60
add esp, 0xc
push esi
call fcn.005f4e52
add esp, 4
mov ebx, dword [ebp - 0x2c]
push str._BASE
mov edx, dword [ebp - 0x14]
push edx
call fcn.00622230
add esp, 8
mov edi, eax
mov dword [ebp - 0x50], edi
test edi, edi
je 0x500042
cmp edi, ebx
jae 0x500042
add edi, 5
mov dword [ebp - 0x50], edi
push 0x684660
push edi
call fcn.006232f0
add esp, 8
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, edi
jbe 0x500042
push 4
push str.HREF
push esi
call fcn.006255fd
add esp, 0xc
test eax, eax
je 0x4fff64
inc esi
push 0x684660
push esi
call fcn.006232f0
add esp, 8
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x500042
jmp 0x4fff32
test esi, esi
je 0x500042
add esi, 4
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
cmp al, 0x20
je 0x5000ff
cmp al, 9
je 0x5000ff
cmp al, 0xd
je 0x5000ff
cmp al, 0xa
je 0x5000ff
cmp al, 0x3d
jne 0x50003f
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
cmp al, 0x20
je 0x4fff9c
cmp al, 9
je 0x4fff9c
cmp al, 0xd
je 0x4fff9c
cmp al, 0xa
je 0x4fff9c
xor bl, bl
mov edi, esi
mov dword [ebp - 0x50], edi
cmp al, 0x27
jne 0x4fffd0
mov bl, 1
push 0x27
inc esi
push esi
call fcn.00622170
add esp, 8
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x22
jne 0x5000df
push 0x22
lea eax, [edi + 1]
push eax
call fcn.00622170
add esp, 8
mov esi, eax
mov dword [ebp - 0x1c], esi
inc edi
mov dword [ebp - 0x50], edi
test esi, esi
je 0x50003f
push 0x2800
push 0
lea ecx, [ebp + 0x21c]
push ecx
call fcn.00621270
add esp, 0xc
sub esi, edi
cmp esi, 0x2800
jl 0x500019
mov esi, 0x27ff
push esi
push edi
lea edx, [ebp + 0x21c]
push edx
call fcn.00622730
lea eax, [ebp + 0x21c]
push eax
push 0x678ea8
lea ecx, [ebp - 0x34]
push ecx
call fcn.00402f60
add esp, 0x18
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x24]
push str.____EndFragment___
push ebx
call fcn.00622230
add esp, 8
test eax, eax
je 0x50005a
mov byte [eax], 0
mov edx, dword [ebp - 0x34]
cmp dword [edx - 0xc], 0
lea eax, [ebp - 0x34]
jne 0x500069
lea eax, [ebp - 0x38]
mov eax, dword [eax]
push esi
mov ecx, dword [ebp - 0x38]
push ecx
push eax
push ebx
call fcn.00458cb0
add esp, 0x10
mov edi, eax
mov dword [ebp - 0x54], edi
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp edi, 1
jle 0x500105
push esi
push 0x146b
push 0x111
mov eax, dword [0x75e284]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.00402560
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00402560
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00402560
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402560
mov eax, 1
jmp 0x5005cf
test bl, bl
jne 0x4fffec
push str._r_n_t___
push edi
call fcn.006232f0
add esp, 8
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x4ffff0
inc esi
jmp 0x4fff6f
jne 0x500149
cmp dword [esi + 8], 0
jle 0x50013d
mov eax, dword [esi + 4]
cmp dword [eax], 0
je 0x500142
push 0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [eax]
add ecx, 0x20
call fcn.005928c0
cmp dword [esi + 8], 0
jle 0x50013d
mov eax, dword [esi + 4]
mov ecx, dword [eax]
test ecx, ecx
je 0x500151
push 1
call fcn.004212d0
jmp 0x500151
call fcn.005f4f65
xor edi, edi
mov dword [ebp - 0x54], edi
jmp 0x50014d
test edi, edi
jne 0x50015c
test esi, esi
je 0x50015c
mov edx, dword [esi]
push 1
mov ecx, esi
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.00402560
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00402560
mov esi, dword [ebp - 0x28]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00402560
mov ebx, dword [ebp - 0x18]
test edi, edi
jne 0x5002ab
mov eax, 1
mov ecx, eax
mov word [ebp - 0x90], cx
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], eax
or edi, 0xffffffff
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x80], eax
lea edx, [ebp - 0x90]
push edx
lea ecx, [ebp - 0x48]
push ecx
push eax
mov ecx, esi
call fcn.006009f7
test eax, eax
jne 0x50023b
mov edx, dword [ebp - 0x4c]
mov ax, word [edx + 0x44]
mov word [ebp - 0x68], ax
mov dword [ebp - 0x64], 0
mov eax, 1
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x48]
push edx
push eax
mov ecx, esi
call fcn.006009f7
test eax, eax
jne 0x50023b
mov eax, dword [ebp - 0x4c]
mov cx, word [eax + 0x40]
mov word [ebp - 0x7c], cx
mov dword [ebp - 0x78], 0
mov eax, 1
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], eax
lea edx, [ebp - 0x7c]
push edx
lea ecx, [ebp - 0x48]
push ecx
push eax
mov ecx, esi
call fcn.006009f7
test eax, eax
je 0x5005c1
push 0
mov edx, dword [ebp - 0x44]
push edx
mov esi, dword [sym.imp.KERNEL32.dll_GlobalSize]
call esi
push eax
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
lea ecx, [ebp - 0xb8]
call fcn.00600a6e
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x44]
push ecx
call esi
push eax
lea ecx, [ebp - 0x14]
call fcn.00402840
mov edi, eax
mov edx, dword [ebp - 0x44]
push edx
call esi
push eax
push edi
lea ecx, [ebp - 0xb8]
call fcn.00600b97
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.ole32.dll_ReleaseStgMedium]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb8]
call fcn.00600ddc
push 7
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x14]
call fcn.004ff900
mov byte [ebp - 4], 7
mov edi, 1
or ebx, edi
mov dword [ebp - 0x18], ebx
push 0x679010
push eax
call fcn.004cf7a0
add esp, 8
test al, al
je 0x500399
push 7
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.004ff900
mov dword [ebp - 4], 8
or ebx, 2
mov dword [ebp - 0x18], ebx
push 0x679008
push eax
call fcn.004cf7a0
add esp, 8
test al, al
je 0x500399
push 6
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004ff900
mov dword [ebp - 4], 9
or ebx, 4
mov dword [ebp - 0x18], ebx
push 0x679430
push eax
call fcn.004cf7a0
add esp, 8
test al, al
je 0x500399
push 6
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x14]
call fcn.004ff900
mov dword [ebp - 4], 0xa
or ebx, 8
mov dword [ebp - 0x18], ebx
push 0x678fe8
push eax
call fcn.004cf7a0
add esp, 8
test al, al
je 0x500399
push 8
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
call fcn.004ff900
mov dword [ebp - 4], 0xb
or ebx, 0x10
mov dword [ebp - 0x18], ebx
push 0x678ff0
push eax
call fcn.004cf7a0
add esp, 8
test al, al
je 0x500399
mov eax, edi
jmp 0x50039b
xor eax, eax
mov byte [ebp - 0x1d], al
mov dword [ebp - 4], 0xa
test bl, 0x10
je 0x5003b8
and ebx, 0xffffffef
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x28]
call fcn.00402560
mov dword [ebp - 4], 9
test bl, 8
je 0x5003d2
and ebx, 0xfffffff7
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x3c]
call fcn.00402560
mov dword [ebp - 4], 8
test bl, 4
je 0x5003ec
and ebx, 0xfffffffb
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x30]
call fcn.00402560
mov dword [ebp - 4], 7
test bl, 2
je 0x500406
and ebx, 0xfffffffd
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x24]
call fcn.00402560
mov dword [ebp - 4], edi
test bl, 1
je 0x50041c
and ebx, 0xfffffffe
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x2c]
call fcn.00402560
cmp byte [ebp - 0x1d], 0
jne 0x5005c1
push 0x2800
push 0
lea ecx, [ebp + 0x2a1c]
push ecx
call fcn.00621270
add esp, 0xc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
push 0x1e
lea edx, [ebp + 0x521c]
push edx
push esi
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x5004e7
mov ecx, str.IEFrame
lea eax, [ebp + 0x521c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x500487
test dl, dl
je 0x500483
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x500487
add eax, 2
add ecx, 2
test dl, dl
jne 0x500467
xor eax, eax
jmp 0x50048c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x500603
push 0xa205
push 5
push 5
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindow]
call esi
push eax
call esi
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov byte [ebp - 4], 0xc
lea ecx, [ebp + 0x21c]
push ecx
push 0x2800
push 0xd
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x2800
lea edx, [ebp + 0x21c]
push edx
lea eax, [ebp + 0x2a1c]
push eax
call fcn.00405470
add esp, 0xc
mov dword [ebp - 4], edi
lea eax, [ebp + 0x2a1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5004f0
sub eax, edx
cmp eax, 4
jb 0x500532
push 6
push str.http:_
lea edx, [ebp + 0x2a1c]
push edx
call fcn.006255fd
add esp, 0xc
test eax, eax
je 0x500548
push 7
push str.https:_
lea eax, [ebp + 0x2a1c]
push eax
call fcn.006255fd
add esp, 0xc
test eax, eax
je 0x500548
push 0x2800
push 0
lea ecx, [ebp + 0x2a1c]
push ecx
call fcn.00621270
add esp, 0xc
xor ebx, ebx
mov dword [ebp + 0x210], ebx
mov dword [ebp + 0x218], ebx
xor edx, edx
mov word [ebp + 0x214], dx
mov byte [ebp - 4], 0x12
push ebx
lea eax, [ebp + 0x2a1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edi, dword [ebp - 0x4c]
mov edx, dword [edi + 0x38]
mov ecx, dword [edx + 0xc8]
call fcn.0049d010
mov esi, eax
cmp esi, ebx
jl 0x500783
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [0x75df7c]
call fcn.00463cd0
cmp eax, ebx
je 0x5005b2
cmp eax, 3
jne 0x50073a
push esi
mov ecx, dword [0x75df7c]
call fcn.00479410
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x210]
call fcn.00401210
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402560
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x523c]
xor ecx, ebp
call fcn.00620b8d
add ebp, 0x5240
mov esp, ebp
pop ebp
ret 0x14
push str.Afx:400000:b:10011:6
lea ecx, [ebp + 0x521c]
push ecx
call fcn.00622230
add esp, 8
lea edx, [ebp + 0x521c]
cmp eax, edx
jne 0x50069e
push 5
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindow]
call esi
push 2
push eax
call esi
push 5
push eax
call esi
push 2
push eax
call esi
push 5
push eax
call esi
push 5
push eax
call esi
mov byte [ebp - 4], 0xe
lea ecx, [ebp + 0x21c]
push ecx
push 0
push 0xc4
push 0x3e9
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x2800
lea edx, [ebp + 0x21c]
push edx
lea eax, [ebp + 0x2a1c]
push eax
call fcn.006223f0
add esp, 0xc
mov dword [ebp - 4], 1
jmp 0x5004e7
mov ecx, str.MozillaWindowClass
lea eax, [ebp + 0x521c]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5006d0
test dl, dl
je 0x5006cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5006d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x5006b0
xor eax, eax
jmp 0x5006d5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x5004e7
push 5
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindow]
call esi
push 2
push eax
call esi
mov byte [ebp - 4], 0x10
lea ecx, [ebp + 0x21c]
push ecx
push 0
push 0xc4
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x2800
lea edx, [ebp + 0x21c]
push edx
lea eax, [ebp + 0x2a1c]
push eax
call fcn.006223f0
add esp, 0xc
mov dword [ebp - 4], 1
jmp 0x5004e7
cmp eax, 2
jne 0x500783
push esi
mov ecx, dword [edi + 0x38]
mov ecx, dword [ecx + 0xc8]
call fcn.004cf7d0
mov eax, dword [eax]
add eax, 0x54
cmp dword [eax + 8], ebx
je 0x500783
push esi
mov edx, dword [edi + 0x38]
mov ecx, dword [edx + 0xc8]
call fcn.004cf7d0
mov eax, dword [eax]
add eax, 0x54
cmp dword [eax], ebx
je 0x500774
mov eax, dword [eax]
jmp 0x500777
add eax, 4
push eax
lea ecx, [ebp + 0x210]
call fcn.004017e0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp + 0x2a1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [edi + 0x38]
mov ecx, dword [edx + 0xc8]
call fcn.0049e4c0
mov ebx, eax
test ebx, ebx
jl 0x500838
push ebx
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + 0xc8]
call fcn.004cf7d0
mov esi, dword [eax]
mov edx, dword [ebp + 0x210]
test edx, edx
mov eax, edx
jne 0x5007db
lea eax, [ebp + 0x214]
lea ecx, [eax + 2]
mov dword [ebp - 0x28], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5007e1
sub eax, dword [ebp - 0x28]
sar eax, 1
je 0x5007ff
push edx
lea ecx, [esi + 0xf4]
call fcn.004017e0
push esi
mov edx, dword [edi + 0x38]
mov ecx, dword [edx + 0xc4]
call fcn.00512850
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], ebx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x48]
push ecx
push 0x139d
push 0x111
mov edx, dword [edi + 0x38]
mov eax, dword [edx + 0xc0]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x210]
call fcn.00401210
jmp 0x5000c9