Function at 0x48675c
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 0x486bdd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0x14], 0
je 0x4867a3
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x14]
jne 0x4867a3
mov dword [ebp - 0x10], 1
jmp 0x486bba
mov eax, dword [ebp - 8]
call fcn.0041ee80
mov dword [ebp - 0x30], eax
mov dl, 1
mov eax, dword [0x41a678]
call fcn.004041bc
mov dword [ebp - 0x1c], eax
xor ecx, ecx
push ebp
push 0x486bb3
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 0x486838
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.0045bee8
cmp dword [ebp - 0x2c], 0
je 0x486832
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 0x4867e2
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 0x486853
mov ebx, 4
cmp ebx, 0x19
jle 0x48685d
mov ebx, 0x19
mov dl, 1
mov eax, dword [0x4851e4]
call fcn.004041bc
mov dword [ebp - 0x18], eax
mov dl, 1
mov eax, dword [0x41a0d0]
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.0047bfc0
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.0047bfc0
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 + 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.0047bfc0
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 0x486b68
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0
mov eax, dword [ebp - 0x18]
push eax
push 0
mov eax, 0x48590c
xor ecx, ecx
mov edx, ebx
call fcn.004626e8
mov eax, dword [ebp - 0x1c]
call fcn.00485648
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x65], 0
je 0x486abf
cmp dword [ebp - 0xc], 0
jne 0x486ab8
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.0047bfc0
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.0047bfc0
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 0x486a18
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 0x486a12
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x30], edx
jmp 0x486a18
inc dword [ebp - 0x14]
dec esi
jne 0x4869f4
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, dword [ebp - 0x18]
cmp eax, dword [edx + 0x30]
jle 0x486abf
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 0x4870a0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x2c]
call fcn.00468578
dec eax
sete dl
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x5c], dl
test dl, dl
je 0x486abf
mov eax, dword [ebp - 0x30]
cdq
push edx
push eax
mov eax, dword [ebp - 8]
call fcn.0041eea0
mov eax, dword [ebp - 0x24]
call fcn.00405294
test eax, eax
jle 0x486abf
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 0x486abf
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x5c], 0
cmp dword [ebp + 8], 0
je 0x486b0e
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.0047bfc0
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0047bdb4
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
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 + 0x5c], 0
je 0x486b30
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x65], 0
je 0x486b47
mov dword [ebp - 0x10], 2
jmp 0x486b47
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x65], 0
je 0x486b47
mov dword [ebp - 0x10], 0xfffffffe
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486b6f
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 0x486be4
lea eax, [ebp - 0x34]
call fcn.00404fdc
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00405000
ret