Function at 0x4ee300
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov edi, dword [ebp + 0xc]
mov eax, dword [0x5f3418]
xor eax, ebp
mov dword [esp + 0x38], eax
mov ecx, edi
shr ecx, 0x10
mov eax, edi
shr eax, 0x15
mov edx, dword [eax*4 + 0x6c04fc]
mov al, 1
bt edx, ecx
jae 0x4ee458
test edi, edi
je 0x4ee445
test al, al
je 0x4ee445
prefetcht0 byte [edi]
mov eax, edi
and eax, 0xffe00000
mov ebx, dword [eax + 0x1000]
mov ecx, edi
shr ecx, 9
and ecx, 0xfe0
lea edx, [eax + ecx]
add edx, 0x1000
movzx eax, byte [eax + ecx + 0x101e]
and eax, 0x3f
shl eax, 5
mov ecx, edi
sub ecx, dword [ebx + 0x10]
sub edx, eax
prefetcht0 byte [edx]
cmp byte [ebx], 2
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
je 0x4ee8d6
cmp byte [ebx + 6], 0
jne 0x4ee479
cmp byte [ebx + 3], 0
je 0x4ee4d5
mov edi, dword [edx + 8]
lea eax, [ebx + 0x48]
lea ecx, [ebx + 0x1148]
cmp ecx, edi
setae cl
cmp eax, edi
ja 0x4ee9b3
test cl, cl
je 0x4ee4d5
mov ecx, dword [0x5f75b4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
mov esi, dword [ecx + 0x140]
cmp esi, 2
jb 0x4ee4d5
sub edi, eax
add dword [esi + 0x30], 1
adc dword [esi + 0x34], 0
cmp edi, 0x3e0
ja 0x4ee4cd
mov edx, edi
shr edx, 2
mov eax, dword [esi + edx + 0x58]
bswap eax
mov ebx, dword [esp + 0xc]
mov dword [ebx], eax
mov dword [esi + edx + 0x58], ebx
movzx ecx, byte [esi + edx + 0x5c]
inc cl
mov byte [esi + edx + 0x5c], cl
movzx eax, word [esi + edx + 0x5e]
add dword [esi], eax
add dword [esi + 0x38], 1
adc dword [esi + 0x3c], 0
movzx edx, byte [esi + edx + 0x5d]
cmp cl, dl
ja 0x4ee584
movzx eax, byte [esi + 4]
test al, 1
jne 0x4ee8a2
mov ecx, dword [esp + 0x38]
xor ecx, ebp
call fcn.00512ee3
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x6c24fc]
bt ecx, eax
setb al
test edi, edi
jne 0x4ee33e
jmp 0x4ee445
test ecx, 0xfff
je 0x4ee562
lea esi, [ecx - 4]
mov eax, dword [esi]
and eax, 0x7fffffff
cmp eax, 1
jne 0x4ee6b2
mov eax, dword [esi]
nop word [eax + eax]
mov ecx, eax
and ecx, 0xfffffffe
lock cmpxchg dword [esi], ecx
jne 0x4ee4a0
test al, 1
je 0x4ee9ba
and eax, 0x7fffffff
cmp eax, 1
jne 0x4ee6e9
cmp byte [ebx + 3], 0
jne 0x4ee3a7
jmp 0x4ee4d5
add dword [esi + 0x40], 1
adc dword [esi + 0x44], 0
mov edi, dword [esp + 0xc]
mov dword [edi], 0
lea esi, [ebx + 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x4ee8ae
mov edx, dword [esp + 8]
mov eax, dword [edx + 8]
mov eax, dword [eax + 0xc]
sub dword [ebx + 0x117c], eax
mov eax, dword [edx]
cmp eax, edi
je 0x4ee9c2
bswap eax
mov dword [edi], eax
mov dword [edx], edi
mov eax, dword [edx + 0xc]
mov ecx, eax
and ecx, 0xefffffff
mov dword [edx + 0xc], ecx
test eax, 0x3ffe
je 0x4ee9c5
mov ecx, edx
lea edi, [eax + 0x3ffe]
and edi, 0x3ffe
mov edx, eax
and edx, 0xefffc001
or edx, edi
mov dword [ecx + 0xc], edx
test al, 1
jne 0x4ee559
test edi, edi
je 0x4ee559
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x4ee445
push 1
call fcn.004eea90
jmp 0x4ee54d
mov eax, ecx
and eax, 0xffe00000
mov ecx, dword [esp + 0xc]
shr ecx, 9
and ecx, 0xff8
lea esi, [ecx + eax]
add esi, 0x2000
jmp 0x4ee488
movzx edx, dl
mov dword [esp + 8], edx
shr edx, 1
cmp cl, dl
jbe 0x4ee439
mov dword [esp + 0x1c], edx
shr edi, 5
mov ecx, ebx
push eax
call fcn.004f0880
movzx edx, byte [esi + edi*8 + 0x5c]
cmp byte [esp + 8], 1
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], edx
ja 0x4ee747
movzx eax, word [esi + edi*8 + 0x5e]
mov dword [esp + 0x14], eax
mov ebx, dword [esi + edi*8 + 0x58]
mov eax, dword [esi + 0x2d8]
add eax, 0x40
mov dword [esp + 8], eax
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x4ee8ba
test ebx, ebx
je 0x4ee716
mov edi, dword [ebx]
test edi, edi
je 0x4ee6a2
bswap edi
test edi, 0x1fc000
je 0x4eea03
prefetcht0 byte [edi]
mov eax, ebx
and eax, 0xffe00000
mov edx, ebx
shr edx, 9
and edx, 0xfe0
lea ecx, [edx + eax]
movzx eax, byte [edx + eax + 0x101e]
mov edx, dword [esi + 0x2d8]
and eax, 0x3f
shl eax, 5
sub ecx, eax
mov eax, dword [ecx + 0x1008]
mov eax, dword [eax + 0xc]
sub dword [edx + 0x117c], eax
mov eax, dword [ecx + 0x1000]
cmp eax, ebx
je 0x4ee9fd
add ecx, 0x1000
bswap eax
mov dword [ebx], eax
mov dword [ecx], ebx
mov eax, dword [ecx + 0xc]
mov edx, eax
and edx, 0xefffffff
mov dword [ecx + 0xc], edx
test eax, 0x3ffe
je 0x4eea00
lea edx, [eax + 0x3ffe]
and edx, 0x3ffe
mov ebx, eax
and ebx, 0xefffc001
or ebx, edx
mov dword [ecx + 0xc], ebx
test al, 1
jne 0x4ee6a9
test edx, edx
je 0x4ee6a9
mov ebx, edi
test edi, edi
jne 0x4ee5ed
jmp 0x4ee716
xor edi, edi
jmp 0x4ee608
push 1
call fcn.004eea90
jmp 0x4ee696
cmp byte [ebx + 7], 0
je 0x4ee498
test byte [edx + 0xf], 8
jne 0x4eea4b
mov eax, dword [edx + 8]
add eax, 0xc
mov eax, dword [eax]
sub eax, dword [ebx + 0xc]
push eax
push 0xef
push edi
call fcn.005191b0
add esp, 0xc
mov edx, dword [esp + 8]
jmp 0x4ee498
mov eax, dword [edx + 8]
mov eax, dword [eax + 0xc]
lock add dword [ebx + 0x1198], eax
lock inc dword [ebx + 0x119c]
mov eax, dword [edx + 8]
mov eax, dword [eax + 0xc]
lock add dword [ebx + 0x11a0], eax
lock inc dword [ebx + 0x11a4]
jmp 0x4ee445
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esp + 0x18]
mov dword [esi + eax*8 + 0x58], 0
mov ecx, dword [esp + 0x1c]
mov byte [esi + eax*8 + 0x5c], cl
sub ecx, dword [esp + 0xc]
movzx eax, word [esi + eax*8 + 0x5e]
imul eax, ecx
add dword [esi], eax
jmp 0x4ee439
mov ecx, dword [esi + edi*8 + 0x58]
movzx eax, word [esi + edi*8 + 0x5e]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
cmp al, 1
je 0x4ee77d
dec eax
mov ebx, ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x4ee9f6
bswap ecx
test ecx, 0x1fc000
je 0x4ee9c8
prefetcht0 byte [ecx]
dec eax
jne 0x4ee75d
mov edi, dword [ecx]
test edi, edi
mov dword [esp + 0x14], ecx
je 0x4eea67
bswap edi
test edi, 0x1fc000
je 0x4eea6e
prefetcht0 byte [edi]
mov eax, dword [esi + 0x2d8]
add eax, 0x40
mov dword [esp + 8], eax
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x4ee8c8
test edi, edi
je 0x4ee885
mov ebx, dword [edi]
test ebx, ebx
je 0x4ee875
bswap ebx
test ebx, 0x1fc000
je 0x4eea37
prefetcht0 byte [ebx]
mov eax, edi
and eax, 0xffe00000
mov edx, edi
shr edx, 9
and edx, 0xfe0
lea ecx, [edx + eax]
movzx eax, byte [edx + eax + 0x101e]
mov edx, dword [esi + 0x2d8]
and eax, 0x3f
shl eax, 5
sub ecx, eax
mov eax, dword [ecx + 0x1008]
mov eax, dword [eax + 0xc]
sub dword [edx + 0x117c], eax
mov eax, dword [ecx + 0x1000]
cmp eax, edi
je 0x4eea31
add ecx, 0x1000
bswap eax
mov dword [edi], eax
mov dword [ecx], edi
mov eax, dword [ecx + 0xc]
mov edx, eax
and edx, 0xefffffff
mov dword [ecx + 0xc], edx
test eax, 0x3ffe
je 0x4eea34
lea edx, [eax + 0x3ffe]
and edx, 0x3ffe
mov edi, eax
and edi, 0xefffc001
or edi, edx
mov dword [ecx + 0xc], edi
test al, 1
jne 0x4ee87c
test edx, edx
je 0x4ee87c
mov edi, ebx
test ebx, ebx
jne 0x4ee7c0
jmp 0x4ee885
xor ebx, ebx
jmp 0x4ee7db
push 1
call fcn.004eea90
jmp 0x4ee869
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
jmp 0x4ee72c
mov ecx, esi
call fcn.004f06a0
jmp 0x4ee445
mov ecx, esi
call fcn.004ef6b0
jmp 0x4ee4f1
mov ecx, dword [esp + 8]
call fcn.004ef6b0
jmp 0x4ee5e5
mov ecx, dword [esp + 8]
call fcn.004ef6b0
jmp 0x4ee7b8
mov al, byte [0x5f6211]
test al, 1
jne 0x4eea53
mov ecx, dword [esp + 0xc]
mov eax, ecx
shr eax, 0x15
cmp word [eax + eax + 0x5f6238], 0xfffe
mov edx, dword [esp + 8]
jne 0x4ee393
mov eax, dword [edx + 8]
test byte [edx + 0xf], 8
jne 0x4eea5d
lea ecx, [eax + 0xc]
mov dword [esp + 8], ecx
mov esi, dword [eax + 0xc]
cmp byte [0x5f6213], 1
jne 0x4ee934
mov eax, dword [esp + 8]
mov eax, dword [eax]
sub eax, dword [ebx + 0xc]
push eax
push 0
push edi
call fcn.005191b0
add esp, 0xc
mov ecx, dword [0x5f61fc]
and ecx, 1
mov eax, 2
sub eax, ecx
mov edx, dword [esp + 0xc]
mov ecx, edx
shr cl, 2
and cl, 0x1e
shl eax, cl
mov ecx, edx
and ecx, 0xffe00000
not eax
shr edx, 5
and edx, 0xfffc
lock and dword [edx + ecx + 0x4000], eax
mov eax, esi
lock xadd dword [0x5f61f4], eax
add eax, esi
mov ecx, dword [0x5f61f8]
cmp eax, ecx
jbe 0x4ee445
mov eax, dword [0x5f620c]
mov al, byte [eax + 8]
test al, 1
je 0x4ee445
mov al, byte [0x5f6210]
test al, al
jne 0x4ee445
push 1
call fcn.00582f40
add esp, 4
jmp 0x4ee445
xor ecx, ecx
jmp 0x4ee3c0
mov ecx, esi
push eax
call fcn.004d1d90
int3
int3
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x20]
movdqa xmmword [esi], xmm0
mov ecx, esi
push 0
push dword [ebx]
push str.first
call fcn.00569a10
push esi
call fcn.00404ca0
add esp, 4
mov ecx, dword [esp + 0x10]
call fcn.00582d50
xor ecx, ecx
jmp 0x4ee77a
int3
int3
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x20]
movdqa xmmword [esi], xmm0
mov ecx, esi
push 0
push dword [ebx]
push str.first
call fcn.00569a10
push esi
call fcn.00404ca0
add esp, 4
mov ecx, dword [esp + 0x14]
call fcn.00582d50
int3
int3
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x20]
movdqa xmmword [esi], xmm0
mov ecx, esi
push 0
push dword [edi]
jmp 0x4ee9da
lea eax, [edx + 0x20]
jmp 0x4ee6cc
call fcn.00582f60
jmp 0x4ee8e3
add dword [esp + 8], 0x20
jmp 0x4ee913
xor edi, edi
jmp 0x4ee79c
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x20]
movdqa xmmword [esi], xmm0
mov eax, ecx
mov ecx, esi
push 0
push dword [eax]
jmp 0x4ee9da