Function at 0x40c530
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x480fb0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4a28]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
test dword [edi + 0xc], 0x80000000
je 0x40c762
mov eax, dword [edi + 8]
push eax
call fcn.0040c8b0
test eax, eax
mov ecx, dword [edi + 0x2c]
je 0x40c57f
mov eax, dword [eax + 4]
push 1
push eax
mov eax, dword [ecx + 0x20]
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
call fcn.00442c05
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40c5a8
push 0x80004005
call fcn.00402720
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], 0
mov eax, dword [edi + 0x2c]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.0044db2e
mov ecx, dword [edi + 0x2c]
lea edx, [esp + 0x14]
push edx
mov esi, eax
call fcn.00446d9b
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
mov edx, dword [edi + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
push 0x500
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov ecx, dword [eax - 0xc]
mov edx, dword [esi]
lea ebx, [esp + 0x20]
push ebx
push ecx
push eax
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
mov eax, dword [edi + 0x2c]
mov ecx, dword [esi + 4]
mov edx, dword [eax + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [edi + 0x18]
mov ecx, dword [esp + 0x28]
sub eax, dword [edi + 0x10]
mov ebx, dword [edi + 0x1c]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
sub ebx, dword [edi + 0x14]
mov ebp, ecx
add eax, esi
sub ebp, edx
cmp ebp, ebx
mov dword [esp + 0x24], eax
jge 0x40c677
push 6
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
push 4
sub ecx, edx
push ecx
mov ecx, dword [edi + 0x2c]
sub eax, esi
push eax
push edx
push esi
push 0
call fcn.0044ccb4
mov ecx, dword [edi + 0xc]
and cl, 1
neg cl
sbb ecx, ecx
and ecx, 5
mov ebp, ecx
call fcn.00442c05
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40c6b4
push 0x80004005
call fcn.00402720
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
test ebp, ebp
mov byte [esp + 0x38], 1
je 0x40c70c
mov esi, dword [edi + 8]
push 0xa
push edi
lea ebx, [esp + 0x20]
call fcn.0040b620
test eax, eax
je 0x40c70c
mov esi, dword [esp + 0x18]
push 4
push edi
lea ebx, [esp + 0x1c]
call fcn.0040b620
test eax, eax
je 0x40c70c
mov ecx, dword [esp + 0x14]
push str.HIDE
push ecx
call fcn.0046765d
add esp, 8
test eax, eax
jne 0x40c70c
xor ebp, ebp
mov ecx, dword [edi + 0x2c]
push ebp
call fcn.0044cace
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c73a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c762
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret