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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f3700
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x66d060]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x18], edi
lea eax, [edi + 0xc]
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
call fcn.00482450
mov dword [esp + 0x38], 0
xor ebx, ebx
mov dword [esp + 0x24], 0
mov byte [esp + 0x38], 1
or edx, 0xffffffff
mov edi, dword [edi + 4]
mov esi, dword [edi]
cmp esi, edi
je 0x4885b6
mov edi, edi
mov eax, dword [esi + 8]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4884f2
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
test ebx, ebx
je 0x488530
lea eax, [ebx + 4]
mov ecx, edx
lock xadd dword [eax], ecx
jne 0x488530
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
or ecx, 0xffffffff
lea eax, [ebx + 8]
mov edx, ecx
lock xadd dword [eax], edx
jne 0x48852d
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
or edx, 0xffffffff
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
jne 0x4885a1
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x18]
dec dword [eax + 8]
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x48857f
lea eax, [ebx + 4]
mov ecx, edx
lock xadd dword [eax], ecx
jne 0x48857f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
or ecx, 0xffffffff
lea eax, [ebx + 8]
mov edx, ecx
lock xadd dword [eax], edx
jne 0x48857f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
push esi
call fcn.00496180
mov ebx, dword [esp + 0x14]
add esp, 4
lea ecx, [ebx + 8]
call fcn.0047e230
lea eax, [esp + 0x1c]
push eax
lea ecx, [ebx + 0x2c]
call fcn.00488980
mov esi, dword [esi]
mov edx, 0xffffffff
mov ebx, dword [esp + 0x14]
cmp esi, edi
jne 0x4884d0
or edx, edx
mov byte [esp + 0x38], 0
test ebx, ebx
je 0x4885e5
lea eax, [ebx + 4]
mov ecx, edx
lock xadd dword [eax], ecx
jne 0x4885e5
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
lea eax, [ebx + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
jne 0x4885e5
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
mov dword [esp + 0x38], 0xffffffff
cmp byte [esp + 0x20], 0
je 0x48864c
mov ecx, dword [esp + 0x1c]
mov eax, SysReAllocString
lock xadd dword [ecx], eax
test eax, 0x40000000
jne 0x48864c
cmp eax, 0x80000000
jle 0x48864c
lock bts dword [ecx], 0x1e
jb 0x48864c
mov esi, dword [ecx + 4]
lea edi, [ecx + 4]
test esi, esi
jne 0x488645
push esi
push esi
call fcn.0046a220
mov edx, eax
add esp, 8
mov ecx, edx
xor eax, eax
lock cmpxchg dword [edi], ecx
mov esi, eax
test esi, esi
je 0x488643
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x488645
mov esi, edx
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4