Function at 0x4b1810
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5216d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
lea ebx, [edi + 0xc]
mov dword [esp + 0x24], ebx
test ebx, ebx
je 0x4b1865
mov eax, dword [ebx]
test eax, eax
je 0x4b1865
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x38], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov byte [esp + 0x38], 1
mov esi, dword [edi]
mov eax, dword [edi + 4]
cmp esi, eax
je 0x4b18ca
mov edi, dword [ebp + 8]
mov eax, dword [esp + 0x14]
jmp 0x4b18b0
cmp edi, dword [esi]
jne 0x4b18c2
push esi
lea ecx, [esp + 0x1c]
call fcn.004b2860
mov eax, dword [esp + 0x14]
add esi, 0x18
cmp esi, dword [eax + 4]
jne 0x4b18b0
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x4b18e3
mov eax, dword [ebx]
test eax, eax
je 0x4b18dd
push eax
call esi
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x18]
mov edi, eax
cmp eax, dword [esp + 0x1c]
je 0x4b19be
mov ebx, dword [esp + 0x14]
lea esi, [ebx + 0xc]
mov dword [esp + 0x14], esi
test esi, esi
je 0x4b190f
mov eax, dword [esi]
test eax, eax
je 0x4b190f
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x38], 2
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
cmp eax, ecx
je 0x4b1985
lea ecx, [ecx]
mov edx, dword [eax]
mov dword [esp + 0x10], edx
test edx, edx
je 0x4b192e
cmp edx, dword [edi]
je 0x4b1937
add eax, 0x18
cmp eax, ecx
jne 0x4b1920
jmp 0x4b1985
push eax
call fcn.004b1c20
test al, al
je 0x4b1965
test esi, esi
je 0x4b1958
mov eax, dword [esi]
test eax, eax
je 0x4b1952
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
mov dword [esp + 0x14], esi
push dword [esp + 0x10]
mov ecx, ebx
call fcn.004b20a0
jmp 0x4b1985
test esi, esi
je 0x4b197c
mov eax, dword [esi]
test eax, eax
je 0x4b1976
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x10]
call fcn.004ad970
mov byte [esp + 0x38], 1
test esi, esi
je 0x4b19a3
mov eax, dword [esi]
test eax, eax
je 0x4b199b
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x14], 0
add edi, 0x18
cmp edi, dword [esp + 0x1c]
jne 0x4b18f7
mov ebx, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x38], 0
test eax, eax
je 0x4b19e9
push eax
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x38], 0xffffffff
test ebx, ebx
je 0x4b1a06
mov eax, dword [ebx]
test eax, eax
je 0x4b19fe
push eax
call esi
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00505b1e
mov esp, ebp
pop ebp
ret 4