Function at 0x471dac
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x472238
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0x14], 0
je 0x471df3
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x14]
jne 0x471df3
mov dword [ebp - 0x10], 1
jmp 0x472215
mov eax, dword [ebp - 8]
call fcn.0041f1e4
mov dword [ebp - 0x30], eax
mov dl, 1
mov eax, dword [0x41a9dc]
call fcn.004041bc
mov dword [ebp - 0x1c], eax
xor ecx, ecx
push ebp
push 0x47220e
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x471e88
inc esi
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x34]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x2c]
call fcn.00465290
cmp dword [ebp - 0x2c], 0
je 0x471e82
mov eax, 0x30
call fcn.00402a58
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x30
call fcn.004035a4
mov dword [ebx + 4], 0xc800
mov byte [ebx], 1
mov ecx, ebx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
inc dword [ebp - 0x14]
dec esi
jne 0x471e32
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x14]
lea ebx, [eax + eax*2]
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
jne 0x471ea3
mov ebx, 4
cmp ebx, 0x19
jle 0x471ead
mov ebx, 0x19
mov dl, 1
mov eax, dword [0x4707b8]
call fcn.004041bc
mov dword [ebp - 0x18], eax
mov dl, 1
mov eax, dword [0x41a434]
call fcn.004041bc
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [eax + 8], edx
call fcn.00470620
mov eax, dword [ebp - 0x18]
fstp qword [eax + 0x10]
wait
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [eax + 0x18], edx
call fcn.00470620
mov eax, dword [ebp - 0x18]
fstp qword [eax + 0x20]
wait
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x5d], 0
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x5c], 0
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x64], 0
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x65], 0
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [eax + 0x60], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x40], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x44], edx
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [eax + 0x48], edx
call fcn.00470620
mov eax, dword [ebp - 0x18]
fstp qword [eax + 0x50]
wait
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x68], ebx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
mov dword [eax + 0x6c], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x58], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0x10]
mov dword [eax + 0x70], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x74], edx
xor ecx, ecx
push ebp
push 0x4721c3
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0
mov eax, dword [ebp - 0x18]
push eax
push 0
mov eax, 0x470ee0
xor ecx, ecx
mov edx, ebx
call fcn.0045f768
mov eax, dword [ebp - 0x1c]
call fcn.00470c1c
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x65], 0
je 0x472116
cmp dword [ebp - 0xc], 0
jne 0x47210f
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [eax + 8], edx
call fcn.00470620
mov eax, dword [ebp - 0x18]
fstp qword [eax + 0x10]
wait
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [eax + 0x18], edx
call fcn.00470620
mov eax, dword [ebp - 0x18]
fstp qword [eax + 0x20]
wait
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x47206f
inc esi
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ebx, eax
cmp dword [ebx + 0x24], 0xffffffff
je 0x472069
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x30], edx
jmp 0x47206f
inc dword [ebp - 0x14]
dec esi
jne 0x47204b
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, dword [ebp - 0x18]
cmp eax, dword [edx + 0x30]
jle 0x472116
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x7fffffff
push 0x7fffffff
mov eax, dword [ebp - 0x18]
push eax
push 0x472714
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x2c]
call fcn.0046f388
dec eax
sete dl
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x5d], dl
test dl, dl
je 0x472116
mov eax, dword [ebp - 0x30]
cdq
push edx
push eax
mov eax, dword [ebp - 8]
call fcn.0041f204
mov eax, dword [ebp - 0x24]
call fcn.00405294
test eax, eax
jle 0x472116
mov eax, dword [ebp - 0x24]
call fcn.00405294
push eax
lea eax, [ebp - 0x24]
call fcn.004054e4
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0xc]
jmp 0x472116
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x5d], 0
cmp dword [ebp + 8], 0
je 0x472169
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax + 0x54]
push dword [eax + 0x50]
call fcn.00470620
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.00470414
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov al, byte [eax + 0x64]
push eax
lea eax, [ebp - 0x1d]
push eax
lea eax, [ebp - 0x1e]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x40]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 0x18]
add eax, 0x70
call dword [ebp + 8]
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x5d], 0
je 0x47218b
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x65], 0
je 0x4721a2
mov dword [ebp - 0x10], 2
jmp 0x4721a2
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x65], 0
je 0x4721a2
mov dword [ebp - 0x10], 0xfffffffe
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4721ca
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x2c]
call fcn.004041ec
mov eax, dword [ebp - 0x18]
call fcn.004041ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47223f
lea eax, [ebp - 0x34]
call fcn.00404fdc
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00405000
ret