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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d5360
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x51856c]
mov edx, dword [eax + 0xc]
mov ecx, 0x51856c
xor esi, esi
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x48], esi
mov eax, dword [0x51856c]
mov edx, dword [eax + 0xc]
mov ecx, 0x51856c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea ebx, [edi + 0x24]
lea eax, [ebx + 4]
push eax
mov dword [esp + 0x38], vtable.DCriticalSectionContext.0
mov dword [esp + 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [ebx + 0x1c]
lea eax, [ebp + 8]
push eax
lea ecx, [esp + 0x30]
add edi, 4
push ecx
mov byte [esp + 0x50], 2
mov dword [esp + 0x30], edi
call fcn.004834f0
mov edx, dword [edi + 0x18]
mov eax, dword [edi]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x24], edx
test edi, edi
je 0x48318b
cmp edi, eax
je 0x483190
call fcn.004a717b
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x24]
je 0x483257
test edi, edi
jne 0x483317
call fcn.004a717b
mov ecx, dword [esp + 0x30]
cmp ecx, dword [edi + 0x18]
jne 0x4831b9
call fcn.004a717b
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 8]
lea esi, [esp + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ecx
call fcn.00482c80
lea edi, [esp + 0x18]
mov byte [esp + 0x48], 3
call fcn.004082a0
mov byte [esp + 0x48], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x483207
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
lea esi, [esp + 0x20]
call fcn.0048c790
lea edi, [esp + 0x14]
mov byte [esp + 0x48], 4
call fcn.004082a0
mov byte [esp + 0x48], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x483247
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x28]
lea eax, [ebp + 8]
call fcn.00483450
mov esi, dword [esp + 0x2c]
mov byte [esp + 0x48], 1
cmp dword [ebx + 0x1c], 1
jl 0x48326f
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec dword [ebx + 0x1c]
test esi, esi
je 0x4832b5
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov edi, esp
call fcn.00408230
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x4c], 5
mov eax, dword [esp + 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov edi, esp
call fcn.00408230
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
mov byte [esp + 0x50], 1
call edx
mov byte [esp + 0x48], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4832da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x483302
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [edi]
jmp 0x4831ab