Function at 0x478a00
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x284
mov eax, dword [0x4cbec8]
lea edx, [ebp + 8]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 8]
push 0
push 0
mov dword [esp + 0x20], eax
call fcn.00476330
mov esi, dword [ebp + 8]
add esp, 0xc
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp byte [esi], 0
jne 0x478a49
mov edi, 1
jmp 0x478add
mov edi, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
push 0x4bed80
push esi
call edi
add esp, 8
test eax, eax
jne 0x478a63
lea edi, [eax + 2]
jmp 0x478add
push str.Focus
push esi
call edi
add esp, 8
test eax, eax
jne 0x478a77
lea edi, [eax + 3]
jmp 0x478add
push str.FocusV
push esi
call edi
add esp, 8
test eax, eax
jne 0x478a8b
lea edi, [eax + 4]
jmp 0x478add
push str.Enabled
push esi
call edi
add esp, 8
test eax, eax
jne 0x478a9f
lea edi, [eax + 5]
jmp 0x478add
push str.Visible
push esi
call edi
add esp, 8
test eax, eax
jne 0x478ab3
lea edi, [eax + 6]
jmp 0x478add
push str.Hwnd
push esi
call edi
add esp, 8
test eax, eax
jne 0x478ac7
lea edi, [eax + 7]
jmp 0x478add
push str.Name
push esi
call edi
add esp, 8
test eax, eax
jne 0x479282
lea edi, [eax + 8]
test ebx, ebx
je 0x479282
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
jne 0x478af7
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x18]
mov dword [ebp + 0xc], eax
mov ecx, dword [0x4ca738]
push 1
push 0
push 0xffffffffffffffff
push 0x4b6c08
call fcn.004a2db0
mov eax, dword [0x4cb240]
mov esi, 1
mov dword [esp + 0x30], eax
mov eax, dword [0x4cb23c]
mov dword [esp + 0x34], eax
mov dword [0x4cb240], 0
mov dword [0x4cb23c], 0
cmp edi, 3
je 0x47908b
cmp edi, 4
je 0x47908b
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.00485110
mov ebx, eax
cmp edi, 2
je 0x478b6b
mov ecx, dword [esp + 0x14]
push esi
push 0
push 0xffffffffffffffff
push 0
call fcn.004a2db0
mov ecx, dword [esp + 0x10]
cmp ebx, dword [ecx + 0x10]
jae case.default.0x478b81
shl ebx, 6
lea eax, [edi - 1]
add ebx, dword [ecx + 0x18]
jmp dword [eax*4 + 0x4792d0]
push dword [ebp + 0x10]
push ebx
push dword [esp + 0x1c]
call fcn.00483d00
jmp 0x479239
lea eax, [esp + 0x48]
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [0x4c8024]
mov eax, dword [eax + 0x94]
test eax, eax
je 0x478bed
test byte [eax + 0x50], 4
je 0x478bed
mov edi, dword [esp + 0x14]
mov esi, 3
mov dword [esp + 0x18], esi
jmp 0x478c04
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 0x4c086c
push 0x111
push eax
call fcn.0049e760
add esp, 0x10
mov dword [esp + 0x10], eax
cmp byte [esp + 0x70], 0
je case.0x478b81.2
lea ecx, [esp + 0x1c]
push ecx
push esi
lea ecx, [esp + 0x1c]
push ecx
push eax
lea eax, [esp + 0x80]
mov ecx, 0x4cc848
push eax
call fcn.00430700
mov esi, eax
test esi, esi
jne 0x478c7b
cmp byte [esp + 0x1c], al
mov ecx, 0x4cc848
setne al
inc eax
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x78]
push dword [esp + 0x18]
push eax
call fcn.00430c50
mov esi, eax
test esi, esi
je case.0x478b81.2
cmp byte [ebx + 0xc8], 0
je 0x478c98
push dword [0x4cc818]
push 0x60
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_MulDiv]
jmp 0x478c9c
mov eax, dword [esp + 0x24]
cmp byte [esi + 0x17], 0
mov dword [esp + 0x10], eax
jne 0x478ca9
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x478cc2
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 0x478ce4
mov ecx, esi
call fcn.004013b0
and byte [esi + 0x15], 0x8f
jmp 0x478cf4
cmp dword [0x4ca760], 0
je 0x478cf4
mov ecx, esi
call fcn.004013b0
push dword [edi + 0x18]
lea eax, [esp + 0x74]
push 0x4c0870
push 0x111
push eax
call fcn.0049e760
add esp, 0x10
mov dword [esp + 0x10], eax
cmp byte [esp + 0x70], 0
je case.0x478b81.2
lea ecx, [esp + 0x1d]
push ecx
push dword [esp + 0x1c]
lea ecx, [esp + 0x34]
push ecx
push eax
lea eax, [esp + 0x80]
mov ecx, 0x4cc848
push eax
call fcn.00430700
mov esi, eax
test esi, esi
jne 0x478d6e
cmp byte [esp + 0x1d], al
mov ecx, 0x4cc848
setne al
inc eax
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x78]
push dword [esp + 0x18]
push eax
call fcn.00430c50
mov esi, eax
test esi, esi
je case.0x478b81.2
cmp byte [ebx + 0xc8], 0
je 0x478d8b
push dword [0x4cc818]
push 0x60
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_MulDiv]
jmp 0x478d8f
mov eax, dword [esp + 0x28]
cmp byte [esi + 0x17], 0
mov dword [esp + 0x10], eax
jne 0x478d9c
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x478db5
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 0x478dd7
mov ecx, esi
call fcn.004013b0
and byte [esi + 0x15], 0x8f
jmp 0x478de7
cmp dword [0x4ca760], 0
je 0x478de7
mov ecx, esi
call fcn.004013b0
push dword [edi + 0x18]
lea eax, [esp + 0x74]
push 0x4c0874
push 0x111
push eax
call fcn.0049e760
add esp, 0x10
mov dword [esp + 0x10], eax
cmp byte [esp + 0x70], 0
je case.0x478b81.2
lea ecx, [esp + 0x1e]
push ecx
push dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push ecx
push eax
lea eax, [esp + 0x80]
mov ecx, 0x4cc848
push eax
call fcn.00430700
mov esi, eax
test esi, esi
jne 0x478e61
cmp byte [esp + 0x1e], al
mov ecx, 0x4cc848
setne al
inc eax
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x78]
push dword [esp + 0x18]
push eax
call fcn.00430c50
mov esi, eax
test esi, esi
je case.0x478b81.2
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
cmp byte [ebx + 0xc8], 0
mov dword [esp + 0x10], eax
je 0x478e89
push dword [0x4cc818]
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x10], eax
cmp byte [esi + 0x17], 0
jne 0x478e92
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x478eab
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 0x478ecd
mov ecx, esi
call fcn.004013b0
and byte [esi + 0x15], 0x8f
jmp 0x478edd
cmp dword [0x4ca760], 0
je 0x478edd
mov ecx, esi
call fcn.004013b0
push dword [edi + 0x18]
lea eax, [esp + 0x74]
push 0x4c0878
push 0x111
push eax
call fcn.0049e760
add esp, 0x10
mov edi, eax
cmp byte [esp + 0x70], 0
je case.0x478b81.2
lea eax, [esp + 0x1f]
mov ecx, 0x4cc848
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push edi
lea eax, [esp + 0x80]
push eax
call fcn.00430700
mov esi, eax
test esi, esi
jne 0x478f52
cmp byte [esp + 0x1f], al
mov ecx, 0x4cc848
setne al
inc eax
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x78]
push edi
push eax
call fcn.00430c50
mov esi, eax
test esi, esi
je case.0x478b81.2
mov edi, dword [esp + 0x54]
sub edi, dword [esp + 0x4c]
cmp byte [ebx + 0xc8], 0
je 0x478f74
push dword [0x4cc818]
push 0x60
push edi
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edi, eax
cmp byte [esi + 0x17], 0
jne 0x478f7d
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x478f96
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 0x478fbe
mov ecx, esi
call fcn.004013b0
and byte [esi + 0x15], 0x8f
mov esi, 1
jmp 0x47923b
cmp dword [0x4ca760], 0
je 0x478fce
mov ecx, esi
call fcn.004013b0
mov esi, 1
jmp 0x47923b
push dword [ebx]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
push 1
test eax, eax
mov ecx, 0x4b6c08
push 0
mov edx, 0x4bb578
cmove edx, ecx
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push edx
call fcn.004a2db0
jmp 0x479239
xor esi, esi
jmp 0x47923b
mov ecx, dword [esp + 0x14]
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.004a2db0
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
mov dword [esp + 0x44], esi
test esi, esi
je case.default.0x478b81
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea edx, [eax - 3]
mov dword [esp + 0x20], edx
cmp edx, dword [ebx + 0x10]
jb 0x4790e9
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
test esi, esi
je 0x4790dc
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea edx, [eax - 3]
jmp 0x4790e0
mov edx, dword [esp + 0x20]
cmp edx, dword [ebx + 0x10]
jae case.default.0x478b81
mov eax, dword [ebx + 0x18]
mov ecx, edx
shl ecx, 6
add eax, ecx
mov ecx, dword [eax]
cmp ecx, esi
jne case.default.0x478b81
cmp edx, 0x2af8
je case.default.0x478b81
test eax, eax
je case.default.0x478b81
cmp edi, 4
jne 0x479181
push ecx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
sub eax, 3
cmp eax, 0x2af8
jae 0x479177
cmp dword [ebx + 4], 0
je 0x479177
cmp eax, dword [ebx + 0x10]
jae 0x479177
shl eax, 6
add eax, dword [ebx + 0x18]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x479163
mov ecx, dword [ecx + 0x18]
lea edx, [esp + 0x188]
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x479150
jmp 0x4791e5
push 0x40
lea ecx, [esp + 0x18c]
push ecx
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4791e5
mov byte [esp + 0x188], 0
jmp 0x4791e5
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 case.default.0x478b81
lea eax, [esp + 0x38]
mov dword [esp + 0x40], 0
push eax
push 0x446840
push dword [ebx + 4]
mov byte [esp + 0x48], 0
call dword [sym.imp.USER32.dll_EnumChildWindows]
cmp byte [esp + 0x3c], 0
je case.default.0x478b81
push dword [esp + 0x40]
lea eax, [esp + 0x18c]
push 0x4b6cf0
push 0x101
push eax
call fcn.0049e7b0
add esp, 0x10
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x188]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004a2db0
jmp 0x479239
mov eax, dword [0x4c8024]
test byte [eax + 0xe0], 1
jne 0x479224
mov ecx, dword [0x4ca738]
push 1
push 0
push 0xffffffffffffffff
push 0x4bb578
call fcn.004a2db0
jmp 0x479239
mov ecx, dword [esp + 0x18]
push 0x4b6ba9
push 0
push 0x4bb578
call fcn.0043e6c0
mov esi, eax
mov edi, dword [esp + 0x30]
test edi, edi
je 0x479277
mov eax, dword [0x4cb240]
test eax, eax
je 0x479268
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp dword [0x4cb23c], 0x400000
jbe 0x479268
dec dword [0x4cb238]
mov eax, dword [esp + 0x34]
mov dword [0x4cb240], edi
mov dword [0x4cb23c], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x4c8024]
test byte [eax + 0xe0], 1
jne 0x4792af
mov ecx, dword [0x4ca738]
push 1
push 0
push 0xffffffffffffffff
push 0x4bb578
call fcn.004a2db0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x18]
push 0x4b6ba9
push 0
push 0x4bb578
call fcn.0043e6c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc