Function at 0x100246c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
cmp dword [ebp + 0x10], 0
push ebx
push esi
push edi
jne 0x100246df
cmp dword [0x10030400], 0
je 0x10024952
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edi, eax
movsx eax, word [edi]
cmp eax, 0x3c
jb 0x100246ff
mov eax, dword [edi + 0x56]
mov ebx, dword [ebp + 0xc]
mov esi, dword [eax + 2]
jmp 0x10024707
mov esi, dword [ebp + 8]
mov ebx, 3
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x40000000
je 0x10024728
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
test esi, esi
je 0x10024952
test ebx, ebx
je 0x10024744
cmp ebx, 1
je 0x1002478c
cmp ebx, 2
je 0x100247b3
cmp ebx, 3
je 0x100247c3
jmp 0x100247d4
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 4], eax
push edi
call sym.WCT32D.DLL_MapGraph
mov edx, dword [0x1002e564]
mov ecx, dword [0x1002e568]
push 1
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
push dword [ebp - 4]
mov dword [ebp - 8], ecx
call dword [sym.imp.GDI32.dll_DPtoLP]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x100247d4
mov dx, word [edi + 0x11e]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x34]
mov ax, word [edi + 0x11c]
push ecx
push edx
push eax
push edi
call sym.WCT32D.DLL_WGGetMousePos
test eax, eax
jne 0x100247d4
jmp 0x10024952
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x24]
push eax
push ecx
push edi
call sym.WCT32D.DLL_WGGetMousePosNorm
jmp 0x100247d4
mov eax, dword [0x1002e564]
mov ecx, dword [0x1002e568]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
cmp dword [0x10030400], 0
jne 0x10024828
cmp dword [ebp + 0x10], 0
je 0x10024952
push 0x50
push 0x1002e358
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetCapture]
mov dword [0x10030400], 1
test ebx, ebx
je 0x1002484f
cmp ebx, 1
je 0x10024875
cmp ebx, 2
je 0x100248cf
cmp ebx, 3
je 0x10024929
jmp 0x10024944
cmp dword [ebp + 0x10], 0
je 0x10024808
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 0x1002e358
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov dword [0x10030400], 0
jmp 0x10024952
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 8]
push dword [ebp - 0xc]
push str.Device____d__d___Logical____d__d_
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x10024944
push 4
push 4
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call sym.WCT32D.DLL_ftoa
push eax
lea ecx, [ebp - 0x84]
push ecx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call edi
push 0x10030404
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 4
push 4
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call sym.WCT32D.DLL_ftoa
push eax
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp + eax - 0x84]
push ecx
call edi
jmp 0x10024944
push 4
push 4
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call sym.WCT32D.DLL_ftoa
push eax
lea ecx, [ebp - 0x84]
push ecx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call edi
push 0x10030404
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 4
push 4
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call sym.WCT32D.DLL_ftoa
push eax
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp + eax - 0x84]
push ecx
call edi
jmp 0x10024944
push dword [ebp - 8]
push dword [ebp - 0xc]
push str.Device____d__d_
lea edx, [ebp - 0x84]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc