Function at 0x4794e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
push ebx
mov ebx, dword [0x4e90f8]
lea edx, [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 8]
push 0
push 0
mov dword [esp + 0x20], ebx
call fcn.004777e0
mov ecx, dword [ebp + 8]
add esp, 0xc
mov edi, eax
call fcn.00429010
mov dword [esp + 0x18], eax
test eax, eax
jne 0x479570
mov eax, dword [0x4e498c]
test byte [eax + 0xe0], 1
jne 0x479552
mov ecx, dword [0x4e7934]
push 1
push 0
push 0xffffffffffffffff
push 0x4d07c0
call fcn.0049e6b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x10]
push 0x4d0335
push 0
push 0x4d07c0
call fcn.00446950
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test edi, edi
je 0x479525
cmp byte [esi], 0
jne 0x47957f
mov eax, dword [ebx + 0x18]
mov dword [ebp + 0xc], eax
mov ecx, dword [0x4e7934]
push 1
push 0
push 0xffffffffffffffff
push 0x4d03bc
call fcn.0049e6b0
mov eax, dword [0x4e846c]
mov esi, 1
mov dword [esp + 0x20], eax
mov eax, dword [0x4e8468]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
mov dword [0x4e846c], 0
mov dword [0x4e8468], 0
cmp eax, 3
je 0x47987a
cmp eax, 4
je 0x47987a
push dword [ebp + 0xc]
mov ecx, edi
call fcn.00483830
mov ebx, eax
mov eax, dword [esp + 0x18]
cmp eax, 2
je 0x4795ff
mov ecx, dword [esp + 0x14]
push esi
push 0
push 0xffffffffffffffff
push 0
call fcn.0049e6b0
mov eax, dword [esp + 0x18]
cmp ebx, dword [edi + 0x10]
jae 0x479992
shl ebx, 6
dec eax
add ebx, dword [edi + 0x18]
cmp eax, 7
ja case.0x479618.3
jmp dword [eax*4 + 0x479a18]
push dword [ebp + 0x10]
mov ecx, edi
push ebx
push dword [esp + 0x1c]
call fcn.00482630
jmp 0x4799cd
lea eax, [esp + 0x38]
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [0x4e498c]
mov eax, dword [eax + 0x94]
test eax, eax
je 0x47967e
test byte [eax + 0x50], 4
je 0x47967e
mov ebx, dword [esp + 0x14]
mov eax, 3
jmp 0x47968f
mov ebx, dword [esp + 0x14]
mov eax, 0
test byte [ebx + 0x16], 2
setne al
inc eax
push eax
push ecx
push dword [ebx + 0x18]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x54]
push 0x4db73c
push 0x111
push eax
call fcn.0049a540
add esp, 0x14
mov ecx, 0x4e9a70
push eax
lea eax, [esp + 0x50]
push eax
call fcn.0043a3b0
mov esi, eax
test esi, esi
jne 0x4796cc
xor esi, esi
jmp 0x4799cf
push dword [esp + 0x18]
mov ecx, edi
call fcn.00401900
push 0x18
cdq
mov ecx, esi
push edx
push eax
call fcn.00401520
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x48]
push esi
push ecx
push dword [ebx + 0x18]
push 0x4db740
push 0x111
push eax
call fcn.0049a540
add esp, 0x14
mov ecx, 0x4e9a70
push eax
lea eax, [esp + 0x50]
push eax
call fcn.0043a3b0
mov dword [esp + 0x10], eax
test eax, eax
jne 0x479722
xor esi, esi
jmp 0x4799cf
push dword [esp + 0x1c]
mov ecx, edi
call fcn.00401900
mov ecx, dword [esp + 0x10]
push 0x18
cdq
push edx
push eax
call fcn.00401520
push esi
push ecx
push dword [ebx + 0x18]
lea eax, [esp + 0x54]
push 0x4db744
push 0x111
push eax
call fcn.0049a540
add esp, 0x14
mov ecx, 0x4e9a70
push eax
lea eax, [esp + 0x50]
push eax
call fcn.0043a3b0
mov dword [esp + 0x10], eax
test eax, eax
jne 0x479776
xor esi, esi
jmp 0x4799cf
mov eax, dword [esp + 0x40]
mov ecx, edi
sub eax, dword [esp + 0x38]
push eax
call fcn.00401900
mov ecx, dword [esp + 0x10]
push 0x18
cdq
push edx
push eax
call fcn.00401520
push esi
push ecx
push dword [ebx + 0x18]
lea eax, [esp + 0x54]
push 0x4db748
push 0x111
push eax
call fcn.0049a540
add esp, 0x14
mov ecx, 0x4e9a70
push eax
lea eax, [esp + 0x50]
push eax
call fcn.0043a3b0
mov esi, eax
test esi, esi
je 0x4799cf
mov eax, dword [esp + 0x44]
mov ecx, edi
sub eax, dword [esp + 0x3c]
push eax
call fcn.00401900
push 0x18
cdq
mov ecx, esi
push edx
push eax
call fcn.00401520
mov esi, 1
jmp 0x4799cf
push dword [ebx]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
push 1
test eax, eax
mov ecx, 0x4d03bc
push 0
mov edx, 0x4d07c0
cmove edx, ecx
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push edx
call fcn.0049e6b0
jmp 0x4799cd
push dword [ebx]
call dword [sym.imp.USER32.dll_IsWindowVisible]
push 1
test eax, eax
mov edx, 0x4d03bc
push 0
mov ecx, 0x4d07c0
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, dword [esp + 0x24]
call fcn.0049e6b0
jmp 0x4799cd
push dword [ebx]
mov ecx, dword [esp + 0x18]
call fcn.0049de30
jmp 0x4799cd
mov eax, dword [ebx + 8]
test eax, eax
je 0x4799cf
mov ecx, dword [esp + 0x14]
push 1
push 0
push 0xffffffffffffffff
push dword [eax + 0x18]
call fcn.0049e6b0
jmp 0x4799cd
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.0049e6b0
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [esp + 0x34], eax
test eax, eax
je 0x479992
push eax
mov ecx, edi
call fcn.004018a0
test eax, eax
je 0x479992
cmp dword [esp + 0x18], 4
jne 0x479917
push dword [eax]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
sub eax, 3
cmp eax, 0x2af8
jae 0x47990d
cmp dword [edi + 4], 0
je 0x47990d
cmp eax, dword [edi + 0x10]
jae 0x47990d
shl eax, 6
add eax, dword [edi + 0x18]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4798f9
mov ecx, dword [ecx + 0x18]
lea edx, [esp + 0x160]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x4798e6
jmp 0x47997b
push 0x40
lea ecx, [esp + 0x164]
push ecx
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x47997b
mov byte [esp + 0x160], 0
jmp 0x47997b
lea eax, [esp + 0x160]
push 0xfc
push eax
push dword [esp + 0x3c]
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x479992
lea eax, [esp + 0x28]
mov dword [esp + 0x30], 0
push eax
push 0x44d200
push dword [edi + 4]
mov byte [esp + 0x38], 0
call dword [sym.imp.USER32.dll_EnumChildWindows]
cmp byte [esp + 0x2c], 0
je 0x479992
push dword [esp + 0x30]
lea eax, [esp + 0x164]
push 0x4d04a4
push 0x101
push eax
call fcn.0049a590
add esp, 0x10
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x16c]
mov ecx, ebx
push eax
call fcn.0049e6b0
jmp 0x4799cd
mov eax, dword [0x4e498c]
test byte [eax + 0xe0], 1
jne 0x4799b8
mov ecx, dword [0x4e7934]
push 1
push 0
push 0xffffffffffffffff
push 0x4d07c0
call fcn.0049e6b0
jmp 0x4799cd
mov ecx, dword [esp + 0x10]
push 0x4d0335
push 0
push 0x4d07c0
call fcn.00446950
mov esi, eax
mov edi, dword [esp + 0x20]
test edi, edi
je 0x479a0a
mov eax, dword [0x4e846c]
test eax, eax
je 0x4799fb
push eax
call fcn.004b2343
add esp, 4
cmp dword [0x4e8468], 0x400000
jbe 0x4799fb
dec dword [0x4e8464]
mov eax, dword [esp + 0x24]
mov dword [0x4e846c], edi
mov dword [0x4e8468], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc