Function at 0x413850
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47897b
mov eax, dword fs:[0]
push eax
sub esp, 0xa4c
mov eax, dword [0x4a6eb0]
xor eax, esp
mov dword [esp + 0xa48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a6eb0]
xor eax, esp
push eax
lea eax, [esp + 0xa60]
mov dword fs:[0], eax
mov ebx, dword [esp + 0xa70]
xor ebp, ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebp
mov eax, dword [0x4a743c]
mov edx, dword [eax + 0xc]
mov esi, 1
mov ecx, 0x4a743c
mov dword [esp + 0xa68], esi
call edx
add eax, 0x10
mov dword [ebx], eax
push 0xa26
lea ecx, [esp + 0x3a]
xor eax, eax
push ebp
push ecx
mov dword [esp + 0x34], esi
mov word [esp + 0x40], ax
call sub.MSVCR90.dll_memset
mov edx, dword [0x4a743c]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x4a743c
mov dword [esp + 0x1c], 0xa28
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0xa74]
push 0x23
push ecx
mov byte [esp + 0xa70], 2
call dword [sym.imp.MSVCR90.dll_wcsrchr]
add esp, 8
cmp eax, ebp
je 0x41399e
sub eax, dword [esp + 0xa74]
sar eax, 1
cmp eax, 0xffffffff
jle 0x41399e
push eax
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0xa7c]
call fcn.00407d60
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xa6c], 3
call fcn.00404460
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xa68], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413976
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x482aac
push 0x482aa8
lea ecx, [esp + 0x1c]
call fcn.004081f0
push 0x481de0
push 0x482a9c
lea ecx, [esp + 0x1c]
call fcn.004081f0
jmp 0x4139af
lea ecx, [esp + 0xa74]
push ecx
lea ecx, [esp + 0x18]
call fcn.00404460
mov edx, dword [esp + 0x14]
push ebp
push edx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Locate_DevNodeW]
test eax, eax
jne 0x413a9f
mov eax, dword [esp + 0x20]
push ebp
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x3c]
push edx
push ebp
push 3
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Registry_PropertyW]
test eax, eax
jne 0x413a9f
xor esi, esi
cmp dword [esp + 0x1c], ebp
jbe 0x413a98
lea eax, [esp + 0x34]
sub eax, 2
mov dword [esp + 0x18], 2
mov dword [esp + 0x2c], eax
jmp 0x413a14
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
cmp word [eax + ecx], 0
jne 0x413a88
push 0x4a743c
mov edx, esi
sub edx, ebp
push edx
lea eax, [esp + ebp*2 + 0x3c]
push eax
lea ecx, [esp + 0x30]
call fcn.00401e00
mov edi, dword [esp + 0x24]
mov eax, dword [edi - 0xc]
mov byte [esp + 0xa68], 4
lea ebp, [esi + 1]
test eax, eax
je 0x413a64
push eax
push edi
mov ecx, ebx
call fcn.004044e0
push 1
push 0x4841dc
mov ecx, ebx
call fcn.004044e0
lea eax, [edi - 0x10]
mov byte [esp + 0xa68], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413a88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add dword [esp + 0x18], 2
inc esi
cmp esi, dword [esp + 0x1c]
jb 0x413a10
mov ecx, ebx
call fcn.00408420
mov ecx, dword [ebx]
push ecx
push str.CDeviceDetect::GetDeviceCompatibleIDs
push str._s__s
call fcn.00403170
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0xa68], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413adc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xa74]
add eax, 0xfffffff0
mov byte [esp + 0xa68], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413b07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0xa60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa48]
xor ecx, esp
call fcn.004764f6
add esp, 0xa58
ret 8