Function at 0x47e750
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edi, dword [ebp + 8]
call fcn.00413a80
test edi, edi
je 0x47e887
prefetcht0 byte [edi]
mov eax, edi
and eax, 0xffe00000
mov esi, dword [eax + 0x1000]
mov ecx, edi
shr ecx, 9
and ecx, 0xfe0
lea edx, [eax + ecx]
add edx, 0x1000
movzx eax, byte [edx + 0x1e]
and eax, 0x3f
shl eax, 5
mov ebx, edi
sub ebx, dword [esi + 0xc]
sub edx, eax
prefetcht0 byte [edx]
cmp byte [esi], 2
je 0x47e891
cmp byte [esi + 6], 0
mov dword [ebp - 0x14], edx
je 0x47e7eb
test ebx, 0xfff
je 0x47ea1d
lea edi, [ebx - 4]
mov eax, dword [edi]
cmp eax, 1
jne 0x47ea3d
mov eax, dword [edi]
mov ecx, eax
and ecx, 0xfffffffe
lock cmpxchg dword [edi], ecx
jne 0x47e7cf
test al, 1
je 0x47ea6e
cmp eax, 1
jne 0x47ea73
cmp byte [esi + 2], 0
je 0x47e969
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
lea ecx, [esi + 0x48]
cmp ecx, eax
ja 0x47e969
lea edx, [esi + 0x8c8]
cmp edx, eax
jb 0x47e969
mov edx, dword [0x4c1b28]
mov edi, dword fs:[0x2c]
mov edx, dword [edi + edx*4]
mov edi, dword [edx + 0x90]
cmp edi, 2
jb 0x47e969
sub eax, ecx
sar eax, 5
add dword [edi + 0x30], 1
adc dword [edi + 0x34], 0
movzx ecx, word [0x4bfcc0]
cmp eax, ecx
ja 0x47e961
mov ecx, dword [edi + eax*8 + 0x58]
bswap ecx
mov dword [ebx], ecx
mov dword [edi + eax*8 + 0x58], ebx
inc byte [edi + eax*8 + 0x5c]
movzx ecx, word [edi + eax*8 + 0x5e]
add dword [edi], ecx
add dword [edi + 0x38], 1
adc dword [edi + 0x3c], 0
mov cl, byte [edi + eax*8 + 0x5d]
cmp byte [edi + eax*8 + 0x5c], cl
ja 0x47e9f8
mov al, byte [edi + 4]
test al, 1
jne 0x47ea11
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov al, byte [0x4bfc8d]
test al, 1
jne 0x47ea98
mov eax, ebx
shr eax, 0x15
cmp word [eax + eax + 0x4bec70], 0xfffe
jne 0x47e7aa
mov eax, dword [edx + 8]
test byte [edx + 0xf], 8
jne 0x47eaa9
mov ecx, edi
lea edx, [eax + 0xc]
mov edi, dword [eax + 0xc]
cmp byte [0x4bfc8f], 1
jne 0x47e8e3
mov eax, dword [edx]
sub eax, dword [esi + 8]
push eax
push 0
mov esi, ecx
push ecx
call fcn.00456480
add esp, 0xc
mov ecx, dword [0x4bfc78]
and ecx, 1
mov eax, 2
sub eax, ecx
mov ecx, ebx
shr cl, 2
and cl, 0x1e
shl eax, cl
mov ecx, ebx
and ecx, 0xffe00000
not eax
shr ebx, 5
and ebx, 0xfffc
lock and dword [ebx + ecx + 0x4000], eax
mov eax, edi
lock xadd dword [0x4bfc70], eax
add eax, edi
mov ecx, dword [0x4bfc74]
cmp eax, ecx
jbe 0x47e887
mov ecx, dword [0x4bfc88]
call fcn.0047f6d0
test al, al
je 0x47e887
mov al, byte [0x4bfc8c]
test al, al
jne 0x47e887
push 1
call fcn.0047d720
add esp, 0xc
jmp 0x47e88a
add dword [edi + 0x40], 1
adc dword [edi + 0x44], 0
mov edi, ebx
mov dword [ebx], 0
lea ebx, [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x47e986
mov ecx, ebx
call fcn.004385b0
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0xc]
sub dword [esi + 0x8fc], eax
mov eax, dword [ebx]
cmp eax, edi
je 0x47eab8
bswap eax
mov dword [edi], eax
mov dword [ebx], edi
mov eax, dword [ebx + 0xc]
mov ecx, eax
and ecx, 0xefffffff
mov dword [ebx + 0xc], ecx
test eax, 0x3ffe
je 0x47eabb
mov edx, 0x3ffe
lea esi, [eax + edx]
and esi, edx
mov edx, eax
and edx, 0xefffc001
or edx, esi
mov dword [ebx + 0xc], edx
test al, 1
mov ecx, ebx
jne 0x47ea8c
test esi, esi
je 0x47ea8c
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x47e887
lea eax, [edi + eax*8]
add eax, 0x58
movzx edx, cl
shr edx, 1
mov ecx, edi
push edx
push eax
call fcn.00438c70
jmp 0x47e87c
mov ecx, edi
call fcn.00439000
jmp 0x47e887
mov eax, ebx
and eax, 0xffe00000
mov ecx, ebx
shr ecx, 9
and ecx, 0xff8
lea edi, [ecx + eax]
add edi, 0x2000
jmp 0x47e7c2
mov dword [ebp - 0x10], ebx
test byte [edx + 0xf], 8
jne 0x47eab3
mov eax, dword [edx + 8]
add eax, 0xc
mov eax, dword [eax]
sub eax, dword [esi + 8]
push eax
push 0xef
mov ebx, dword [ebp + 8]
push ebx
call fcn.00456480
add esp, 0xc
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
jmp 0x47e7cd
call fcn.0047d680
mov eax, dword [edx + 8]
mov eax, dword [eax + 0xc]
lock add dword [esi + 0x918], eax
lock inc dword [esi + 0x91c]
jmp 0x47e887
push 1
call fcn.004360f0
jmp 0x47e9ea
mov edi, edx
call fcn.0047d740
mov edx, edi
mov edi, dword [ebp + 8]
jmp 0x47e89e
mov ecx, edi
add edx, 0x20
jmp 0x47e8c4
lea eax, [edx + 0x20]
jmp 0x47ea4c
int3
int3