Function at 0x46b990
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542f05
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5a9008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
xor eax, eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], eax
push 0x10
mov dword [ebp - 0x18], eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
call fcn.004ef5e0
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebx], eax
mov dword [ebp - 4], 0
push 0x10
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
call fcn.004ef5e0
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebx + 8], eax
mov byte [ebp - 4], 1
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov byte [ebp - 4], 2
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov byte [ebp - 4], 3
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
push 0x10
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
call fcn.004ef5e0
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebx + 0x28], eax
mov byte [ebp - 4], 4
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov byte [ebp - 4], 5
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
push 0x10
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
call fcn.004ef5e0
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebx + 0x40], eax
mov byte [ebp - 4], 6
mov byte [ebx + 0x48], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0
mov byte [ebp - 4], 7
push 0x10
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], 0
call fcn.004ef5e0
add esp, 0x14
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebx + 0x68], eax
mov byte [ebp - 4], 8
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 9
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x10]
call fcn.0046e830
mov byte [ebp - 4], 8
or edi, 0xffffffff
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x46bb38
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x46bb38
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x46bb38
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x18]
call fcn.0046e830
mov byte [ebp - 4], 8
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x46bb80
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x46bb80
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x46bb80
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 0xb
push 0x20
call fcn.004ef5e0
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 0xc
test esi, esi
je 0x46bbd1
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], fcn.0040f930
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edx
jmp 0x46bbd3
xor esi, esi
mov byte [ebp - 4], 0xb
xorps xmm0, xmm0
mov edx, dword [ebp - 0x18]
lea ecx, [esi + 0x10]
or edx, 1
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 0xd
mov eax, dword [ebx + 0x60]
mov edi, dword [ebx + 0x64]
mov dword [ebp - 0x14], eax
mov dword [ebx + 0x60], ecx
mov dword [ebp - 0x10], edi
mov dword [ebx + 0x64], esi
mov byte [ebp - 4], 0xb
test edi, edi
je 0x46bc66
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x46bc66
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x46bc63
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov edx, dword [ebp - 0x18]
and edx, 0xfffffffe
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc