Function at 0x480d20
Capabilities:
Get graphical window text
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x666498]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push 1
push 1
push dword [0x66ee54]
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x248], 0x10
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x234]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
push 0
push 0x31
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x480d8c
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
mov dword [ebp - 0x264], eax
call dword [sym.imp.GDI32.dll_GetBkMode]
push edi
mov dword [ebp - 0x26c], eax
call dword [sym.imp.GDI32.dll_GetTextColor]
push 1
push 1
push 0
push 0
mov dword [ebp - 0x268], eax
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
push edi
mov dword [ebp - 0x258], eax
call dword [sym.imp.GDI32.dll_GetClipRgn]
cmp eax, 1
je 0x480deb
push dword [ebp - 0x258]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp - 0x258], 0
cmp dword [esi], 0
jne 0x480e5e
test byte [esi + 4], 1
je 0x480e5e
push 6
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x228]
push dword [ebp - 0x22c]
push dword [ebp - 0x230]
push dword [ebp - 0x234]
push edi
call dword [sym.imp.GDI32.dll_Rectangle]
mov ecx, dword [ebp - 0x230]
mov edx, dword [ebp - 0x22c]
inc ecx
mov eax, dword [ebp - 0x228]
dec edx
inc dword [ebp - 0x234]
dec eax
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x248], 0xf
jmp 0x480e70
mov edx, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x228]
mov esi, dword [ebp - 0x234]
mov dword [ebp - 0x214], esi
mov esi, dword [ebp - 0x250]
mov dword [ebp - 0x208], eax
mov eax, edx
sub eax, dword [ebp - 0x248]
mov dword [ebp - 0x210], ecx
cmp dword [esi], 0
mov dword [ebp - 0x220], ecx
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x224], eax
je 0x4810bf
test dword [esi + 4], 0x8000000
je 0x480edd
mov dword [ebp - 0x248], 4
mov esi, 4
jmp 0x480f54
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xf2
push ebx
call eax
test eax, 0x400
je 0x480f01
mov dword [ebp - 0x248], 3
jmp 0x480f4f
test al, 4
je 0x480f16
mov dword [ebp - 0x248], 3
mov esi, 3
jmp 0x480f54
test eax, 0x200
je 0x480f2e
mov dword [ebp - 0x248], 2
mov esi, 2
jmp 0x480f54
test byte [esi + 4], 1
je 0x480f45
mov dword [ebp - 0x248], 5
mov esi, 5
jmp 0x480f54
mov dword [ebp - 0x248], 1
mov esi, 1
mov eax, dword [ebp - 0x250]
push esi
push 1
mov dword [ebp - 0x24c], esi
push dword [eax]
call fcn.00495260
push dword [ebp - 0x248]
test eax, eax
mov ecx, 1
mov eax, 0
cmovne eax, ecx
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x250]
push ecx
push dword [eax]
call fcn.00495260
test eax, eax
mov eax, dword [ebp - 0x254]
je 0x480fa0
or eax, 2
sub eax, 1
je 0x480fbf
sub eax, 1
je 0x480fb7
sub eax, 1
jne 0x480fcd
lea eax, [ebp - 0x234]
jmp 0x480fc5
lea eax, [ebp - 0x224]
jmp 0x480fc5
lea eax, [ebp - 0x214]
push eax
push edi
push ebx
call fcn.00495020
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x234]
push eax
mov eax, dword [ebp - 0x250]
push esi
push 1
push edi
push dword [eax]
call fcn.00494fc0
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x248]
mov eax, dword [ebp - 0x250]
push 1
push edi
push dword [eax]
call fcn.00494fc0
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
mov esi, dword [ebp - 0x250]
push 1
push edi
push dword [esi]
call fcn.00495180
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x248]
push 1
push edi
push dword [esi]
call fcn.00495180
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x240]
inc eax
push 0
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x238]
push 1
dec eax
push 0xa
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x248]
push 1
push edi
push dword [esi]
call fcn.00494fe0
mov eax, dword [ebp - 0x244]
jmp 0x481295
test dword [esi + 4], 0x8000000
je 0x4810d9
mov dword [ebp - 0x248], 0x100
mov esi, 0x100
jmp 0x48111e
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xf2
push ebx
call eax
test eax, 0x400
je 0x4810fd
mov dword [ebp - 0x248], 0x200
jmp 0x48111c
test al, 4
je 0x481112
mov dword [ebp - 0x248], 0x200
mov esi, 0x200
jmp 0x48111e
mov dword [ebp - 0x248], 0
xor esi, esi
push 1
push ebx
mov dword [ebp - 0x24c], esi
call dword [sym.imp.USER32.dll_GetAncestor]
push ebx
test eax, eax
push edi
cmove eax, ebx
push 0x135
push eax
mov dword [ebp - 0x254], eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x48115d
push ebx
push edi
push 0x135
push dword [ebp - 0x254]
call dword [sym.imp.USER32.dll_DefWindowProcW]
push dword [ebp - 0x208]
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
push dword [ebp - 0x214]
push edi
call dword [sym.imp.GDI32.dll_IntersectClipRect]
or esi, 0x10
lea eax, [ebp - 0x234]
push esi
mov esi, dword [sym.imp.USER32.dll_DrawFrameControl]
push 4
push eax
push edi
call esi
push 0
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push dword [ebp - 0x218]
push dword [ebp - 0x21c]
push dword [ebp - 0x220]
push dword [ebp - 0x224]
push edi
call dword [sym.imp.GDI32.dll_IntersectClipRect]
mov eax, dword [ebp - 0x248]
or eax, 0x10
push eax
push 4
lea eax, [ebp - 0x234]
push eax
push edi
call esi
mov esi, dword [ebp - 0x24c]
cmp esi, 0x200
jne 0x4811f6
inc dword [ebp - 0x214]
inc dword [ebp - 0x210]
inc dword [ebp - 0x20c]
inc dword [ebp - 0x208]
mov ecx, dword [ebp - 0x248]
mov eax, dword [ebp - 0x224]
cmp ecx, 0x200
jne 0x481223
inc dword [ebp - 0x220]
inc eax
inc dword [ebp - 0x21c]
inc dword [ebp - 0x218]
mov dword [ebp - 0x224], eax
push 0x1001
cmp esi, ecx
jne 0x481244
push 6
lea eax, [ebp - 0x224]
push eax
push edi
call dword [sym.imp.USER32.dll_DrawEdge]
mov eax, dword [ebp - 0x224]
jmp 0x481262
dec eax
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x224]
push 2
push eax
push edi
call dword [sym.imp.USER32.dll_DrawEdge]
mov eax, dword [ebp - 0x224]
inc eax
add dword [ebp - 0x210], 2
add eax, 2
sub dword [ebp - 0x208], 2
add dword [ebp - 0x214], 2
add dword [ebp - 0x220], 2
sub dword [ebp - 0x21c], 2
sub dword [ebp - 0x218], 2
mov esi, dword [ebp - 0x250]
push 0
push 0
push 0xf2
push ebx
mov dword [ebp - 0x224], eax
call dword [sym.imp.USER32.dll_SendMessageW]
test al, 8
je 0x481351
test dword [esi + 4], 0x40000000
jne 0x481351
push 0
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
cmp dword [esi], 0
je 0x481311
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x234]
push eax
push edi
call dword [sym.imp.USER32.dll_DrawFocusRect]
jmp 0x481351
inc dword [ebp - 0x214]
lea eax, [ebp - 0x214]
add dword [ebp - 0x210], 2
dec dword [ebp - 0x20c]
sub dword [ebp - 0x208], 2
push eax
push edi
call dword [sym.imp.USER32.dll_DrawFocusRect]
inc dword [ebp - 0x214]
inc dword [ebp - 0x210]
dec dword [ebp - 0x20c]
dec dword [ebp - 0x208]
push 0
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push dword [ebp - 0x218]
push dword [ebp - 0x21c]
push dword [ebp - 0x220]
push dword [ebp - 0x224]
push edi
call dword [sym.imp.GDI32.dll_IntersectClipRect]
mov eax, dword [ebp - 0x218]
push 3
add eax, 0xfffffff7
add eax, dword [ebp - 0x220]
push 0
push 0
cdq
push 9
sub eax, edx
push 9
push dword [ebp - 0x25c]
sar eax, 1
push eax
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff7
add eax, dword [ebp - 0x224]
cdq
sub eax, edx
sar eax, 1
push eax
push edi
call dword [sym.imp.USER32.dll_DrawIconEx]
push 0
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push dword [ebp - 0x208]
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
push dword [ebp - 0x214]
push edi
call dword [sym.imp.GDI32.dll_IntersectClipRect]
mov eax, dword [esi + 4]
test al, 0x40
je 0x481475
push 0
push 1
push 0xf6
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
test ebx, ebx
je 0x481569
lea eax, [ebp - 0x260]
push eax
push ebx
call fcn.0047fe20
add esp, 8
mov eax, 0x23
test dword [esi + 4], 0x8000000
mov ecx, 3
mov esi, dword [ebp - 0x260]
cmovne ecx, eax
mov eax, dword [ebp - 0x208]
push ecx
mov ecx, dword [ebp - 0x25c]
sub eax, ecx
add eax, dword [ebp - 0x210]
cdq
push ecx
sub eax, edx
push esi
sar eax, 1
push eax
mov eax, dword [ebp - 0x214]
sub eax, esi
add eax, dword [ebp - 0x20c]
cdq
sub eax, edx
sar eax, 1
push eax
push 0
push ebx
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x481569
and eax, 0x300
xor esi, esi
cmp eax, 0x100
je 0x4814a9
cmp eax, 0x200
je 0x4814a4
push 0xffffffffffffffec
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov esi, eax
and esi, 0x1000
neg esi
sbb esi, esi
neg esi
inc esi
jmp 0x4814a9
mov esi, 2
mov eax, dword [ebp - 0x250]
mov edx, dword [eax + 4]
mov ecx, edx
and ecx, 0xc00
cmp ecx, 0x400
je 0x4814d3
mov eax, esi
or esi, 8
or eax, 4
cmp ecx, 0x800
cmovne esi, eax
mov eax, esi
or esi, 0x20
or eax, 0x10
test edx, 0x2000
cmovne esi, eax
test edx, 0x20000000
je 0x4814f2
or esi, 0x100000
lea eax, [ebp - 0x204]
push eax
push 0x100
push 0xd
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
mov eax, dword [ebp - 0x250]
mov eax, dword [eax]
test eax, eax
je 0x481539
lea ecx, [ebp - 0x214]
push ecx
push 0
push esi
mov esi, dword [ebp - 0x24c]
lea ecx, [ebp - 0x204]
push ebx
push ecx
push esi
push 1
push edi
push eax
call fcn.00495140
jmp 0x481569
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0x12
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push esi
lea eax, [ebp - 0x214]
push eax
push ebx
lea eax, [ebp - 0x204]
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0x264]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push edi
call ebx
push dword [ebp - 0x26c]
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [ebp - 0x268]
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebp - 0x258]
push edi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b5e2f
mov esp, ebp
pop ebp
ret