Function at 0x461580
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a480
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x542040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x220], edi
mov ebx, ecx
mov dword [ebp - 0x228], ebx
push 0x104
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
mov eax, dword [edi + 0xe4]
test eax, eax
je 0x4615e6
lea ecx, [ebp - 0x218]
cmp ecx, dword [eax + 8]
je 0x4615fa
push 0
lea eax, [ebp - 0x218]
push eax
lea ecx, [edi + 0xe4]
call fcn.0042dfa0
mov eax, dword [edi + 0xe4]
test eax, eax
je 0x461609
mov eax, dword [eax + 8]
jmp 0x46160b
xor eax, eax
push str.edit
push eax
call fcn.004f276a
add esp, 8
mov edx, ebx
test eax, eax
jne 0x461662
lea ecx, [ebp - 0x224]
call fcn.0042e7c0
push eax
lea ecx, [edi + 0xe0]
call fcn.0042ec20
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x4616ad
add dword [eax + 4], 0xffffffff
jne 0x4616ad
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x4616ad
push eax
call fcn.004eb01a
add esp, 4
jmp 0x4616ad
lea ecx, [ebp - 0x21c]
call fcn.0042e8a0
push eax
lea ecx, [edi + 0xe0]
call fcn.0042ec20
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x4616a3
add dword [eax + 4], 0xffffffff
jne 0x4616a3
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x4616a3
push eax
call fcn.004eb01a
add esp, 4
mov dword [ebp - 0x21c], 0
mov edx, edi
mov dword [ebp - 4], 0xffffffff
mov ecx, ebx
call fcn.004617e0
push 0x54a14c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x20]
push eax
call fcn.00435a80
push 0x54a14c
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x228]
mov eax, ecx
mov esi, dword [sym.imp.USER32.dll_GetAncestor]
cdq
push 1
push ecx
mov dword [edi], eax
mov dword [edi + 4], edx
call esi
push 2
push dword [edi]
cdq
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
call esi
cdq
push 0xfffffffffffffff0
push dword [edi]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov edi, dword [sym.imp.USER32.dll_GetClassLongW]
call edi
mov ecx, dword [ebp - 0x220]
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
cdq
push dword [ecx]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
call esi
mov ecx, dword [ebp - 0x220]
push 0xffffffffffffffec
push dword [ecx]
mov dword [ecx + 0x34], eax
call esi
mov esi, dword [ebp - 0x220]
push 0xffffffffffffffe6
push dword [esi]
mov dword [esi + 0x38], eax
call edi
mov ecx, esi
mov dword [esi + 0x44], eax
call fcn.00461470
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindowUnicode]
push dword [esi]
test eax, eax
setne al
mov byte [esi + 0x2c], al
call dword [sym.imp.USER32.dll_IsWindowVisible]
push dword [esi]
test eax, eax
setne al
mov byte [esi + 0x2d], al
call dword [sym.imp.USER32.dll_IsWindowEnabled]
mov ecx, dword [esi + 0x38]
test eax, eax
sete al
mov byte [esi + 0x2e], al
mov eax, ecx
shr eax, 3
and ecx, 0x80020
and al, 1
cmp ecx, 0x80020
mov byte [esi + 0x2f], al
sete al
mov byte [esi + 0x31], al
cmp dword [ebx + 0x1c], 0
setne al
mov ecx, dword [esi + 0xd8]
mov byte [esi + 0x30], al
call fcn.004611d0
mov dword [esi + 0x48], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004dadd7
mov esp, ebp
pop ebp
ret