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

Disassembly:
sub esp, 0x1ac
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c0]
mov ebx, ecx
mov eax, esi
xor edx, edx
mov ecx, 0x1c
div ecx
push edi
xor edi, edi
mov dword [esp + 0x28], edi
test edx, edx
jne 0x1000c1b6
mov edx, dword [0x10130658]
push edx
call dword [sym.imp.USER32.dll_SetThreadDesktop]
mov eax, 0x24924925
mov dword [esp + 0x24], edi
mul esi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 4
cmp esi, edi
mov dword [esp + 0x2c], esi
jle 0x1000c1b1
mov eax, dword [esp + 0x1c0]
add eax, 4
mov dword [esp + 0x20], eax
jmp 0x1000bd4d
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax]
sub ecx, 0x100
mov dword [esp + 0x14], edx
je 0x1000c0f9
dec ecx
je 0x1000c1b6
dec ecx
je 0x1000c0f9
movsx ecx, word [eax + 8]
lea esi, [ebx + 0x114]
mov edi, dword [ebx + 0x11c]
mov dword [esp + 0x28], 1
mov dword [esi], ecx
mov edx, dword [eax + 8]
mov ecx, dword [ebx + 0x120]
shr edx, 0x10
movsx eax, dx
mov dword [ebx + 0x118], eax
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [esp + 0x44], ecx
mov dword [ebx + 0x11c], edx
mov dword [ebx + 0x120], eax
mov edx, dword [ebx + 0x11c]
mov ecx, eax
push ecx
push edx
lea eax, [esp + 0x8c]
push str._d____d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [esi + 4]
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov ecx, dword [esp + 0x20]
mov ebp, eax
mov eax, dword [ecx]
cmp eax, 0x202
jne 0x1000bee1
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push edx
push 0
push 0x84
push ebp
mov dword [ebx + 0x124], 0
call edi
inc eax
cmp eax, 0x15
ja case.0x1000be3a.3
xor ecx, ecx
mov cl, byte [eax + 0x1000c1d8]
jmp dword [ecx*4 + 0x1000c1c4]
push 0xfffffffffffffff0
push ebp
call dword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 0x8000000
push eax
push 0xfffffffffffffff0
push ebp
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edx, dword [esp + 0x10]
push edx
push 0
push 0x84
push ebp
call edi
jmp case.0x1000be3a.3
push 0
push 0
push 0x10
push ebp
call dword [sym.imp.USER32.dll_PostMessageA]
jmp case.0x1000be3a.3
push 0
push 0xf020
push 0x112
push ebp
call dword [sym.imp.USER32.dll_PostMessageA]
jmp case.0x1000be3a.3
lea eax, [esp + 0x58]
mov dword [esp + 0x58], 0x2c
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov al, byte [esp + 0x5c]
push 0
test al, 3
je 0x1000becb
push 0xf120
push 0x112
push ebp
call dword [sym.imp.USER32.dll_PostMessageA]
jmp case.0x1000be3a.3
push 0xf030
push 0x112
push ebp
call dword [sym.imp.USER32.dll_PostMessageA]
jmp case.0x1000be3a.3
cmp eax, 0x201
jne 0x1000bfd6
push 0
push str.Button
mov dword [ebx + 0x124], 1
mov dword [ebx + 0x128], 0
call dword [sym.imp.USER32.dll_FindWindowA]
lea ecx, [esp + 0x48]
mov edi, eax
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi + 4]
mov eax, dword [esi]
push edx
lea ecx, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x1000bf40
push 0
push 0
push 0xf5
push edi
jmp 0x1000c18b
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xb9]
mov byte [esp + 0xb8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0xb8]
push 0x104
push edx
push ebp
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_RealGetWindowClassA]
lea eax, [esp + 0xb8]
push str.32768
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne case.0x1000be3a.3
push eax
push eax
push 0x1e1
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov edi, eax
push ecx
push edx
push edi
push 0
call dword [sym.imp.USER32.dll_MenuItemFromPoint]
mov esi, eax
push esi
push edi
call dword [sym.imp.USER32.dll_GetMenuItemID]
push 0
push esi
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
push 0x1e5
push ebp
call esi
push 0
push 0xd
push 0x100
push ebp
call esi
jmp case.0x1000c068.3
cmp eax, 0x200
jne case.0x1000be3a.3
mov eax, dword [ebx + 0x124]
test eax, eax
je case.0x1000c068.3
mov eax, dword [ebx + 0x128]
test eax, eax
jne 0x1000c014
mov eax, dword [esp + 0x10]
push eax
push 0
push 0x84
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebx + 0x12c], eax
jmp 0x1000c016
mov ebp, eax
mov eax, dword [esp + 0x44]
mov ecx, dword [ebx + 0x118]
mov edx, dword [esi]
sub eax, ecx
lea ecx, [esp + 0x30]
sub edi, edx
push ecx
push ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [ebx + 0x12c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
add edi, 0xfffffffe
sub esi, eax
sub edx, ecx
cmp edi, 0xf
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
ja case.0x1000c068.3
jmp dword [edi*4 + 0x1000c1f0]
sub eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
sub ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x1000c0d9
mov eax, dword [esp + 0x1c]
sub ecx, eax
add edx, eax
mov dword [esp + 0x14], ecx
jmp 0x1000c0d9
sub edx, dword [esp + 0x1c]
jmp 0x1000c0d9
mov edi, dword [esp + 0x1c]
sub ecx, edi
add edx, edi
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
sub eax, ecx
add esi, ecx
mov dword [esp + 0x10], eax
jmp 0x1000c0d9
mov eax, dword [esp + 0x1c]
sub ecx, eax
add edx, eax
mov dword [esp + 0x14], ecx
jmp case.0x1000c068.11
sub edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
sub eax, ecx
add esi, ecx
mov dword [esp + 0x10], eax
jmp 0x1000c0d9
sub edx, dword [esp + 0x1c]
sub esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push 0
push edx
mov edx, dword [esp + 0x1c]
push esi
push edx
push eax
push ebp
call dword [sym.imp.USER32.dll_MoveWindow]
mov dword [ebx + 0x128], ebp
jmp case.0x1000c068.3
mov edx, dword [ebx + 0x120]
mov ecx, dword [ebx + 0x11c]
lea esi, [ebx + 0x114]
mov eax, edx
push eax
push ecx
mov dword [esi], ecx
mov dword [esi + 4], edx
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov ebp, eax
push esi
push ebp
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [esi + 4]
mov eax, dword [esi]
push edx
push eax
push ebp
call dword [sym.imp.USER32.dll_ChildWindowFromPoint]
mov edi, eax
test edi, edi
je 0x1000c15a
cmp edi, ebp
je 0x1000c15a
push esi
push edi
mov ebp, edi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
push edx
push edi
call dword [sym.imp.USER32.dll_ChildWindowFromPoint]
mov edi, eax
test edi, edi
jne 0x1000c138
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1000c179
xor eax, eax
xor ecx, ecx
mov ax, word [ebx + 0x118]
mov cx, word [esi]
shl eax, 0x10
or eax, ecx
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push edx
mov edx, dword [ecx]
push eax
push edx
push ebp
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
inc eax
add edx, 0x1c
cmp eax, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
jl 0x1000bd49
call fcn.100302a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1ac
ret 8