Function at 0x4579b60
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x4612008]
xor eax, esp
mov dword [esp + 0x68], eax
cmp dword [ecx], 0x3e9
push ebx
push esi
push edi
mov ebx, edx
jne 0x4579cd3
test ebx, ebx
jne 0x4579cc7
lea ebx, [edx + 1]
mov edi, dword [ecx + 0x14]
push 5
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
mov dword [esp + 0x18], esi
push edi
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
push 0x14
push ecx
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x28]
push ecx
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x14]
call esi
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x14]
call esi
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x20]
sub eax, dword [esp + 0x24]
sub edx, dword [esp + 0x34]
sub esi, dword [esp + 0x30]
cmp dword [0x461f808], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], edx
jne 0x4579d63
push 0xe81b
push dword [esp + 0x14]
mov dword [0x461f808], 1
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4579d5b
push 0xe804
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x4579d5b
push 4
lea ecx, [esp + 0x64]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 3
lea eax, [esp + 0x64]
push str.USag
push eax
call fcn.045c6ac1
add esp, 0xc
test eax, eax
jne 0x4579d5b
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x54]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov dword [0x461f804], eax
jmp 0x4579d68
cmp ebx, 1
jne 0x4579cd3
xor ebx, ebx
jmp 0x4579b90
mov edi, dword [ecx + 0x14]
push 5
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
mov dword [esp + 0x18], esi
cmp ebx, 2
jne 0x4579ba2
lea eax, [esp + 0x40]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
push 0x14
push eax
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
push eax
push 0
push 0
push 0
push esi
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
call esi
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x64]
push 0x16
push eax
mov eax, dword [esp + 0x70]
sub eax, dword [esp + 0x68]
push eax
push 0
push 0
push 0
push edi
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.045bc602
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov eax, dword [0x461f804]
cmp ebx, 4
ja case.0x4579d6d.2
jmp dword [ebx*4 + 0x4579dd8]
mov esi, dword [esp + 0x14]
xor ecx, ecx
jmp 0x4579d9e
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov esi, dword [esp + 0x14]
sub eax, edx
jmp 0x4579d9e
mov edx, dword [esp + 0x1c]
xor ecx, ecx
jmp 0x4579da2
mov edx, dword [esp + 0x1c]
sub ecx, esi
jmp 0x4579da2
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0xc]
push 0x14
push edx
push esi
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push eax
push ecx
push 0
push edi
call esi
push 0x15
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x30]
call esi
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.045bc602
mov esp, ebp
pop ebp
ret