Function at 0x4131f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4781eb
mov eax, dword fs:[0]
push eax
sub esp, 0xa4c
mov eax, dword [0x4a5eb0]
xor eax, esp
mov dword [esp + 0xa48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a5eb0]
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 [0x4a643c]
mov edx, dword [eax + 0xc]
mov esi, 1
mov ecx, 0x4a643c
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 [0x4a643c]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x4a643c
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 0x41333e
sub eax, dword [esp + 0xa74]
sar eax, 1
cmp eax, 0xffffffff
jle 0x41333e
push eax
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0xa7c]
call fcn.00407d30
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xa6c], 3
call fcn.00404450
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 0x413316
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x481934
push 0x481930
lea ecx, [esp + 0x1c]
call fcn.00407fd0
push 0x480de0
push 0x481924
lea ecx, [esp + 0x1c]
call fcn.00407fd0
jmp 0x41334f
lea ecx, [esp + 0xa74]
push ecx
lea ecx, [esp + 0x18]
call fcn.00404450
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 0x41343f
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 0x41343f
xor esi, esi
cmp dword [esp + 0x1c], ebp
jbe 0x413438
lea eax, [esp + 0x34]
sub eax, 2
mov dword [esp + 0x18], 2
mov dword [esp + 0x2c], eax
jmp 0x4133b4
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
cmp word [eax + ecx], 0
jne 0x413428
push 0x4a643c
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 0x413404
push eax
push edi
mov ecx, ebx
call fcn.004044d0
push 1
push 0x482f94
mov ecx, ebx
call fcn.004044d0
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 0x413428
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 0x4133b0
mov ecx, ebx
call fcn.00408200
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 0x41347c
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 0x4134a7
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.00475d76
add esp, 0xa58
ret 8