Function at 0x46d7d0
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 0x46dc5c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0x14], 0
je 0x46d817
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x14]
jne 0x46d817
mov dword [ebp - 0x10], 1
jmp 0x46dc39
mov eax, dword [ebp - 8]
call fcn.0041a1b0
mov dword [ebp - 0x30], eax
mov dl, 1
mov eax, dword [0x4159bc]
call fcn.00404150
mov dword [ebp - 0x1c], eax
xor ecx, ecx
push ebp
push 0x46dc32
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 0x46d8ac
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.004565a0
cmp dword [ebp - 0x2c], 0
je 0x46d8a6
mov eax, 0x30
call fcn.00402a58
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x30
call fcn.00403540
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 0x46d856
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 0x46d8c7
mov ebx, 4
cmp ebx, 0x19
jle 0x46d8d1
mov ebx, 0x19
mov dl, 1
mov eax, dword [0x46c0c8]
call fcn.00404150
mov dword [ebp - 0x18], eax
mov dl, 1
mov eax, dword [0x415414]
call fcn.00404150
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.0046bf30
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.0046bf30
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.0046bf30
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 0x46dbe7
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0
mov eax, dword [ebp - 0x18]
push eax
push 0
mov eax, 0x46c858
xor ecx, ecx
mov edx, ebx
call fcn.0045e698
mov eax, dword [ebp - 0x1c]
call fcn.0046c594
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x65], 0
je 0x46db3a
cmp dword [ebp - 0xc], 0
jne 0x46db33
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.0046bf30
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.0046bf30
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 0x46da93
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 0x46da8d
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x30], edx
jmp 0x46da93
inc dword [ebp - 0x14]
dec esi
jne 0x46da6f
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, dword [ebp - 0x18]
cmp eax, dword [edx + 0x30]
jle 0x46db3a
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 0x46e13c
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x2c]
call fcn.0046ac98
dec eax
sete dl
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x5d], dl
test dl, dl
je 0x46db3a
mov eax, dword [ebp - 0x30]
cdq
push edx
push eax
mov eax, dword [ebp - 8]
call fcn.0041a1d0
mov eax, dword [ebp - 0x24]
call fcn.00405228
test eax, eax
jle 0x46db3a
mov eax, dword [ebp - 0x24]
call fcn.00405228
push eax
lea eax, [ebp - 0x24]
call fcn.00405478
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0xc]
jmp 0x46db3a
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x5d], 0
cmp dword [ebp + 8], 0
je 0x46db8d
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.0046bf30
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0046bd24
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 0x46dbaf
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x65], 0
je 0x46dbc6
mov dword [ebp - 0x10], 2
jmp 0x46dbc6
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x65], 0
je 0x46dbc6
mov dword [ebp - 0x10], 0xfffffffe
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46dbee
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x2c]
call fcn.00404180
mov eax, dword [ebp - 0x18]
call fcn.00404180
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46dc63
lea eax, [ebp - 0x34]
call fcn.00404f70
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00404f94
ret