Function at 0x49a0e0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4dc441
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.GDI32.dll_GetStockObject]
mov esi, ecx
push ebx
call edi
push eax
call fcn.004ad662
push 4
mov dword [esp + 0x10], eax
call edi
push eax
call fcn.004ad662
mov edi, vtable.CRgn.0
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0xd0], ebx
call fcn.0042a490
mov dword [esp + 0x2c], edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd0], 1
call fcn.0042a490
mov dword [esp + 0x1c], edi
mov eax, dword [esi + 0x44]
mov edi, dword [esi + 0x40]
add eax, 2
mov byte [esp + 0xd0], 2
mov dword [esp + 0x10], eax
dec edi
fild dword [esp + 0x10]
cdq
fmul dword [0x4f2d98]
sub eax, edx
mov ebx, eax
sar ebx, 1
call fcn.00438868
cdq
sub eax, edx
mov ecx, dword [esi + 0x3c]
sar eax, 1
mov dword [esp + 0x10], eax
mov edx, edi
sub edx, dword [esp + 0x10]
mov eax, ecx
sub eax, ebx
push 1
mov dword [esp + 0x18], edx
mov dword [esp + 0x40], edx
mov edx, edi
mov dword [esp + 0x3c], eax
sub edx, ebx
mov dword [esp + 0x64], eax
mov dword [esp + 0x48], edx
lea edx, [ebx + ecx]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x3c]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x14]
add edx, edi
add ebx, edi
push 6
push eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x70], edx
call dword [sym.imp.GDI32.dll_CreatePolygonRgn]
push eax
lea ecx, [esp + 0x30]
call fcn.004ad677
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x49a215
xor ecx, ecx
jmp 0x49a218
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
push 2
push 2
neg eax
push ecx
mov ecx, dword [ebp + 8]
sbb eax, eax
and eax, edx
mov edx, dword [ecx + 4]
push eax
push edx
call dword [sym.imp.GDI32.dll_FrameRgn]
mov eax, dword [esi + 0x44]
mov ebx, dword [esi + 0x40]
add eax, 2
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
cdq
fmul dword [0x4f2d98]
sub eax, edx
mov edi, eax
sar edi, 1
call fcn.00438868
mov ecx, dword [esi + 0x3c]
push 1
cdq
sub eax, edx
mov edx, ecx
sub edx, edi
mov dword [esp + 0x74], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x6c], edx
sar eax, 1
mov edx, ebx
mov dword [esp + 0x8c], ecx
sub edx, eax
add eax, ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x70], edx
mov edx, ebx
push 6
sub edx, edi
mov dword [esp + 0x8c], eax
mov dword [esp + 0x7c], edx
lea edx, [edi + ecx]
mov dword [esp + 0x20], edx
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x88], edx
lea edx, [esp + 0x70]
add edi, ebx
mov ebx, dword [sym.imp.GDI32.dll_CreatePolygonRgn]
push edx
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], eax
call ebx
push eax
lea ecx, [esp + 0x20]
call fcn.004ad677
mov edi, dword [esp + 0x34]
test edi, edi
jne 0x49a2fe
xor ecx, ecx
jmp 0x49a301
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
neg eax
sbb eax, eax
push 1
and eax, edx
push 1
push ecx
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.GDI32.dll_FrameRgn]
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x40]
lea edx, [esp + 0x98]
dec eax
push edx
mov edx, dword [esi + 0x3c]
push eax
push ecx
push edx
mov ecx, esi
call fcn.004999c0
push 1
lea eax, [esp + 0x9c]
push 6
push eax
call ebx
push eax
lea ecx, [esp + 0x28]
call fcn.004ad677
test edi, edi
je 0x49a35d
mov edi, dword [edi + 4]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x24]
neg eax
sbb eax, eax
push 1
and eax, ecx
mov ecx, dword [ebp + 8]
push 1
push edi
mov edx, dword [ecx + 4]
push eax
push edx
call dword [sym.imp.GDI32.dll_FrameRgn]
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd0], 1
mov dword [esp + 0x1c], vtable.CRgn.0
call fcn.00404410
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd0], 0
call fcn.00411940
lea ecx, [esp + 0x24]
mov dword [esp + 0xd0], 0xffffffff
call fcn.00411940
mov ecx, dword [esp + 0xc8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4