Function at 0x40d3d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4955c0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bea30]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
test dword [edi + 0xc], 0x80000000
je 0x40d603
mov eax, dword [edi + 8]
push eax
push edi
call fcn.0040d750
test eax, eax
mov ecx, dword [edi + 0x2c]
je 0x40d420
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.0045525d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d449
push 0x80004005
call fcn.004022b0
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.00460255
mov ecx, dword [edi + 0x2c]
lea edx, [esp + 0x14]
push edx
mov esi, eax
call fcn.00459413
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 0x40d518
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.0045de3a
mov ecx, dword [edi + 0xc]
and cl, 1
neg cl
sbb ecx, ecx
and ecx, 5
mov ebp, ecx
call fcn.0045525d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d555
push 0x80004005
call fcn.004022b0
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 0x40d5ad
mov esi, dword [edi + 8]
push 0xa
push edi
lea ebx, [esp + 0x20]
call fcn.0040c370
test eax, eax
je 0x40d5ad
mov esi, dword [esp + 0x18]
push 4
push edi
lea ebx, [esp + 0x1c]
call fcn.0040c370
test eax, eax
je 0x40d5ad
mov ecx, dword [esp + 0x14]
push str.HIDE
push ecx
call fcn.0047a268
add esp, 8
test eax, eax
jne 0x40d5ad
xor ebp, ebp
mov ecx, dword [edi + 0x2c]
push ebp
call fcn.0045dc50
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 0x40d5db
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 0x40d603
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