Function at 0x480300
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a864
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x5b1700]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
mov dword [esi], vtable.CTaskScheduleAdvancedDialogView.0
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
call fcn.004159d0
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], ebx
lea edi, [esi + 0x68]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov eax, dword [ebp + 0x14]
cmp eax, ebx
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], eax
je 0x4803ab
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
push 0x2c
mov byte [ebp - 4], 5
call fcn.004f6206
add esp, 4
mov dword [ebp + 0xc], eax
cmp eax, ebx
mov byte [ebp - 4], 6
je 0x4803d2
add eax, 0x14
push eax
call fcn.00476090
mov eax, dword [ebp + 0xc]
jmp 0x4803d4
xor eax, eax
mov byte [ebp - 4], 5
call fcn.00481aa0
push 8
call fcn.004f6206
mov edi, eax
add esp, 4
mov dword [ebp + 0xc], edi
cmp edi, ebx
mov byte [ebp - 4], 7
je 0x48043c
mov ecx, dword [esi + 0x6c]
cmp ecx, ebx
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x18], eax
je 0x48040d
lea edx, [ecx + 8]
mov eax, 1
lock xadd dword [edx], eax
cmp ecx, ebx
mov edx, dword [ebp - 0x18]
mov dword [edi], edx
mov dword [edi + 4], ecx
je 0x480438
lea eax, [ecx + 8]
mov edx, 1
lock xadd dword [eax], edx
lea eax, [ecx + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x480438
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov eax, edi
jmp 0x48043e
xor eax, eax
lea edi, [esi + 0x70]
mov byte [ebp - 4], 5
call fcn.00481b10
mov eax, 0x4813d0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], esi
call fcn.00481b80
mov byte [ebp - 4], 8
mov eax, dword [esi + 0x68]
lea ecx, [ebp - 0x30]
push ecx
add eax, 0x14
push eax
lea ecx, [ebp - 0x58]
call fcn.004128d0
lea edx, [ebp - 0x58]
push edx
mov byte [ebp - 4], 0xa
call fcn.00411c20
lea eax, [ebp - 0x30]
lea ebx, [esi + 0x5c]
call fcn.00412560
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.004f4670
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x4804d7
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4804d7
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4804d7
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10