Function at 0x4805c4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
mov esi, 0x511ff4
mov edi, 0x512024
cmp dword [ebx + 4], 0
jne 0x480622
push 0x63
mov eax, dword [ebp + 0x1c]
push eax
mov edx, dword [ebp + 0x18]
push edx
push ebx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.004b6d0c
mov dword [edi], eax
cmp dword [edi], 1
jne 0x48061b
cmp dword [ebx + 4], 1
je 0x48061b
cmp dword [ebx + 4], 2
je 0x48061b
push 6
mov ecx, dword [ebp + 0x1c]
push ecx
push ebx
call fcn.0045c3c8
jmp 0x480fe9
mov eax, dword [edi]
jmp 0x480fe9
cmp dword [ebx + 0x30], 0
jne 0x480632
mov eax, 2
jmp 0x480fe9
cmp dword [ebx + 4], 2
jne 0x48064b
mov edx, dword [ebx + 0x30]
cmp dword [edx + 0x30], 0
jne 0x48064b
mov eax, 2
jmp 0x480fe9
mov edx, dword [ebx + 0x30]
cmp dword [edx + 0x18], 1
je 0x48065e
mov eax, 1
jmp 0x480fe9
cmp dword [ebx + 4], 2
jne 0x48067a
mov edx, dword [ebx + 0x30]
mov ecx, dword [edx + 0x30]
cmp dword [ecx + 0x18], 1
je 0x48067a
mov eax, 1
jmp 0x480fe9
mov edx, dword [ebx + 0x30]
cmp dword [edx + 8], 0
jne 0x480fb4
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x48069f
mov edx, dword [ebx + 0x30]
mov ecx, dword [edx + 0x30]
cmp dword [ecx + 8], 0
jne 0x480fb4
cmp eax, 2
jne 0x4806b7
mov eax, dword [ebx + 0x30]
mov edx, dword [eax + 0x30]
mov ecx, dword [edx]
push ecx
call fcn.00409a14
pop ecx
mov dword [edi], eax
jmp 0x4806e0
mov eax, dword [ebx + 0x30]
mov edx, dword [eax]
xor ecx, ecx
mov cl, byte [edx]
test byte [ecx*2 + 0x500706], 4
je 0x4806da
mov eax, dword [ebx + 0x30]
mov edx, dword [eax]
push edx
call fcn.00409a14
pop ecx
mov dword [edi], eax
jmp 0x4806e0
mov dword [edi], 0x270f
cmp dword [edi], 0
jg 0x480745
xor ecx, ecx
mov dword [edi], ecx
mov eax, dword [0x4fd9e4]
mov dword [esi], eax
jmp 0x480726
cmp dword [ebx + 4], 2
jne 0x48070f
add eax, 4
push eax
mov edx, dword [ebx + 0x30]
mov ecx, dword [edx]
push ecx
call fcn.004e842c
test eax, eax
je 0x48071c
inc dword [edi]
jmp 0x48071c
mov eax, dword [esi]
cmp byte [eax + 0x4cc], 9
jne 0x48071c
inc dword [edi]
mov edx, dword [esi]
mov ecx, dword [edx + 0x828]
mov dword [esi], ecx
mov eax, dword [esi]
test eax, eax
jne 0x4806f2
mov edx, dword [edi]
push edx
push 0x4f7a2f
mov ecx, dword [ebp + 0x14]
push ecx
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x480fb4
cmp dword [edi], 0x270f
jne 0x4807ac
mov eax, dword [ebx + 0x30]
mov edx, dword [eax]
cmp byte [edx], 0x2d
jne 0x4807ac
xor ecx, ecx
mov dword [edi], ecx
xor eax, eax
mov dword [esi], eax
xor edx, edx
mov dword [ebp + 8], edx
mov ecx, dword [ebx + 0x30]
mov eax, dword [ecx]
cmp byte [eax + 1], 0x31
jne 0x48077c
call sub.USER32.dll_GetDesktopWindow
mov dword [ebp + 8], eax
jmp 0x480851
mov edx, dword [ebx + 0x30]
mov ecx, dword [edx]
mov al, byte [ecx + 1]
cmp al, 0x32
jne 0x480796
mov edx, dword [0x4fd9ec]
mov dword [ebp + 8], edx
jmp 0x480851
cmp al, 0x33
jne 0x480851
mov ecx, dword [0x4fd9f0]
mov dword [ebp + 8], ecx
jmp 0x480851
xor eax, eax
mov dword [ebp + 8], eax
mov edx, dword [0x4fd9e4]
mov dword [esi], edx
jmp 0x480847
cmp dword [edi], 0x270f
jne 0x480803
cmp dword [ebx + 4], 2
jne 0x4807e5
add eax, 4
push eax
mov ecx, dword [ebx + 0x30]
mov eax, dword [ecx]
push eax
call fcn.004e842c
test eax, eax
je 0x48082f
xor edx, edx
mov dword [edi], edx
jmp 0x48082f
mov ecx, dword [esi]
add ecx, 4
push ecx
mov eax, dword [ebx + 0x30]
mov edx, dword [eax]
push edx
call fcn.004014a8
add esp, 8
test eax, eax
jne 0x48082f
xor ecx, ecx
mov dword [edi], ecx
jmp 0x48082f
cmp dword [ebx + 4], 2
jne 0x480822
mov eax, dword [esi]
add eax, 4
push eax
mov edx, dword [ebx + 0x30]
mov ecx, dword [edx]
push ecx
call fcn.004e842c
test eax, eax
je 0x48082f
dec dword [edi]
jmp 0x48082f
mov eax, dword [esi]
cmp byte [eax + 0x4cc], 9
jne 0x48082f
dec dword [edi]
cmp dword [edi], 0
jg 0x48083d
mov edx, dword [esi]
mov ecx, dword [edx]
mov dword [ebp + 8], ecx
jmp 0x480851
mov eax, dword [esi]
mov edx, dword [eax + 0x828]
mov dword [esi], edx
mov eax, dword [esi]
test eax, eax
jne 0x4807be
cmp dword [ebp + 8], 0
jne 0x480882
push 0x4f1c84
mov edx, dword [ebx + 0x30]
mov ecx, dword [edx]
push ecx
call fcn.004014a8
add esp, 8
test eax, eax
jne 0x480882
mov eax, dword [0x4f1c80]
mov dword [esi], eax
test eax, eax
je 0x48087e
mov edx, dword [eax]
mov dword [ebp + 8], edx
xor ecx, ecx
mov dword [edi], ecx
cmp dword [ebp + 8], 0
je 0x480f85
cmp dword [edi], 0
jne 0x480f85
cmp dword [ebx + 0xc], 0
je 0x480f54
push 0x2e
mov eax, dword [ebx]
push eax
call fcn.004015cc
add esp, 8
mov dword [0x511ff8], eax
test eax, eax
je 0x480f54
cmp dword [esi], 0
je 0x480e6d
push 0x512014
mov edx, dword [ebp + 8]
push edx
call fcn.004eb328
push 0x4f7a33
mov ecx, dword [0x511ff8]
push ecx
call fcn.004014a8
add esp, 8
test eax, eax
jne 0x480904
mov eax, dword [0x512014]
push eax
push 0x4f7a37
mov edx, dword [ebp + 0x14]
push edx
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x480fb4
push 0x4f7a3b
mov ecx, dword [0x511ff8]
push ecx
call fcn.004014a8
add esp, 8
test eax, eax
jne 0x480938
mov eax, dword [0x512018]
push eax
push 0x4f7a3f
mov edx, dword [ebp + 0x14]
push edx
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x480fb4
push 0x4f7a43
mov ecx, dword [0x511ff8]
push ecx
call fcn.004014a8
add esp, 8
test eax, eax
jne 0x48096c
mov eax, dword [0x51201c]
push eax
push 0x4f7a47
mov edx, dword [ebp + 0x14]
push edx
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x480fb4
push 0x4f7a4b
mov ecx, dword [0x511ff8]
push ecx
call fcn.004014a8
add esp, 8
test eax, eax
jne 0x4809a0
mov eax, dword [0x512020]
push eax
push 0x4f7a4f
mov edx, dword [ebp + 0x14]
push edx
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x480fb4
push 0x4f7a53
mov ecx, dword [0x511ff8]
push ecx
call fcn.004014a8
add esp, 8
test eax, eax
jne 0x4809f2
mov eax, dword [esi]
mov edx, dword [eax]
push edx
call fcn.004e8a90
test eax, eax
je 0x4809d5
push 0x512014
mov ecx, dword [esi]
mov eax, dword [ecx]
push eax
call sub.USER32.dll_ClientToScreen
mov edx, dword [0x512014]
push edx
push 0x4f7a58
mov ecx, dword [ebp + 0x14]
push ecx
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x480fb4
push 0x4f7a5c
mov eax, dword [0x511ff8]
push eax
call fcn.004014a8
add esp, 8
test eax, eax
jne 0x480a43
mov edx, dword [esi]
mov ecx, dword [edx]
push ecx
call fcn.004e8a90
test eax, eax
je 0x480a26
push 0x512014
mov eax, dword [esi]
mov edx, dword [eax]
push edx
call sub.USER32.dll_ClientToScreen
mov ecx, dword [0x512018]
push ecx
push 0x4f7a61
mov eax, dword [ebp + 0x14]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x480fb4
push 0x4f7a65
mov edx, dword [0x511ff8]
push edx
call fcn.004014a8
add esp, 8
test eax, eax
jne 0x480a7a
mov ecx, dword [esi]
mov eax, dword [ecx + 0x5c8]
push eax
push 0x4f7a6a
mov edx, dword [ebp + 0x14]
push edx
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x480fb4
push 0x4f7a6e
mov ecx, dword [0x511ff8]
push ecx
call fcn.004014a8
add esp, 8
test eax, eax
jne 0x480ab1
mov eax, dword [esi]
mov edx, dword [eax + 0x5cc]
push edx
push 0x4f7a73
mov ecx, dword [ebp + 0x14]
push ecx
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x480fb4
push 0x4f7a77
mov eax, dword [0x511ff8]
push eax
call fcn.004014a8
add esp, 8
test eax, eax
jne 0x480b02
mov edx, dword [esi]
mov eax, dword [edx + 0x5dc]
test eax, eax
je 0x480fb4
push 0x511ffc
push 0x18
push eax
call sub.GDI32.dll_GetObjectA
mov edx, dword [0x512000]
push edx
push 0x4f7a7c
mov ecx, dword [ebp + 0x14]
push ecx
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x480fb4
push 0x4f7a80
mov eax, dword [0x511ff8]
push eax
call fcn.004014a8
add esp, 8
test eax, eax
jne 0x480b53
mov edx, dword [esi]
mov eax, dword [edx + 0x5dc]
test eax, eax
je 0x480fb4
push 0x511ffc
push 0x18
push eax
call sub.GDI32.dll_GetObjectA
mov edx, dword [0x512004]
push edx
push 0x4f7a85
mov ecx, dword [ebp + 0x14]
push ecx
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x480fb4
push 0x4f7a89
mov eax, dword [0x511ff8]
push eax
call fcn.004014a8
add esp, 8
test eax, eax
jne 0x480c0e
mov edx, dword [esi]
cmp byte [edx + 0x4e4], 0
jne 0x480ba8
mov ecx, dword [ebp + 8]
push ecx
call sub.USER32.dll_IsIconic
test eax, eax
jne 0x480b93
mov eax, dword [ebp + 8]
push eax
call sub.USER32.dll_IsWindowVisible
test eax, eax
jne 0x480ba8
mov edx, dword [ebp + 0x14]
mov esi, 0x4f7a91
mov edi, edx
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x480fb4
mov edx, dword [ebp + 8]
push edx
call sub.USER32.dll_IsIconic
test eax, eax
jne 0x480bc2
mov ecx, dword [ebp + 8]
push ecx
call sub.USER32.dll_IsWindowVisible
test eax, eax
jne 0x480bd7
mov eax, dword [ebp + 0x14]
mov esi, 0x4f7a99
mov edi, eax
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x480fb4
mov edx, dword [ebp + 8]
push edx
call sub.USER32.dll_IsZoomed
test eax, eax
je 0x480bf9
mov ecx, dword [ebp + 0x14]
mov esi, 0x4f7aa4
mov edi, ecx
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x480fb4
mov edx, dword [ebp + 0x14]
mov esi, 0x4f7aaf
mov edi, edx
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x480fb4
push 0x4f7ab7
mov edx, dword [0x511ff8]
push edx
call fcn.004014a8
add esp, 8
test eax, eax
jne 0x480c5c
mov ecx, dword [ebp + 8]
push ecx
call fcn.004e8a90
test eax, eax
je 0x480c47
mov eax, dword [ebp + 0x14]
mov esi, 0x4f7abd
mov edi, eax
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x480fb4
mov edx, dword [ebp + 0x14]
mov esi, 0x4f7ac4
mov edi, edx
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x480fb4
push 0x4f7acc
mov edx, dword [0x511ff8]
push edx
call fcn.004014a8
add esp, 8
test eax, eax
jne 0x480ca7
mov ecx, dword [esi]
add ecx, 0x604
mov eax, dword [ebp + 0x14]
push esi
mov edi, ecx
mov esi, 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 esi
jmp 0x480fb4
push 0x4f7ad3
mov eax, dword [0x511ff8]
push eax
call fcn.004014a8
add esp, 8
test eax, eax
jne 0x480cf5
mov edx, dword [esi]
cmp dword [edx + 0x66c], 0x190
jle 0x480ce0
mov ecx, dword [ebp + 0x14]
mov esi, 0x4f7ade
mov edi, ecx
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x480fb4
mov edx, dword [ebp + 0x14]
mov esi, 0x4f7ae5
mov edi, edx
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x480fb4
push 0x4f7aed
mov edx, dword [0x511ff8]
push edx
call fcn.004014a8
add esp, 8
test eax, eax
jne 0x480d2c
mov ecx, dword [esi]
mov eax, dword [ecx + 0x668]
push eax
push 0x4f7af8
mov edx, dword [ebp + 0x14]
push edx
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x480fb4
push 6
push 0x4f7afc
mov ecx, dword [0x511ff8]
push ecx
call fcn.00401540
add esp, 0xc
test eax, eax
jne 0x480dc0
push pe_nt_image_headers32
mov eax, dword [ebp + 0x1c]
push eax
mov edx, dword [ebp + 8]
push edx
call sub.USER32.dll_GetWindowTextA
mov ecx, dword [ebp + 0x1c]
mov byte [ecx + 0x100], 0
push 0x20
mov eax, dword [ebp + 0x1c]
push eax
call fcn.00401278
add esp, 8
mov esi, eax
mov dword [0x511ff8], esi
test esi, esi
je 0x480fb4
inc dword [0x511ff8]
mov esi, dword [0x511ff8]
cmp byte [esi], 0
je 0x480fb4
mov eax, dword [ebp + 0x14]
push esi
mov edi, esi
mov esi, 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 esi
jmp 0x480fb4
push 0x4f7b04
mov eax, dword [0x511ff8]
push eax
call fcn.004014a8
add esp, 8
test eax, eax
jne 0x480e0a
mov edx, dword [esi]
add edx, 0x3ac
mov ecx, dword [ebp + 0x14]
push esi
mov edi, edx
mov esi, ecx
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 esi
jmp 0x480fb4
push 0x4f7b0e
mov eax, dword [0x511ff8]
push eax
call fcn.004014a8
add esp, 8
test eax, eax
jne 0x480fb4
mov edx, dword [esi]
cmp dword [edx + 0x4dc], 1
je 0x480e44
mov ecx, dword [esi]
cmp dword [ecx + 0x4dc], 2
jne 0x480e58
cmp dword [0x4fb0ec], 0
je 0x480e58
mov eax, dword [ebp + 0x14]
mov esi, 0x4f7b16
mov edi, eax
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x480fb4
mov edx, dword [ebp + 0x14]
mov esi, 0x4f7b1d
mov edi, edx
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x480fb4
push 0x512014
mov edx, dword [ebp + 8]
push edx
call sub.USER32.dll_GetWindowRect
push 0x4f7b25
mov ecx, dword [0x511ff8]
push ecx
call fcn.004014a8
add esp, 8
test eax, eax
jne 0x480eaf
mov eax, dword [0x512014]
push eax
push 0x4f7b29
mov edx, dword [ebp + 0x14]
push edx
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x480fb4
push 0x4f7b2d
mov ecx, dword [0x511ff8]
push ecx
call fcn.004014a8
add esp, 8
test eax, eax
jne 0x480ee3
mov eax, dword [0x512018]
push eax
push 0x4f7b31
mov edx, dword [ebp + 0x14]
push edx
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x480fb4
push 0x4f7b35
mov ecx, dword [0x511ff8]
push ecx
call fcn.004014a8
add esp, 8
test eax, eax
jne 0x480f1d
mov eax, dword [0x51201c]
sub eax, dword [0x512014]
push eax
push 0x4f7b39
mov edx, dword [ebp + 0x14]
push edx
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x480fb4
push 0x4f7b3d
mov ecx, dword [0x511ff8]
push ecx
call fcn.004014a8
add esp, 8
test eax, eax
jne 0x480fb4
mov eax, dword [0x512020]
sub eax, dword [0x512018]
push eax
push 0x4f7b41
mov edx, dword [ebp + 0x14]
push edx
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x480fb4
mov edi, dword [esi]
test edi, edi
je 0x480fb4
add edi, 4
mov eax, dword [ebp + 0x14]
push esi
push edi
mov esi, 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
jmp 0x480fb4
mov edi, dword [esi]
test edi, edi
je 0x480fb4
add edi, 4
mov eax, dword [ebp + 0x14]
push esi
push edi
mov esi, 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 [ebx + 0x30]
push eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
push ecx
call fcn.00498fb0
mov esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
cmp dword [ebx + 4], 2
jne 0x480fdf
mov edx, dword [ebx + 0x30]
push edx
push esi
call fcn.00498fb0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
mov dword [ebx + 4], eax
mov eax, 2
pop edi
pop esi
pop ebx
pop ebp
ret 0x18