Function at 0x486310
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x284
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea edx, [ebp + 8]
push edi
mov edi, dword [0x4db120]
push esi
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 8]
push 0
push 0
mov dword [esp + 0x20], edi
call fcn.00483c30
mov ecx, dword [ebp + 8]
add esp, 0xc
mov ebx, eax
call fcn.0042a6c0
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4863a0
mov eax, dword [0x4d70f4]
test byte [eax + 0xe0], 1
jne 0x486382
mov ecx, dword [0x4d995c]
push 1
push 0
push 0xffffffffffffffff
push 0x4c40b0
call fcn.004b04f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x10]
push 0x4c3c29
push 0
push 0x4c40b0
call fcn.0044d1f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test ebx, ebx
je 0x486355
cmp byte [esi], 0
jne 0x4863af
mov eax, dword [edi + 0x18]
mov dword [ebp + 0xc], eax
mov ecx, dword [0x4d995c]
push 1
push 0
push 0xffffffffffffffff
push 0x4c3cb0
call fcn.004b04f0
mov eax, dword [0x4da494]
mov esi, 1
mov dword [esp + 0x30], eax
mov eax, dword [0x4da490]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
mov dword [0x4da494], 0
mov dword [0x4da490], 0
cmp eax, 3
je 0x486950
cmp eax, 4
je 0x486950
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.00492960
mov edi, eax
mov eax, dword [esp + 0x18]
cmp eax, 2
je 0x48642f
mov ecx, dword [esp + 0x14]
push esi
push 0
push 0xffffffffffffffff
push 0
call fcn.004b04f0
mov eax, dword [esp + 0x18]
cmp edi, dword [ebx + 0x10]
jae 0x486ab2
shl edi, 6
dec eax
add edi, dword [ebx + 0x18]
cmp eax, 7
ja case.0x486448.3
jmp dword [eax*4 + 0x486b38]
push dword [ebp + 0x10]
mov ecx, ebx
push edi
push dword [esp + 0x1c]
call fcn.00491550
jmp 0x486aed
lea eax, [esp + 0x48]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [0x4d70f4]
mov eax, dword [eax + 0x94]
test eax, eax
je 0x4864b2
test byte [eax + 0x50], 4
je 0x4864b2
mov edi, dword [esp + 0x14]
mov esi, 3
mov dword [esp + 0x18], esi
jmp 0x4864c9
mov edi, dword [esp + 0x14]
mov eax, 0
test byte [edi + 0x16], 2
setne al
inc eax
mov dword [esp + 0x18], eax
mov esi, eax
push dword [edi + 0x18]
lea eax, [esp + 0x74]
push 0x4cf004
push 0x111
push eax
call fcn.004abdd0
add esp, 0x10
mov dword [esp + 0x10], eax
cmp byte [esp + 0x70], 0
je case.0x486448.3
lea ecx, [esp + 0x1c]
push ecx
push esi
lea ecx, [esp + 0x1c]
push ecx
push eax
lea eax, [esp + 0x80]
mov ecx, 0x4dba98
push eax
call fcn.0043ece0
mov esi, eax
test esi, esi
jne 0x486540
cmp byte [esp + 0x1c], al
mov ecx, 0x4dba98
setne al
inc eax
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x78]
push dword [esp + 0x18]
push eax
call fcn.0043f230
mov esi, eax
test esi, esi
je case.0x486448.3
cmp byte [ebx + 0xc8], 0
je 0x48655d
push dword [0x4dba68]
push 0x60
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_MulDiv]
jmp 0x486561
mov eax, dword [esp + 0x20]
cmp byte [esi + 0x17], 0
mov dword [esp + 0x10], eax
jne 0x48656e
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x486587
mov eax, dword [esi]
and cl, 0x3d
mov byte [esi + 0x15], cl
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov cl, byte [esi + 0x15]
mov eax, dword [esp + 0x10]
and cl, 0x9b
cdq
or cl, 0x18
mov dword [esi], eax
mov dword [esi + 4], edx
mov byte [esi + 0x15], cl
jge 0x4865a9
mov ecx, esi
call fcn.004014a0
and byte [esi + 0x15], 0x8f
jmp 0x4865b9
cmp dword [0x4d9984], 0
je 0x4865b9
mov ecx, esi
call fcn.004014a0
push dword [edi + 0x18]
lea eax, [esp + 0x74]
push 0x4cf008
push 0x111
push eax
call fcn.004abdd0
add esp, 0x10
mov dword [esp + 0x10], eax
cmp byte [esp + 0x70], 0
je case.0x486448.3
lea ecx, [esp + 0x1d]
push ecx
push dword [esp + 0x1c]
lea ecx, [esp + 0x30]
push ecx
push eax
lea eax, [esp + 0x80]
mov ecx, 0x4dba98
push eax
call fcn.0043ece0
mov esi, eax
test esi, esi
jne 0x486633
cmp byte [esp + 0x1d], al
mov ecx, 0x4dba98
setne al
inc eax
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0x78]
push dword [esp + 0x18]
push eax
call fcn.0043f230
mov esi, eax
test esi, esi
je case.0x486448.3
cmp byte [ebx + 0xc8], 0
je 0x486650
push dword [0x4dba68]
push 0x60
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_MulDiv]
jmp 0x486654
mov eax, dword [esp + 0x24]
cmp byte [esi + 0x17], 0
mov dword [esp + 0x10], eax
jne 0x486661
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x48667a
mov eax, dword [esi]
and cl, 0x3d
mov byte [esi + 0x15], cl
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov cl, byte [esi + 0x15]
mov eax, dword [esp + 0x10]
and cl, 0x9b
cdq
or cl, 0x18
mov dword [esi], eax
mov dword [esi + 4], edx
mov byte [esi + 0x15], cl
jge 0x48669c
mov ecx, esi
call fcn.004014a0
and byte [esi + 0x15], 0x8f
jmp 0x4866ac
cmp dword [0x4d9984], 0
je 0x4866ac
mov ecx, esi
call fcn.004014a0
push dword [edi + 0x18]
lea eax, [esp + 0x74]
push 0x4cf00c
push 0x111
push eax
call fcn.004abdd0
add esp, 0x10
mov dword [esp + 0x10], eax
cmp byte [esp + 0x70], 0
je case.0x486448.3
lea ecx, [esp + 0x1e]
push ecx
push dword [esp + 0x1c]
lea ecx, [esp + 0x34]
push ecx
push eax
lea eax, [esp + 0x80]
mov ecx, 0x4dba98
push eax
call fcn.0043ece0
mov esi, eax
test esi, esi
jne 0x486726
cmp byte [esp + 0x1e], al
mov ecx, 0x4dba98
setne al
inc eax
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x78]
push dword [esp + 0x18]
push eax
call fcn.0043f230
mov esi, eax
test esi, esi
je case.0x486448.3
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
cmp byte [ebx + 0xc8], 0
mov dword [esp + 0x10], eax
je 0x48674e
push dword [0x4dba68]
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x10], eax
cmp byte [esi + 0x17], 0
jne 0x486757
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x486770
mov eax, dword [esi]
and cl, 0x3d
mov byte [esi + 0x15], cl
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov cl, byte [esi + 0x15]
mov eax, dword [esp + 0x10]
and cl, 0x9b
cdq
or cl, 0x18
mov dword [esi], eax
mov dword [esi + 4], edx
mov byte [esi + 0x15], cl
jge 0x486792
mov ecx, esi
call fcn.004014a0
and byte [esi + 0x15], 0x8f
jmp 0x4867a2
cmp dword [0x4d9984], 0
je 0x4867a2
mov ecx, esi
call fcn.004014a0
push dword [edi + 0x18]
lea eax, [esp + 0x74]
push 0x4cf010
push 0x111
push eax
call fcn.004abdd0
add esp, 0x10
mov edi, eax
cmp byte [esp + 0x70], 0
je case.0x486448.3
lea eax, [esp + 0x1f]
mov ecx, 0x4dba98
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push edi
lea eax, [esp + 0x80]
push eax
call fcn.0043ece0
mov esi, eax
test esi, esi
jne 0x486817
cmp byte [esp + 0x1f], al
mov ecx, 0x4dba98
setne al
inc eax
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x78]
push edi
push eax
call fcn.0043f230
mov esi, eax
test esi, esi
je case.0x486448.3
mov edi, dword [esp + 0x54]
sub edi, dword [esp + 0x4c]
cmp byte [ebx + 0xc8], 0
je 0x486839
push dword [0x4dba68]
push 0x60
push edi
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edi, eax
cmp byte [esi + 0x17], 0
jne 0x486842
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x48685b
mov eax, dword [esi]
and cl, 0x3d
mov byte [esi + 0x15], cl
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov cl, byte [esi + 0x15]
mov eax, edi
and cl, 0x9b
cdq
or cl, 0x18
mov dword [esi], eax
mov dword [esi + 4], edx
mov byte [esi + 0x15], cl
jge 0x486883
mov ecx, esi
call fcn.004014a0
and byte [esi + 0x15], 0x8f
mov esi, 1
jmp 0x486aef
cmp dword [0x4d9984], 0
je 0x486893
mov ecx, esi
call fcn.004014a0
mov esi, 1
jmp 0x486aef
xor esi, esi
jmp 0x486aef
push dword [edi]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
push 1
test eax, eax
mov ecx, 0x4c3cb0
push 0
mov edx, 0x4c40b0
cmove edx, ecx
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push edx
call fcn.004b04f0
jmp 0x486aed
push dword [edi]
call dword [sym.imp.USER32.dll_IsWindowVisible]
push 1
test eax, eax
mov edx, 0x4c3cb0
push 0
mov ecx, 0x4c40b0
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004b04f0
jmp 0x486aed
push 0x10
lea eax, [esp + 0x5e]
mov word [esp + 0x5c], 0x7830
push eax
push dword [edi]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x64]
add esp, 0xc
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004b04f0
jmp 0x486aed
mov eax, dword [edi + 8]
test eax, eax
je 0x486aef
mov ecx, dword [esp + 0x14]
push 1
push 0
push 0xffffffffffffffff
push dword [eax + 0x18]
call fcn.004b04f0
jmp 0x486aed
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.004b04f0
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
mov dword [esp + 0x44], esi
test esi, esi
je 0x486ab2
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea edi, [eax - 3]
cmp edi, dword [ebx + 0x10]
jb 0x4869a2
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
test esi, esi
je 0x486999
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea edi, [eax - 3]
cmp edi, dword [ebx + 0x10]
jae 0x486ab2
mov eax, dword [ebx + 0x18]
mov ecx, edi
shl ecx, 6
add eax, ecx
mov ecx, dword [eax]
cmp ecx, esi
jne 0x486ab2
cmp edi, 0x2af8
je 0x486ab2
test eax, eax
je 0x486ab2
cmp dword [esp + 0x18], 4
jne 0x486a35
push ecx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
sub eax, 3
cmp eax, 0x2af8
jae 0x486a2b
cmp dword [ebx + 4], 0
je 0x486a2b
cmp eax, dword [ebx + 0x10]
jae 0x486a2b
shl eax, 6
add eax, dword [ebx + 0x18]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x486a17
mov ecx, dword [ecx + 0x18]
lea edx, [esp + 0x188]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x486a04
jmp 0x486a99
push 0x40
lea ecx, [esp + 0x18c]
push ecx
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x486a99
mov byte [esp + 0x188], 0
jmp 0x486a99
lea eax, [esp + 0x188]
push 0xfc
push eax
push dword [esp + 0x4c]
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x486ab2
lea eax, [esp + 0x38]
mov dword [esp + 0x40], 0
push eax
push 0x455100
push dword [ebx + 4]
mov byte [esp + 0x48], 0
call dword [sym.imp.USER32.dll_EnumChildWindows]
cmp byte [esp + 0x3c], 0
je 0x486ab2
push dword [esp + 0x40]
lea eax, [esp + 0x18c]
push 0x4c3d98
push 0x101
push eax
call fcn.004abe20
add esp, 0x10
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x188]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004b04f0
jmp 0x486aed
mov eax, dword [0x4d70f4]
test byte [eax + 0xe0], 1
jne 0x486ad8
mov ecx, dword [0x4d995c]
push 1
push 0
push 0xffffffffffffffff
push 0x4c40b0
call fcn.004b04f0
jmp 0x486aed
mov ecx, dword [esp + 0x10]
push 0x4c3c29
push 0
push 0x4c40b0
call fcn.0044d1f0
mov esi, eax
mov edi, dword [esp + 0x30]
test edi, edi
je 0x486b2b
mov eax, dword [0x4da494]
test eax, eax
je 0x486b1c
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp dword [0x4da490], 0x400000
jbe 0x486b1c
dec dword [0x4da48c]
mov eax, dword [esp + 0x34]
mov dword [0x4da494], edi
mov dword [0x4da490], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc