Function at 0x4beff0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x593fc0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4bf231
mov ecx, dword [eax - 0xc]
cmp ecx, 8
jle 0x4bf231
mov eax, 8
lea ecx, [esp + 0x10]
lea edx, [esp + 0x2c]
call fcn.004098d0
lea eax, [esp + 0x10]
push eax
mov ecx, str.USBVID_
mov byte [esp + 0x28], 1
call fcn.0047c7f0
add esp, 4
test al, al
je 0x4bf0a8
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bf087
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4bf249
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x4bf0b8
or eax, 0xffffffff
jmp 0x4bf0d5
push str.VID_
push ecx
call fcn.004f7373
add esp, 8
test eax, eax
jne 0x4bf0cf
or eax, 0xffffffff
jmp 0x4bf0d5
sub eax, dword [esp + 0x2c]
sar eax, 1
lea edx, [esp + 0x2c]
lea ecx, [eax + 4]
push edx
mov eax, 4
lea edx, [esp + 0x18]
call fcn.0040d440
mov byte [esp + 0x24], 2
mov eax, dword [esp + 0x2c]
cmp dword [eax - 0xc], 0
jl 0x4bf119
push str.PID_
push eax
call fcn.004f7373
add esp, 8
test eax, eax
je 0x4bf119
mov ecx, dword [esp + 0x2c]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x4bf148
lea ecx, [esp + 0x14]
call fcn.00406760
lea ecx, [esp + 0x10]
call fcn.00406760
lea ecx, [esp + 0x2c]
call fcn.00406760
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret
push 0x5c
push ecx
lea edi, [eax + 4]
call fcn.004f7f30
add esp, 8
test eax, eax
je 0x4bf119
sub eax, dword [esp + 0x2c]
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x4bf119
lea ecx, [esp + 0x2c]
push ecx
sub eax, edi
mov ecx, edi
lea edx, [esp + 0x10]
call fcn.0040d440
mov byte [esp + 0x24], 3
mov edx, dword [esp + 0xc]
cmp dword [edx - 0xc], 4
jle 0x4bf1b6
mov eax, 4
lea ecx, [esp + 0x18]
lea edx, [esp + 0xc]
call fcn.004098d0
lea edi, [esp + 0xc]
mov byte [esp + 0x24], 4
call fcn.00406fe0
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 3
call fcn.00406760
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
push eax
push ecx
push str.VID__sPID__s
call fcn.00407710
lea ecx, [esi + 1]
add esp, 0xc
lea esi, [esp + 0x18]
lea edx, [esp + 0x2c]
call fcn.0040cf10
mov edi, dword [esp + 0x34]
mov byte [esp + 0x24], 5
call fcn.00406fe0
mov ecx, esi
call fcn.00406760
lea ecx, [esp + 0xc]
call fcn.00406760
lea ecx, [esp + 0x14]
call fcn.00406760
lea ecx, [esp + 0x10]
call fcn.00406760
lea ecx, [esp + 0x2c]
call fcn.00406760
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4bf255
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret