Function at 0x4f86b9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x537598], 0xffffffff
push esi
call fcn.004f9c59
mov ebx, eax
test ebx, ebx
je 0x4f8f34
cmp edi, 0xffffffff
jne 0x4f8707
push dword [ebx]
call fcn.004f7e1e
test eax, eax
je 0x4f86fb
xor eax, eax
mov dword [0x537598], eax
jmp 0x4f872a
mov dword [0x537598], 1
jmp 0x4f872a
push dword [ebx]
call fcn.004f7e1e
test eax, eax
je 0x4f871c
test edi, edi
jne 0x4f8f34
jmp 0x4f8724
test edi, edi
je 0x4f8f34
mov dword [0x537598], edi
mov edx, 0x80000000
mov dword [0x5650dc], edx
mov dword [0x5650e0], edx
mov dword [0x5650d4], edx
mov dword [0x5650d8], edx
push esi
call sub.USER32.dll_IsIconic
test eax, eax
jne 0x4f875b
push esi
call sub.USER32.dll_IsWindowVisible
test eax, eax
jne 0x4f8767
mov dword [0x537594], 0x20000000
jmp 0x4f876e
xor eax, eax
mov dword [0x537594], eax
mov dword [0x564e64], 0x2c
push 0x564e64
push esi
call sub.USER32.dll_GetWindowPlacement
mov eax, dword [0x564e84]
mov dword [0x5650d8], eax
mov edx, dword [0x564e80]
mov dword [0x5650d4], edx
mov ecx, dword [0x564e8c]
sub ecx, eax
mov dword [0x5650e0], ecx
mov eax, dword [0x564e88]
sub eax, edx
mov dword [0x5650dc], eax
cmp dword [0x532a54], 0
je 0x4f8820
push esi
call fcn.004f7e1e
test eax, eax
jne 0x4f8820
mov edx, dword [0x5650d4]
mov dword [ebp - 8], edx
mov ecx, dword [0x5650d8]
mov dword [ebp - 4], ecx
push 0
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 8]
push edx
push 0
call fcn.004b20ac
push 1
lea ecx, [ebp - 0x28]
push ecx
lea eax, [ebp - 8]
push eax
push 0
call fcn.004b20ac
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmp edx, eax
je 0x4f880c
sub eax, edx
add dword [0x5650d4], eax
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x14]
je 0x4f8820
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x24]
add dword [0x5650d8], ecx
mov eax, dword [0x5650d4]
mov dword [0x564e90], eax
mov edx, dword [0x5650d8]
mov dword [0x564e94], edx
cmp dword [0x537598], 1
jne 0x4f8851
push 0x564e90
push dword [0x537424]
call sub.USER32.dll_ScreenToClient
jmp 0x4f8861
push 0x564e90
push dword [0x537424]
call sub.USER32.dll_ClientToScreen
mov ecx, dword [0x564e90]
mov dword [0x5650d4], ecx
mov eax, dword [0x564e94]
mov dword [0x5650d8], eax
mov edx, dword [0x536414]
mov dword [0x564e98], edx
xor ecx, ecx
mov dword [0x536414], ecx
push 0
mov al, byte [ebx + 0x639]
push eax
mov dl, byte [ebx + 0x638]
push edx
lea ecx, [ebx + 4]
push ecx
call fcn.004fd21f
mov edi, eax
mov dword [0x564e58], edi
push edi
call fcn.004f9c59
mov edi, eax
test edi, edi
jne 0x4f88d1
mov dword [0x537598], 0xffffffff
mov eax, dword [0x564e98]
mov dword [0x536414], eax
jmp 0x4f8f34
mov edx, dword [0x564e58]
mov dword [ebx], edx
mov byte [edi + 0x638], 0xff
xor ecx, ecx
mov dword [edi], ecx
push dword [ebx + 0x774]
call sub.GDI32.dll_DeleteObject
mov eax, dword [edi + 0x774]
mov dword [ebx + 0x774], eax
xor edx, edx
mov dword [edi + 0x774], edx
lea ecx, [ebx + 0x778]
lea eax, [edi + 0x778]
push esi
push edi
mov esi, ecx
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, dword [edi + 0x7dc]
mov dword [ebx + 0x7dc], eax
mov edx, dword [edi + 0x7e0]
mov dword [ebx + 0x7e0], edx
mov ecx, dword [edi + 0x7e8]
mov dword [ebx + 0x7e8], ecx
mov eax, dword [edi + 0x7ec]
mov dword [ebx + 0x7ec], eax
mov edx, dword [edi + 0x660]
mov dword [ebx + 0x660], edx
mov ecx, dword [ebx + 0x748]
mov dword [0x564e5c], ecx
mov eax, dword [ebx + 0x744]
mov dword [0x564e60], eax
mov edx, dword [edi + 0x744]
mov dword [ebx + 0x744], edx
mov ecx, dword [edi + 0x748]
mov dword [ebx + 0x748], ecx
mov eax, dword [edi + 0x74c]
mov dword [ebx + 0x74c], eax
push edi
call fcn.004f7c01
push 0x3b5
push 0x555704
push esi
call sub.USER32.dll_GetWindowTextA
push 0x555704
push dword [0x564e58]
call sub.USER32.dll_SetWindowTextA
cmp byte [ebx + 0x638], 0
jne 0x4f89f7
mov edx, dword [0x564e58]
mov dword [0x537430], edx
mov ecx, dword [0x537598]
mov dword [0x53744c], ecx
jmp 0x4f8ab3
mov al, byte [ebx + 0x638]
cmp al, 2
jne 0x4f8a27
cmp byte [ebx + 0x639], 2
jne 0x4f8a27
mov edx, dword [0x564e58]
mov dword [0x537448], edx
mov ecx, dword [0x537598]
mov dword [0x537454], ecx
jmp 0x4f8ab3
cmp al, 4
jne 0x4f8a43
mov eax, dword [0x564e58]
mov dword [0x537434], eax
mov edx, dword [0x537598]
mov dword [0x53746c], edx
jmp 0x4f8ab3
cmp al, 5
jne 0x4f8a5f
mov ecx, dword [0x564e58]
mov dword [0x537444], ecx
mov eax, dword [0x537598]
mov dword [0x537460], eax
jmp 0x4f8ab3
cmp al, 6
jne 0x4f8a7d
mov edx, dword [0x564e58]
mov dword [0x537438], edx
mov ecx, dword [0x537598]
mov dword [0x537468], ecx
jmp 0x4f8ab3
cmp al, 7
jne 0x4f8a99
mov eax, dword [0x564e58]
mov dword [0x53743c], eax
mov edx, dword [0x537598]
mov dword [0x537464], edx
jmp 0x4f8ab3
cmp al, 8
jne 0x4f8ab3
mov ecx, dword [0x564e58]
mov dword [0x537440], ecx
mov eax, dword [0x537598]
mov dword [0x537470], eax
mov eax, dword [0x564e60]
test eax, eax
je 0x4f8b49
push 0x555704
push 0x3e7
push 0xd
push eax
call sub.USER32.dll_SendMessageA
cmp byte [0x555704], 0
je 0x4f8b49
push 0x555704
push 0x3e7
push 0xc
push dword [ebx + 0x744]
call sub.USER32.dll_SendMessageA
push 0
push 0
push 0xb0
push dword [0x564e60]
call sub.USER32.dll_SendMessageA
mov dword [0x564e9c], eax
mov edx, dword [0x564e9c]
shr edx, 0x10
and dx, 0xffff
movzx ecx, dx
push ecx
movzx eax, word [0x564e9c]
push eax
push 0xb1
push dword [ebx + 0x744]
call sub.USER32.dll_SendMessageA
push 0
push 0
push 0xb7
push dword [ebx + 0x744]
call sub.USER32.dll_SendMessageA
cmp dword [0x564e5c], 0
je 0x4f8ddb
push 0
push 0
push 0x184
push 0x425
push dword [0x564e58]
call sub.USER32.dll_SendDlgItemMessageA
push 0
push 0
push 0x18b
push dword [0x564e5c]
call sub.USER32.dll_SendMessageA
mov edi, eax
mov dword [0x564ea0], edi
inc edi
je 0x4f8d55
xor eax, eax
mov dword [0x564eb4], eax
jmp 0x4f8cd7
cmp byte [ebx + 0x638], 4
jne 0x4f8bf8
push 0x564eb0
push eax
push 0x189
push dword [0x564e5c]
call sub.USER32.dll_SendMessageA
mov edi, dword [0x564eb0]
test edi, edi
je 0x4f8bef
push esi
push edi
mov esi, 0x555704
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
jmp 0x4f8c13
mov byte [0x555704], 0
jmp 0x4f8c13
push 0x555704
push dword [0x564eb4]
push 0x189
push dword [0x564e5c]
call sub.USER32.dll_SendMessageA
cmp byte [0x555704], 0
je 0x4f8cd1
push 0
push dword [0x564eb4]
push 0x199
push dword [0x564e5c]
call sub.USER32.dll_SendMessageA
mov dword [0x564eac], eax
push 0x555704
push 0xffffffffffffffff
push 0x181
push 0x425
push dword [0x564e58]
call sub.USER32.dll_SendDlgItemMessageA
mov edi, eax
mov dword [0x564ea8], edi
inc edi
je 0x4f8c8b
push dword [0x564eac]
push dword [0x564ea8]
push 0x19a
push 0x425
push dword [0x564e58]
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_SendMessageA
push 0
push dword [0x564eb4]
push 0x187
push dword [0x564e5c]
call sub.USER32.dll_SendMessageA
mov dword [0x564ea4], eax
mov eax, dword [0x564ea4]
test eax, eax
je 0x4f8cd1
inc eax
je 0x4f8cd1
push dword [0x564eb4]
push 1
push 0x185
push 0x425
push dword [0x564e58]
call sub.USER32.dll_SendDlgItemMessageA
inc dword [0x564eb4]
mov eax, dword [0x564eb4]
cmp eax, dword [0x564ea0]
jl 0x4f8b9e
push 0
push 0
push 0x18e
push dword [0x564e5c]
call sub.USER32.dll_SendMessageA
mov edi, eax
mov dword [0x564ea0], edi
push 0
push edi
push 0x197
push 0x425
push dword [0x564e58]
call sub.USER32.dll_SendDlgItemMessageA
push 0
push 0
push 0x19f
push dword [0x564e5c]
call sub.USER32.dll_SendMessageA
mov edi, eax
mov dword [0x564ea0], edi
cmp edi, 0xffffffff
je 0x4f8d55
push 0
push edi
push 0x19e
push 0x425
push dword [0x564e58]
call sub.USER32.dll_SendDlgItemMessageA
cmp byte [ebx + 0x638], 4
jne 0x4f8d77
push 0
push 0x5376ed
push 0x425
push dword [0x537434]
call fcn.004f9714
jmp 0x4f8ddb
cmp byte [ebx + 0x638], 6
jne 0x4f8d99
push 3
push str._tURL:
push 0x425
push dword [0x537438]
call fcn.004f9714
jmp 0x4f8ddb
cmp byte [ebx + 0x638], 7
jne 0x4f8dbb
push 1
push 0x5376f8
push 0x425
push dword [0x53743c]
call fcn.004f9714
jmp 0x4f8ddb
cmp byte [ebx + 0x638], 8
jne 0x4f8ddb
push 2
push 0x5376fc
push 0x425
push dword [0x537440]
call fcn.004f9714
mov eax, dword [0x53729c]
test eax, eax
je 0x4f8e02
cmp esi, dword [eax + 0x484]
jne 0x4f8df8
mov edx, dword [0x564e58]
mov dword [eax + 0x484], edx
mov eax, dword [eax + 0x49c]
test eax, eax
jne 0x4f8de4
mov eax, dword [0x536644]
test eax, eax
je 0x4f8e29
cmp esi, dword [eax + 0x8c]
jne 0x4f8e1f
mov edx, dword [0x564e58]
mov dword [eax + 0x8c], edx
mov eax, dword [eax + 0x484]
test eax, eax
jne 0x4f8e0b
mov eax, dword [0x5348e0]
test eax, eax
je 0x4f8e48
cmp esi, dword [eax]
jne 0x4f8e3e
mov edx, dword [0x564e58]
mov dword [eax], edx
mov eax, dword [eax + 0x1fc]
test eax, eax
jne 0x4f8e32
mov eax, dword [0x52e838]
test eax, eax
je 0x4f8e69
cmp esi, dword [eax]
jne 0x4f8e5f
mov edx, dword [0x564e58]
mov dword [eax], edx
jmp 0x4f8e69
mov eax, dword [eax + 0x458]
test eax, eax
jne 0x4f8e51
mov eax, dword [0x5357ac]
test eax, eax
je 0x4f8e8a
cmp esi, dword [eax]
jne 0x4f8e80
mov edx, dword [0x564e58]
mov dword [eax], edx
jmp 0x4f8e8a
mov eax, dword [eax + 0x470]
test eax, eax
jne 0x4f8e72
mov eax, dword [0x529f18]
test eax, eax
je 0x4f8eab
cmp esi, dword [eax]
jne 0x4f8ea1
mov edx, dword [0x564e58]
mov dword [eax], edx
jmp 0x4f8eab
mov eax, dword [eax + 0x87c]
test eax, eax
jne 0x4f8e93
push 0
push 0
push 0x10
push esi
call sub.USER32.dll_SendMessageA
push 0
push dword [0x564e58]
call fcn.004fa30c
push 1
push 0
push dword [0x564e58]
call sub.USER32.dll_InvalidateRect
push dword [0x564e58]
call sub.USER32.dll_UpdateWindow
mov ecx, dword [0x564e98]
mov dword [0x536414], ecx
mov edi, dword [0x537598]
mov dword [0x537598], 0xffffffff
test edi, edi
je 0x4f8f14
push dword [0x537420]
call sub.USER32.dll_BringWindowToTop
push dword [0x537420]
call sub.USER32.dll_SetForegroundWindow
push ebx
call fcn.004fba21
push edi
push 0
push dword [ebx]
call fcn.004c7124
cmp dword [0x536414], 0
je 0x4f8f34
push 0
call fcn.004e6fbd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8