Function at 0x4b6320
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bf9bc
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x6510e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
mov eax, dword [ebx + 0x30]
mov edx, dword [eax + 8]
mov dword [ebp - 0x18], edx
mov eax, dword [edx]
cmp dword [eax + 0xc], edi
jne 0x4b6410
push 4
call fcn.00581343
add esp, 4
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x1c], 5
call fcn.0047b250
mov edi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebx + 0x30]
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
mov ecx, dword [eax + 8]
call fcn.0047ba20
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0047b910
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x4b640b
cmp dword [ecx + 4], 0
je 0x4b6400
mov esi, dword [ecx + 4]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x4b63fd
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x4b63fa
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
push 8
push ecx
call fcn.005815c4
add esp, 8
mov dword [ebp - 0x18], edi
xor ecx, ecx
mov eax, dword [ebx + 0x40]
mov dword [ebp - 0x14], eax
mov esi, dword [eax]
cmp esi, eax
je 0x4b6493
mov edi, dword [ebp + 8]
nop
xor ebx, ebx
mov dword [ebp + 8], ebx
cmp dword [esi + 0x3c], ebx
jbe 0x4b648a
nop word [eax + eax]
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x4b6514
mov eax, dword [ecx]
call dword [eax + 0x10]
push ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
call edx
mov byte [ebp - 4], 3
mov eax, 0x92492493
mov ecx, dword [ebp - 0x40]
sub ecx, dword [ebp - 0x44]
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x4b64c9
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.0042b1fb
mov ecx, dword [ebp - 0x10]
inc ebx
mov dword [ebp + 8], ebx
cmp ebx, dword [esi + 0x3c]
jb 0x4b6430
mov eax, dword [ebp - 0x14]
mov esi, dword [esi]
cmp esi, eax
jne 0x4b6420
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x4b65c6
mov eax, dword [edi]
test eax, eax
je 0x4b64a7
push eax
call fcn.0047d9c0
push 4
push edi
call fcn.005815c4
mov eax, dword [ebp - 0x10]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x44]
lea eax, [edi*8]
sub eax, edi
cmp dword [ecx + eax*4 + 0x14], 0x10
lea eax, [ecx + eax*4]
mov ecx, eax
jb 0x4b64e3
mov ecx, dword [eax]
push dword [eax + 0x10]
lea eax, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x18]
push eax
call fcn.0047bb80
lea ecx, [ebp - 0x44]
mov ebx, dword [eax]
mov byte [ebp - 4], 0
call fcn.0042b1fb
mov ecx, dword [ebp - 0x10]
cmp ebx, ecx
cmova ecx, ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
jmp 0x4b647e
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x34]
add eax, ebx
dec ecx
and ecx, eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, 0x92492493
sub ecx, edx
mov dword [ebp - 0x28], edx
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x4b647b
mov ecx, dword [ebp - 0x28]
lea eax, [edi*8]
sub eax, edi
cmp dword [ecx + eax*4 + 0x14], 0x10
lea eax, [ecx + eax*4]
mov ecx, eax
jb 0x4b6566
mov ecx, dword [eax]
push dword [eax + 0x10]
lea eax, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x18]
push eax
call fcn.0047bb80
mov ecx, dword [esi + 0x34]
dec ecx
mov ebx, dword [eax]
mov eax, dword [esi + 0x38]
add eax, dword [ebp + 8]
and ecx, eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 4
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x4b65a3
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x4b65a5
mov al, 1
mov byte [ebp - 4], 0
test al, al
jne 0x4b65b3
mov eax, dword [ebp - 0x28]
add ebx, dword [eax + 0x50]
mov ecx, dword [ebp - 0x10]
cmp ebx, ecx
cmova ecx, ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
jmp 0x4b647e
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4