Function at 0x41aac0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x478db4
mov eax, dword fs:[0]
push eax
sub esp, 0x644
mov eax, dword [0x4a5eb0]
xor eax, esp
mov dword [esp + 0x640], eax
push esi
push edi
mov eax, dword [0x4a5eb0]
xor eax, esp
push eax
lea eax, [esp + 0x650]
mov dword fs:[0], eax
mov eax, dword [0x4a643c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a643c
mov dword [esp + 0x658], 0
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
mov eax, 0x208
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x660]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
push eax
mov byte [esp + 0x660], 1
call fcn.004014f0
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x1c]
add esp, 4
push eax
call fcn.00414000
add esp, 8
mov ecx, dword [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x664], 2
call dword [sym.imp.SETUPAPI.dll_CM_Locate_DevNodeW]
test eax, eax
jne 0x41ad17
push eax
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.SETUPAPI.dll_CM_Get_Child]
test eax, eax
jne 0x41ad17
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Registry_PropertyW]
push eax
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x3c]
push eax
push 0
push 8
push ecx
call esi
test eax, eax
jne 0x41ad17
mov ecx, dword [esp + 0x18]
push eax
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44c]
push eax
push 0
push 1
push ecx
call esi
test eax, eax
jne 0x41ad17
mov ecx, dword [esp + 0x20]
push eax
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x244]
push eax
push 0
push 2
push ecx
call esi
test eax, eax
jne 0x41acb3
lea edx, [esp + 0x23c]
push edx
lea ecx, [esp + 0x10]
call fcn.00406300
lea ecx, [esp + 0xc]
mov byte [esp + 0x658], 3
call fcn.00408200
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x41ac32
or eax, 0xffffffff
jmp 0x41ac50
push str.REV_
push eax
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
test eax, eax
jne 0x41ac4a
or eax, 0xffffffff
jmp 0x41ac50
sub eax, dword [esp + 0xc]
sar eax, 1
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push 0x48190c
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040bf80
push 0x480de0
push str.REV_
lea ecx, [esp + 0x18]
mov byte [esp + 0x660], 4
call fcn.00407fd0
mov edx, dword [esp + 0x10]
push edx
call fcn.00450d00
add esp, 4
lea ecx, [esp + 0x10]
movzx esi, ax
call fcn.004023d0
lea ecx, [esp + 0xc]
mov byte [esp + 0x658], 2
call fcn.004023d0
jmp 0x41acb7
mov esi, dword [esp + 0x1c]
push 2
push esi
call fcn.0040fc50
add esp, 8
test eax, eax
jne 0x41ad17
mov esi, dword [sym.imp.MSVCR90.dll__wcsicmp]
lea eax, [esp + 0x34]
push str.CDROM
push eax
call esi
add esp, 8
test eax, eax
je 0x41acf2
lea ecx, [esp + 0x34]
push 0x484454
push ecx
call esi
add esp, 8
test eax, eax
jne 0x41ad17
lea ecx, [esp + 0x14]
call fcn.004023d0
lea ecx, [esp + 0x1c]
call fcn.004023d0
lea ecx, [esp + 0x660]
call fcn.004023d0
mov eax, 1
jmp 0x41ad93
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x658], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41ad3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x658], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ad63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x660]
add eax, 0xfffffff0
mov dword [esp + 0x658], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ad91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x650]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x640]
xor ecx, esp
call fcn.00475d76
add esp, 0x650
ret 4