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

Disassembly:
push 0xffffffffffffffff
push 0x6014be98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esi + 0x50]
push edi
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x2c], 1
mov eax, dword [0x6015b6f8]
xor ebx, ebx
mov ecx, 0x6015b6f8
mov dword [esp + 0x38], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x38]
push ecx
lea edx, [esp + 0x18]
push 0x60150680
push edx
mov byte [esp + 0x44], 1
call fcn.6010a8e0
add esp, 0xc
mov dword [esp + 0x10], ebx
mov ecx, dword [esi + 0x30]
mov ebp, dword [esp + 0x14]
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
push 1
push ebp
mov byte [esp + 0x44], 2
call dword [eax + 8]
mov edi, eax
cmp edi, ebx
jge 0x6014530f
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0x38], 1
je 0x601452cf
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x20]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x601452cf
mov dword [esp + 0x10], ebx
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea eax, [ebp - 0x10]
mov byte [esp + 0x38], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x601452ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
mov ecx, dword [esi + 0x30]
mov edx, dword [ecx]
push ebp
lea eax, [esp + 0x24]
push eax
call dword [edx + 0x24]
mov ecx, dword [esi + 0x38]
push ecx
mov ecx, esi
mov byte [esp + 0x3c], 3
call fcn.60144ef0
mov edx, dword [esp + 0x20]
add eax, 0x18
lea ecx, [esp + 0x24]
push ecx
lea ecx, [eax + 4]
mov dword [eax], edx
call fcn.60143520
mov edx, dword [esi + 0x38]
push edx
mov ecx, esi
call fcn.60144ef0
mov ebp, dword [esp + 0x40]
mov edi, eax
mov eax, dword [ebp]
mov dword [edi], eax
mov ecx, dword [ebp + 4]
mov dword [edi + 4], ecx
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
lea ecx, [edi + 0xc]
push eax
mov dword [edi + 8], edx
call fcn.6010a570
lea edx, [ebp + 0x10]
lea ecx, [edi + 0x10]
push edx
call fcn.6010a570
add ebp, 0x14
lea ecx, [edi + 0x14]
push ebp
call fcn.6010a570
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov edi, 0x6014e924
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
je 0x601453a4
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov edx, dword [esi + 0x38]
push edx
mov ecx, esi
mov byte [esp + 0x3c], 4
call fcn.60144ef0
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.60137f00
mov ecx, dword [esi + 0x38]
mov edx, dword [esp + 0x4c]
mov dword [edx], ecx
mov edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x30]
add esp, 8
inc edx
mov dword [esi + 0x38], edx
mov eax, dword [ecx]
call dword [eax + 0x20]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov byte [esp + 0x38], 3
mov dword [esp + 0x18], edi
je 0x60145404
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x20]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x60145404
mov dword [esp + 0x1c], ebx
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov esi, dword [esp + 0x24]
cmp esi, ebx
mov byte [esp + 0x38], 2
je 0x60145437
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x60145437
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x60145437
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0x38], 1
je 0x6014545d
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x20]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x6014545d
mov dword [esp + 0x10], ebx
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x38], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6014547f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 8