Function at 0x4c1bb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5ff7d8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x44]
xor esi, esi
mov dword [esp + 0x30], esi
call fcn.004c6cd0
mov edi, dword [esp + 0x48]
call fcn.004c6cd0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x18]
push eax
push ecx
push edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
call fcn.0050f980
mov ebp, dword [esp + 0x24]
lea ecx, [ecx]
xor edx, edx
cmp ebp, edx
je 0x4c1cde
cmp ebp, dword [esp + 0x20]
je 0x4c1cde
mov esi, dword [esp + 0x14]
mov eax, ebp
mov ecx, dword [eax + 8]
mov ebp, dword [ebp]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4c1c9b
cmp dword [esi + 0xc], edx
lea edi, [esi + 0xc]
jl 0x4c1c8e
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4c1c8e
call fcn.0040a210
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4c1c85
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x4c1c9b
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.004037a0
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4c1cb5
lea ecx, [esp + 0x14]
push ecx
call eax
add esp, 4
test eax, eax
jne 0x4c1c30
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x44]
push esi
mov ecx, ebx
call fcn.004c39a0
test eax, eax
jne 0x4c1cd5
mov eax, esi
call fcn.004c37c0
jmp 0x4c1c30
mov byte [eax + 4], 0
jmp 0x4c1c30
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], edx
lea edx, [esp + 0x18]
push edx
push eax
push ecx
call fcn.0050f980
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x4c1daf
cmp ebp, dword [esp + 0x20]
je 0x4c1daf
mov esi, dword [esp + 0x14]
mov eax, ebp
mov ecx, dword [eax + 8]
mov ebp, dword [ebp]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4c1d70
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4c1d63
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4c1d63
call fcn.0040a210
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4c1d5a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x4c1d70
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.004037a0
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4c1d86
lea ecx, [esp + 0x14]
push ecx
call eax
add esp, 4
test eax, eax
jne 0x4c1d06
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x48]
push esi
mov ecx, ebx
call fcn.004c39a0
test eax, eax
jne 0x4c1da6
mov eax, esi
call fcn.004c37c0
jmp 0x4c1d06
mov byte [eax + 4], 0
jmp 0x4c1d06
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
push edx
push eax
call fcn.004c00a0
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c1de9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret