Function at 0x579314
Capabilities:
Get graphical window text
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov esi, dword [0x586404]
xor eax, eax
push ebp
push 0x57969f
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
mov eax, dword [esi]
mov edx, dword [eax + 0x5d0]
mov eax, edx
sub eax, 1
jb 0x57935a
sub eax, 0xc7
jb 0x5794c3
jmp 0x579514
mov eax, dword [0x586a98]
mov eax, dword [eax]
cmp dword [eax + 0x5c], 0x78
jge 0x5793cf
mov eax, dword [esi]
cmp byte [eax + 0x5b4], 0
je 0x5793cf
push 0x5796b0
call sub.kernel32.dll_OutputDebugStringA
push 0
push 0xd
push pe_nt_image_headers32
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_SendMessageA
push 0x14
call sub.kernel32.dll_Sleep_1
push 0
push 0xd
push 0x101
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_SendMessageA
push 0x1f4
call sub.kernel32.dll_Sleep_1
mov eax, dword [esi]
mov byte [eax + 0x5cc], 1
mov eax, dword [0x586a98]
mov eax, dword [eax]
mov edx, 3
call fcn.00513748
mov ebx, 2
mov eax, dword [esi]
mov eax, dword [eax + 0x36c]
dec eax
je 0x5793ea
dec eax
je 0x57941a
dec eax
je 0x57944a
jmp 0x579478
push 0xa100d5
push 0
push 0x201
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_SendMessageA
push 0xa100d5
push 0
push 0x202
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_SendMessageA
jmp 0x579478
push 0x12300ef
push 0
push 0x201
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_SendMessageA
push 0x12300ef
push 0
push 0x202
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_SendMessageA
jmp 0x579478
push 0x1ab011a
push 0
push 0x201
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_SendMessageA
push 0x1ab011a
push 0
push 0x202
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_SendMessageA
push 0x12c
call sub.kernel32.dll_Sleep_1
dec ebx
jne 0x5793d4
push 0x12c
call sub.kernel32.dll_Sleep_1
push 0x2070047
push 0
push 0x201
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_SendMessageA
push 0x2070047
push 0
push 0x202
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_SendMessageA
jmp 0x579514
mov eax, dword [esi]
mov eax, dword [eax + 0x36c]
test eax, eax
jle 0x579514
cmp edx, 0xc0
je 0x579514
dec eax
mov edx, dword [0x586328]
mov edx, dword [edx]
mov dword [edx], eax
lea edx, [ebp - 0x18]
mov eax, dword [esi]
mov eax, dword [eax + 0x36c]
call fcn.00409fe0
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 0x5796c4
call fcn.004054c0
mov eax, dword [ebp - 0x14]
call fcn.004b8ff8
push 0x3e8
call sub.kernel32.dll_Sleep_1
push 0x3e8
call sub.kernel32.dll_Sleep_1
mov eax, dword [esi]
mov eax, dword [eax + 0x5d0]
cmp eax, 0x9b
jne 0x5795b3
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_GetWindowRect
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
cmp eax, 0x384
jge 0x579580
push 0x21b009a
push 0
push 0x201
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_SendMessageA
push 0x21b009a
push 0
push 0x202
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_SendMessageA
jmp 0x579684
push 0x2b800c9
push 0
push 0x201
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_SendMessageA
push 0x2b800c9
push 0
push 0x202
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_SendMessageA
jmp 0x579684
add eax, 0xffffff40
sub eax, 2
jae 0x579652
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_GetWindowRect
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
sar eax, 1
jns 0x5795dd
adc eax, 0
add ax, 0x64
movzx eax, ax
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0xc]
sar edx, 1
jns 0x5795f1
adc edx, 0
movzx edx, dx
shl edx, 0x10
or eax, edx
push eax
push 0
push 0x201
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
sar eax, 1
jns 0x579619
adc eax, 0
add ax, 0x64
movzx eax, ax
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0xc]
sar edx, 1
jns 0x57962d
adc edx, 0
movzx edx, dx
shl edx, 0x10
or eax, edx
push eax
push 0
push 0x202
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_SendMessageA
push 0x1f4
call sub.kernel32.dll_Sleep_1
mov eax, 0x5796d8
call fcn.004b8ff8
push 0
push 0xd
push pe_nt_image_headers32
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_SendMessageA
push 0
push 0xd
push 0x101
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5796a6
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004051cc
ret