Function at 0x10004e30
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x100272d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4d8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x4f4]
lea eax, [esp + 0x14]
push edi
mov ecx, dword [esi + 8]
push eax
push ecx
call dword [sym.imp.USER32.DLL_GetWindowRect]
mov eax, dword [0x1002cdb4]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
lea ebx, [eax + eax]
sub ebx, edx
mov edx, dword [0x1002ce84]
add ebx, ecx
lea edi, [edx + eax]
test ebx, ebx
mov dword [esp + 0x10], edi
jle 0x10005585
test edi, edi
jle 0x10005585
lea ecx, [esp + 0x94]
call fcn.100068c0
push 0x20
push edi
push ebx
lea ecx, [esp + 0xa0]
mov dword [esp + 0x4fc], 0
call fcn.10006940
test eax, eax
je 0x1000556e
mov ecx, dword [0x1002cdb4]
mov eax, dword [0x1002ce84]
mov edx, dword [0x1002cea0]
add eax, ecx
add ecx, edx
push eax
push ecx
push 0
push 0
push 0x1002cdc8
push eax
push ecx
push 0
lea eax, [esp + 0xb4]
push 0
push eax
call fcn.10006fb0
mov eax, dword [0x1002cdb4]
mov ebp, dword [0x1002cde0]
mov ecx, dword [0x1002ce84]
mov edi, dword [0x1002cea0]
lea edx, [eax + eax]
add ecx, eax
sub ebp, edx
push ecx
sub ebp, dword [0x1002cea8]
add eax, edi
sub ebp, edi
push ebp
mov ebp, dword [0x1002cea8]
push 0
push eax
push 0x1002cdc8
push ecx
mov ecx, ebx
sub ecx, edx
lea edx, [esp + 0xd4]
sub ecx, ebp
sub ecx, edi
push ecx
push 0
push eax
push edx
call fcn.10006fb0
mov eax, dword [0x1002cdb4]
mov ecx, dword [0x1002ce84]
mov edx, dword [0x1002cea8]
mov ebp, dword [0x1002cde0]
add esp, 0x50
add ecx, eax
lea edi, [edx + eax]
sub ebp, edx
push ecx
push edi
sub ebp, eax
push 0
push ebp
push 0x1002cdc8
push ecx
mov ecx, ebx
sub ecx, edx
push edi
sub ecx, eax
push 0
lea edx, [esp + 0xb4]
push ecx
push edx
call fcn.10006fb0
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
sub edi, ecx
add esp, 0x28
lea ecx, [esp + 0x40]
call fcn.100068c0
mov eax, dword [0x1002ce84]
push 0x20
push eax
mov byte [esp + 0x4f8], 1
push edi
lea ecx, [esp + 0x4c]
call fcn.10006940
test eax, eax
je 0x1000555d
push 0
call dword [sym.imp.GDI32.DLL_CreateCompatibleDC]
mov ecx, dword [esp + 0x50]
mov edi, dword [sym.imp.GDI32.DLL_SelectObject]
mov ebp, eax
push ecx
push ebp
call edi
push 1
push ebp
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.DLL_SetBkMode]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov edx, dword [0x1002cdb4]
push eax
push ecx
push edx
push edx
lea edx, [esp + 0xa4]
push edx
push eax
push ecx
push 0
lea eax, [esp + 0x60]
push 0
push eax
call fcn.10006fb0
mov eax, dword [0x1002ef58]
mov ecx, dword [0x1002ef54]
mov edx, dword [0x1002ef4c]
push 0
push 0xff00ff
push eax
push ecx
push 0
push 0
push 0
nop
nop
nop
nop
nop
push eax
mov eax, dword [esi + 0x1b8]
push ecx
lea eax, [eax + edx - 0x10]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esi + 0x1b4]
sub eax, ecx
sub eax, 0xa
push eax
push ebp
call fcn.1000b4c0
add esp, 0x58
push esi
call fcn.100055a0
mov ecx, dword [0x1002cd98]
add esp, 4
mov edx, dword [ecx + 0x68]
push edx
push ebp
call edi
mov eax, dword [0x1002d698]
push eax
push ebp
call dword [sym.imp.GDI32.DLL_SetTextColor]
mov eax, dword [esi + 0x220]
test eax, eax
je 0x100050bf
mov ecx, dword [esi + 0x274]
mov edi, dword [esi + 0x27c]
mov edx, dword [esi + 0x270]
push 3
push 0
sub edi, ecx
push 0
push edi
mov edi, dword [esi + 0x278]
sub edi, edx
push edi
push eax
push ecx
push edx
push ebp
call dword [sym.imp.USER32.DLL_DrawIconEx]
jmp 0x100050eb
mov eax, dword [esi + 0x21c]
cmp eax, 0x1002ce78
jne 0x100050eb
mov ecx, dword [0x1002cd98]
mov edx, dword [ecx + 0x1d8]
mov ecx, dword [edx + 0x60]
test ecx, ecx
jne 0x100050eb
mov eax, dword [eax + 0x800]
mov dword [esi + 0x1ac], eax
mov ecx, dword [esi + 0x21c]
mov edi, 0x40024
mov eax, dword [ecx + 0x82c]
test eax, eax
je 0x10005116
cmp eax, 1
jne 0x1000510c
mov edi, 0x40025
jmp 0x10005116
cmp eax, 2
jne 0x10005116
mov edi, 0x40026
mov eax, dword [esi + 8]
lea edx, [esp + 0xe8]
push 0x400
push edx
push eax
call dword [sym.imp.USER32.DLL_GetWindowTextA]
lea ecx, [esi + 0x1ac]
push edi
push ecx
lea edi, [esp + 0xf0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0xf0]
push ecx
push edx
push ebp
call dword [sym.imp.USER32.DLL_DrawTextA]
mov eax, dword [esi + 0x2a8]
test eax, 0x80000
je 0x1000549e
test eax, 0x20000
je 0x1000521c
lea edi, [esi + 0x250]
push edi
call dword [sym.imp.USER32.DLL_IsRectEmpty]
test eax, eax
jne 0x1000521c
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.USER32.DLL_IsIconic]
test eax, eax
mov eax, dword [esi + 0x224]
jne 0x100051dd
cmp eax, 1
jne 0x100051ba
mov ecx, dword [0x1002cd98]
mov eax, dword [esi + 0x21c]
add eax, 0x5e8
mov edx, dword [ecx + 0x10]
push edx
jmp 0x10005242
mov ecx, dword [0x1002cd98]
cmp eax, 2
mov eax, dword [esi + 0x21c]
mov edx, dword [ecx + 0x10]
push edx
jne 0x100051d6
add eax, 0x630
jmp 0x10005242
add eax, 0x5a0
jmp 0x10005242
cmp eax, 1
jne 0x100051f9
mov ecx, dword [0x1002cd98]
mov eax, dword [esi + 0x21c]
add eax, 0x4c8
mov edx, dword [ecx + 0x10]
push edx
jmp 0x10005242
mov ecx, dword [0x1002cd98]
cmp eax, 2
mov eax, dword [esi + 0x21c]
mov edx, dword [ecx + 0x10]
push edx
jne 0x10005215
add eax, 0x510
jmp 0x10005242
add eax, 0x480
jmp 0x10005242
lea edi, [esi + 0x250]
push edi
call dword [sym.imp.USER32.DLL_IsRectEmpty]
test eax, eax
jne 0x1000524d
mov ecx, dword [0x1002cd98]
mov eax, dword [esi + 0x21c]
add eax, 0x678
mov edx, dword [ecx + 0x10]
push edx
push eax
push edi
push ebp
call fcn.1000b6e0
add esp, 0x10
test dword [esi + 0x2a8], 0x10000
je 0x10005359
push edi
call dword [sym.imp.USER32.DLL_IsRectEmpty]
test eax, eax
jne 0x10005359
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.USER32.DLL_IsZoomed]
test eax, eax
mov eax, dword [esi + 0x224]
jne 0x100052f1
cmp eax, 3
jne 0x100052a8
mov edx, dword [0x1002cd98]
mov ecx, dword [esi + 0x21c]
add ecx, 0x3a8
mov eax, dword [edx + 0x10]
lea edx, [esi + 0x240]
push eax
push ecx
push edx
jmp 0x10005382
cmp eax, 4
jne 0x100052cf
mov eax, dword [0x1002cd98]
mov edx, dword [esi + 0x21c]
add edx, 0x3f0
mov ecx, dword [eax + 0x10]
lea eax, [esi + 0x240]
push ecx
push edx
push eax
jmp 0x10005382
mov ecx, dword [0x1002cd98]
mov eax, dword [esi + 0x21c]
add eax, 0x360
mov edx, dword [ecx + 0x10]
lea ecx, [esi + 0x240]
push edx
push eax
push ecx
jmp 0x10005382
cmp eax, 3
jne 0x10005316
mov edx, dword [0x1002cd98]
mov ecx, dword [esi + 0x21c]
add ecx, 0x4c8
mov eax, dword [edx + 0x10]
lea edx, [esi + 0x240]
push eax
push ecx
push edx
jmp 0x10005382
cmp eax, 4
jne 0x1000533a
mov eax, dword [0x1002cd98]
mov edx, dword [esi + 0x21c]
add edx, 0x510
mov ecx, dword [eax + 0x10]
lea eax, [esi + 0x240]
push ecx
push edx
push eax
jmp 0x10005382
mov ecx, dword [0x1002cd98]
mov eax, dword [esi + 0x21c]
add eax, 0x480
mov edx, dword [ecx + 0x10]
lea ecx, [esi + 0x240]
push edx
push eax
push ecx
jmp 0x10005382
lea edi, [esi + 0x240]
push edi
call dword [sym.imp.USER32.DLL_IsRectEmpty]
test eax, eax
jne 0x1000538b
mov edx, dword [0x1002cd98]
mov ecx, dword [esi + 0x21c]
add ecx, 0x438
mov eax, dword [edx + 0x10]
push eax
push ecx
push edi
push ebp
call fcn.1000b6e0
add esp, 0x10
mov edx, dword [esi + 8]
push 0
push 0xf060
push 0
push edx
call dword [sym.imp.USER32.DLL_GetSystemMenu]
push eax
call dword [sym.imp.USER32.DLL_GetMenuState]
cmp eax, 0xffffffff
jne 0x100053c1
mov eax, dword [0x1002cd98]
mov edx, dword [esi + 0x21c]
add edx, 0x318
mov ecx, dword [eax + 0x10]
push ecx
jmp 0x10005425
mov eax, dword [esi + 0x224]
cmp eax, 5
jne 0x100053eb
mov ecx, dword [0x1002cd98]
mov eax, dword [esi + 0x21c]
add eax, 0x288
mov edx, dword [ecx + 0x10]
lea ecx, [esi + 0x230]
push edx
push eax
push ecx
jmp 0x1000542d
cmp eax, 6
jne 0x10005410
mov edx, dword [0x1002cd98]
mov ecx, dword [esi + 0x21c]
add ecx, 0x2d0
mov eax, dword [edx + 0x10]
lea edx, [esi + 0x230]
push eax
push ecx
push edx
jmp 0x1000542d
mov eax, dword [0x1002cd98]
mov edx, dword [esi + 0x21c]
add edx, 0x240
mov ecx, dword [eax + 0x10]
push ecx
lea eax, [esi + 0x230]
push edx
push eax
push ebp
call fcn.1000b6e0
add esp, 0x10
lea edi, [esi + 0x260]
push edi
call dword [sym.imp.USER32.DLL_IsRectEmpty]
test eax, eax
jne 0x1000549e
push 1
push ebp
call dword [sym.imp.GDI32.DLL_SetBkMode]
mov eax, dword [esi + 0x224]
cmp eax, 7
jne 0x10005472
mov ecx, dword [0x1002cd98]
mov eax, dword [esi + 0x21c]
add eax, 0x708
mov edx, dword [ecx + 0x10]
push edx
jmp 0x10005493
mov ecx, dword [0x1002cd98]
cmp eax, 8
mov eax, dword [esi + 0x21c]
mov edx, dword [ecx + 0x10]
push edx
jne 0x1000548e
add eax, 0x750
jmp 0x10005493
add eax, 0x6c0
push eax
push edi
push ebp
call fcn.1000b6e0
add esp, 0x10
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
push 0xff
push eax
push ecx
push 0
lea edx, [esp + 0x50]
push 0
push edx
push eax
mov eax, dword [0x1002cdb4]
push ecx
push eax
push eax
lea eax, [esp + 0xbc]
push eax
call fcn.10006df0
mov ecx, dword [esp + 0x40]
add esp, 0x2c
push ecx
push ebp
call dword [sym.imp.GDI32.DLL_SelectObject]
push ebp
call dword [sym.imp.GDI32.DLL_DeleteDC]
push 0
call dword [sym.imp.GDI32.DLL_CreateCompatibleDC]
mov edx, dword [esp + 0xa4]
mov edi, eax
push edx
push edi
call dword [sym.imp.GDI32.DLL_SelectObject]
mov ecx, dword [esp + 0x18]
mov eax, dword [0x1002cdb4]
mov edx, dword [esp + 0x1c]
sub ecx, eax
sub edx, eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], edx
xor eax, eax
push 2
push 0x1002ce70
lea edx, [esp + 0x38]
mov dword [esp + 0x44], ecx
push eax
push edx
lea ecx, [esp + 0x48]
push edi
lea edx, [esp + 0x3c]
push ecx
mov ecx, dword [0x1002cd98]
push edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
push eax
mov eax, dword [esi + 0x158]
mov dword [esp + 0x58], ebx
push eax
call dword [ecx + 0x398]
push edi
call dword [sym.imp.GDI32.DLL_DeleteObject]
lea ecx, [esp + 0x40]
mov byte [esp + 0x4f0], 0
call fcn.10006920
lea ecx, [esp + 0x94]
mov dword [esp + 0x4f0], 0xffffffff
call fcn.10006920
mov ecx, dword [esp + 0x4e8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4e4
ret