Function at 0x4bd510
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4e31fc
call fcn.0046d048
sub esp, 0x49c
push ebx
push esi
push edi
mov esi, ecx
push 0x521050
mov dword [ebp - 0x30], esi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetPropA]
xor ebx, ebx
cmp eax, ebx
je 0x4bd54b
push dword [ebp + 8]
mov ecx, esi
call fcn.004bdb2f
jmp 0x4bda55
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
sub esp, 0x10
lea esi, [ebp - 0x2c]
mov edi, esp
lea ecx, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00483616
mov edi, dword [ebp - 0x30]
mov dword [ebp - 4], ebx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
mov esi, eax
mov eax, dword [edi + 0x70]
neg esi
sbb esi, esi
inc esi
cmp dword [eax + 0x210], ebx
je 0x4bd5b9
mov ecx, edi
call fcn.004aee77
mov eax, dword [edi + 0x44]
cmp eax, ebx
je 0x4bd5ac
push ebx
push eax
push dword [ebp - 0x60]
mov ecx, edi
call fcn.004afaf9
jmp 0x4bd60d
lea eax, [ebp - 0x60]
mov ecx, edi
push eax
call fcn.004afb91
jmp 0x4bd60d
cmp dword [eax + 0x218], ebx
je 0x4bd5e9
mov ecx, esi
push 1
imul ecx, ecx, 0x148
push 0xff00ff
lea eax, [ecx + eax + 0x214]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x60]
call fcn.0049b666
add esp, 0x14
jmp 0x4bd60d
push dword [eax + esi*4 + 0x4a4]
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_SetBkColor]
push ebx
push ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
push 2
push ebx
push ebx
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_ExtTextOutA]
push 0xfffffffffffffff0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp + 8], eax
mov al, byte [0x521388]
mov byte [ebp - 0x4a8], al
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x4a7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp - 0x30]
lea eax, [ebp - 0x4a8]
push 0x3ff
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
imul esi, esi, 0x2c
mov eax, dword [edi + 0x70]
push 0xb
pop ecx
lea edi, [ebp - 0xa8]
lea esi, [esi + eax + 0x4ac]
rep movsd dword es:[edi], dword [esi]
cmp dword [eax + 0x578], ebx
jne 0x4bd6a7
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
push 2
and eax, 1
pop ecx
and edx, ecx
mov dword [ebp - 0x38], edx
jne 0x4bd68a
xor ecx, ecx
cmp eax, ebx
setne cl
mov eax, dword [ebp + 8]
push 0
and eax, 0x200
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0x38], eax
pop eax
setne al
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0x4a8]
push eax
call fcn.0046d440
test eax, eax
pop ecx
jbe 0x4bd785
lea eax, [ebp - 0x4a8]
lea ecx, [ebp - 0x34]
push eax
call fcn.00481820
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x1c]
push 1
push eax
lea eax, [ebp - 0xa8]
mov ecx, dword [0x52415c]
push eax
mov eax, dword [esi + 0x70]
add eax, 0x504
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x60]
call fcn.00485c49
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.004817f7
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
sub eax, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x2c]
cmp eax, ecx
jg 0x4bd729
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
sub eax, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x28]
cmp eax, ecx
jle 0x4bd788
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
push dword [esi + 4]
call fcn.004b012e
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov ecx, esi
call fcn.004b010c
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
sub eax, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x2c]
cmp eax, ecx
jg 0x4bd75e
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x28]
cmp ecx, edx
jg 0x4bd770
mov ecx, edx
push 1
push ecx
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MoveWindow]
jmp 0x4bd788
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
and eax, 0x1f
cmp eax, 8
jg 0x4bd832
je 0x4bd822
sub eax, 3
je 0x4bd7e2
dec eax
je 0x4bd7b7
dec eax
je 0x4bd7b3
dec eax
jne 0x4bda49
push 5
jmp 0x4bd7b9
push 0x10
jmp 0x4bd7b9
push 0xc
call fcn.00482e42
pop ecx
push eax
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_SetBkColor]
push ebx
push ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
push 2
push ebx
push ebx
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_ExtTextOutA]
jmp 0x4bda49
push ebx
push ebx
push 0x171
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebx
je 0x4bda49
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x28]
sub edx, dword [ebp - 0x2c]
push 3
push ecx
push edx
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push ebx
push eax
push ebx
push ebx
push dword [ebp - 0x60]
call dword [sym.imp.USER32.dll_DrawStateA]
jmp 0x4bda49
push 0x10
call fcn.00482e42
mov esi, eax
push 0x10
jmp 0x4bda24
cmp eax, 9
je 0x4bda19
cmp eax, 0xe
je 0x4bd8f7
cmp eax, 0x12
jne 0x4bda49
lea esi, [ebp - 0x2c]
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x14
pop esi
push esi
call fcn.00482e42
push esi
mov edi, eax
call fcn.00482e42
pop ecx
pop ecx
push edi
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x60]
sub eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.004b1cb3
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push esi
call fcn.00482e42
push esi
mov edi, eax
call fcn.00482e42
pop ecx
pop ecx
push edi
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x60]
sub eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.004b1cb3
dec dword [ebp - 0x1c]
dec dword [ebp - 0x18]
push 0x10
call fcn.00482e42
push 0x10
mov esi, eax
call fcn.00482e42
pop ecx
pop ecx
push esi
push eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
jmp 0x4bda41
push ebx
push ebx
push 0x173
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebx
mov dword [ebp - 0x38], eax
je 0x4bda49
lea esi, [ebp - 0x2c]
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test byte [ebp + 9], 2
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
je 0x4bd962
lea ecx, [ebp - 0x7c]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x78]
sub eax, edi
mov esi, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x74]
cdq
sub eax, edx
sar eax, 1
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add edi, eax
mov eax, dword [ebp - 0x10]
sub eax, esi
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add esi, eax
mov dword [ebp - 0x18], esi
add esi, ecx
jmp 0x4bd968
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp + 8], eax
sub esi, dword [ebp - 0x18]
sub edi, dword [ebp - 0x1c]
push esi
push edi
push dword [ebp - 0x60]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x3c], eax
call esi
mov edi, eax
mov dword [ebp - 0x64], edi
push 4
mov byte [ebp - 4], 4
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push ebx
push ebx
push ebx
push dword [ebp - 0x38]
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawStateA]
mov eax, dword [ebp - 0x60]
push 0xf
mov dword [ebp - 0x38], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push 0xcc0020
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x38]
call fcn.0049a99f
add esp, 0x28
push edi
push dword [ebp + 8]
call esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
cmp edi, ebx
je 0x4bd9ff
push edi
call esi
cmp dword [ebp - 0x3c], ebx
je 0x4bda09
push dword [ebp - 0x3c]
call esi
cmp dword [ebp + 8], ebx
je 0x4bda49
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x4bda49
push 5
call fcn.00482e42
mov esi, eax
push 5
call fcn.00482e42
pop ecx
pop ecx
push esi
push eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x60]
call fcn.004b1cb3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.004836a1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4