Function at 0x40ce90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549ba8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x5ad040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x20]
dec dword [eax + 0xc]
inc dword [eax]
add dword [eax + 8], 0xfffffffe
push dword [ecx + 0x148]
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x48], esi
push 1
push 0
mov dword [ebp - 0x4c], eax
call fcn.0041093b
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.004116c0
mov ecx, dword [ebp - 0x48]
mov esi, eax
mov eax, dword [ebp - 0x4c]
push dword [eax + 0xc]
push dword [eax]
lea eax, [ebp - 0x54]
push eax
call fcn.004113a9
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
push dword [eax + 0xc]
mov eax, dword [eax + 8]
inc eax
push eax
call fcn.00411374
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x54]
push eax
call fcn.004113a9
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
push dword [eax + 4]
push dword [eax + 8]
call fcn.00411374
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x54]
push eax
call fcn.004113a9
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
push dword [eax + 0xc]
push dword [eax]
call fcn.00411374
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
push dword [eax + 4]
push dword [eax + 8]
lea eax, [ebp - 0x54]
push eax
call fcn.004113a9
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
push dword [eax + 0xc]
push dword [eax + 8]
call fcn.00411374
mov eax, dword [ebp - 0x4c]
push 0xe0e0e0
movdqu xmm0, xmmword [eax]
movd eax, xmm0
movdqu xmmword [ebp - 0x44], xmm0
inc eax
inc dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x48]
call fcn.0041fc3c
push 0
push 1
push 0
lea ecx, [ebp - 0x68]
call fcn.0041093b
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 1
call fcn.004116c0
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx + 4]
inc eax
push eax
mov eax, dword [ecx]
mov ecx, dword [ebp - 0x48]
inc eax
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.004113a9
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx + 4]
inc eax
push eax
push dword [ecx + 8]
mov ecx, dword [ebp - 0x48]
call fcn.00411374
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx + 4]
inc eax
push eax
mov eax, dword [ecx]
mov ecx, dword [ebp - 0x48]
inc eax
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.004113a9
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
push dword [eax + 0xc]
mov eax, dword [eax]
inc eax
push eax
call fcn.00411374
mov ecx, dword [ebp - 0x48]
push esi
call fcn.004116c0
mov eax, ebx
shl eax, 4
add eax, ebx
mov edx, dword [edi + eax*4 + 0x30]
lea ebx, [edi + eax*4]
test edx, edx
jle 0x40d268
mov eax, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x48]
movdqu xmm0, xmmword [eax]
mov eax, 0x51eb851f
movd esi, xmm0
movdqu xmmword [ebp - 0x24], xmm0
add dword [ebp - 0x20], 2
add esi, 2
mov dword [ebp - 0x24], esi
movdqu xmm0, xmmword [ebp - 0x24]
movdqu xmmword [ebp - 0x80], xmm0
psrldq xmm0, 8
movd ecx, xmm0
sub ecx, esi
imul ecx, edx
imul ecx
mov ecx, edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, esi
mov dword [ebp - 0x1c], eax
inc eax
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x58]
push dword [eax + 0x154]
lea eax, [ebp - 0x24]
push eax
call fcn.0041fc3c
cmp dword [ebx + 0x38], 0
je 0x40d268
call fcn.00412b6d
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40d0d8
push 0x80004005
call fcn.00402af0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 2
call fcn.00412b6d
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40d105
push 0x80004005
call fcn.00402af0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x58], eax
lea eax, [ebx + 0x34]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x58]
call fcn.00406f70
mov esi, dword [ebp - 0x58]
lea eax, [ebp - 0x5c]
push dword [ebx + 0x30]
cmp dword [esi - 0xc], 0
jne 0x40d138
push str._d__
jmp 0x40d139
push esi
push eax
call fcn.00402bc0
add esp, 0xc
mov ecx, edi
push 1
call fcn.0041179f
mov eax, dword [ebp - 0x4c]
push 0xffffffffffffffff
push 0xffffffffffffffff
movdqu xmm0, xmmword [eax]
lea eax, [ebp - 0x34]
push eax
movdqu xmmword [ebp - 0x34], xmm0
call dword [sym.imp.USER32.dll_InflateRect]
inc dword [ebp - 0x30]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], vtable.CRgn.0
mov byte [ebp - 4], 4
push dword [ebp - 0x18]
mov ebx, dword [sym.imp.GDI32.dll_CreateRectRgn]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call ebx
push eax
lea ecx, [ebp - 0x54]
call fcn.00411130
lea eax, [ebp - 0x54]
mov ecx, edi
push eax
call fcn.004115d5
mov eax, dword [edi]
mov ecx, edi
push dword [ebp + 0x18]
call dword [eax + 0x30]
mov edi, dword [ebp - 0x5c]
lea edx, [ebp - 0x34]
mov ecx, dword [ebp - 0x48]
push 0x25
push edx
push dword [edi - 0xc]
mov eax, dword [ecx]
push edi
call dword [eax + 0x68]
lea ecx, [ebp - 0x54]
call fcn.004111e8
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push dword [ebp - 0x60]
call ebx
push eax
lea ecx, [ebp - 0x54]
call fcn.00411130
mov ebx, dword [ebp - 0x48]
lea eax, [ebp - 0x54]
push eax
mov ecx, ebx
call fcn.004115d5
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp + 0x14]
call dword [eax + 0x30]
mov eax, dword [ebx]
lea ecx, [ebp - 0x34]
push 0x25
push ecx
push dword [edi - 0xc]
mov ecx, ebx
push edi
call dword [eax + 0x68]
lea ecx, [ebp - 0x54]
call fcn.004111e8
push 0
mov ecx, ebx
call fcn.004115d5
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], vtable.CRgn.0
call fcn.00402c00
lea edx, [esi - 0x10]
mov byte [ebp - 4], 2
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40d24d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40d268
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], vtable.CPen.0
call fcn.00402c00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], vtable.CPen.0
call fcn.00402c00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052e288
mov esp, ebp
pop ebp
ret 0x1c