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

Disassembly:
push 0xffffffffffffffff
push 0x1004e000
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov esi, dword [esp + 0x34]
push 0
push 0x10050713
mov ecx, esi
mov dword [esp + 0x2c], 0
call fcn.10002bf0
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.100047c0
push 0x10050eb0
push eax
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x30], 1
call fcn.1000d420
add esp, 0xc
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or ebp, 0xffffffff
mov byte [esp + 0x24], 3
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10013f41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x10]
mov eax, dword [edi - 0xc]
push eax
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
call fcn.1000c890
mov eax, dword [eax]
push edi
push eax
call fcn.100380d7
mov ebx, eax
mov eax, dword [esp + 0x20]
add esp, 8
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10013f8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x10014065
mov eax, dword [edi - 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
call fcn.1000d3d0
push eax
mov ecx, esi
mov byte [esp + 0x28], 4
call fcn.10008ec0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x24], 3
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10013fd3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x10014032
push 0x1005120c
push eax
call fcn.10038222
add esp, 8
test eax, eax
je 0x10014032
sub eax, dword [esi]
cmp eax, ebp
je 0x10014032
push eax
push 0
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.1000c890
push eax
mov ecx, esi
mov byte [esp + 0x28], 5
call fcn.10008ec0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x24], 3
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10014032
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
call fcn.10013db0
lea eax, [edi - 0x10]
add esp, 4
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10014059
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
jmp 0x100141ee
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push 0x1005120c
push ecx
call fcn.1000d4e0
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 6
call fcn.10008ec0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x24], 3
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100140ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x10]
test edi, edi
mov ebx, dword [esp + 0x2c]
je 0x100140d4
mov eax, dword [ebx - 0xc]
test eax, eax
jl 0x100140d4
push edi
push ebx
call fcn.10038222
add esp, 8
test eax, eax
je 0x100140d4
sub eax, ebx
cmp eax, ebp
jne 0x10014122
lea eax, [edi - 0x10]
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100140f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov dword [esp + 0x24], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x1001410d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [edi - 0xc]
add ecx, eax
push ecx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
call fcn.1000d3d0
push eax
mov ecx, esi
mov byte [esp + 0x28], 7
call fcn.10008ec0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x24], 3
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10014165
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x100141c4
push 0x1005120c
push eax
call fcn.10038222
add esp, 8
test eax, eax
je 0x100141c4
sub eax, dword [esi]
cmp eax, ebp
je 0x100141c4
push eax
push 0
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.1000c890
push eax
mov ecx, esi
mov byte [esp + 0x28], 8
call fcn.10008ec0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x24], 3
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100141c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
call fcn.10013db0
lea eax, [edi - 0x10]
add esp, 4
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100141eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov dword [esp + 0x24], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x10014206
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret