Function at 0x411240
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x413265
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x41907c]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push esi
push edi
mov eax, dword [0x41907c]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
lea eax, [esp + 0x24]
push eax
push esi
mov dword [esp + 0x30], esi
call fcn.00401bf0
push 0x10
mov ecx, esi
call fcn.00401660
push 0x10
xor ebx, ebx
push ebx
push ebx
push 0x4141dc
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x24]
push ecx
push ebx
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], 0x1c
mov dword [esp + 0x28], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x41157b
jmp 0x411300
mov esi, 7
xor edx, edx
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], ebx
mov word [esp + 0xb0], dx
lea eax, [esp + 0xb0]
push eax
mov edi, 8
push edi
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x20]
mov dword [esp + 0x100], ebx
call fcn.00410440
xor ecx, ecx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], cx
lea edx, [esp + 0x48]
push edx
push 9
lea edx, [esp + 0x34]
lea ecx, [esp + 0x28]
mov byte [esp + 0x108], 1
call fcn.00410440
xor eax, eax
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], ax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0xa8]
push edx
mov byte [esp + 0x110], 2
call fcn.00402670
add esp, 0x18
mov byte [esp + 0xf8], 3
mov eax, dword [esp + 0x94]
mov dword [esp + 0x14], ebx
cmp dword [esp + 0xa8], edi
jae 0x4113bc
lea eax, [esp + 0x94]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [esp + 0x14], ebx
je 0x4113ff
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x18]
push eax
mov ecx, str.DeviceID
call fcn.00410110
mov ecx, dword [esp + 0x1c]
add esp, 8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
xor edx, edx
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], dx
lea eax, [esp + 0x78]
push eax
push 1
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x20]
mov byte [esp + 0x100], 4
call fcn.00410440
add esp, 8
lea esi, [esp + 0xcc]
lea edx, [esp + 0x78]
call fcn.004013f0
cmp dword [eax + 0x14], edi
jb 0x41144a
mov eax, dword [eax]
push eax
push str.usb_
call fcn.00403825
add esp, 8
test eax, eax
sete byte [esp + 0x13]
cmp dword [esp + 0xe0], edi
jb 0x411478
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.00403d7c
add esp, 4
cmp byte [esp + 0x13], bl
je 0x411490
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x5c]
call fcn.00401770
mov edi, 8
cmp dword [esp + 0x8c], edi
jb 0x4114a6
mov edx, dword [esp + 0x78]
push edx
call fcn.00403d7c
add esp, 4
xor eax, eax
mov esi, 7
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], ax
cmp dword [esp + 0xa8], edi
jb 0x4114d9
mov ecx, dword [esp + 0x94]
push ecx
call fcn.00403d7c
add esp, 4
xor edx, edx
mov dword [esp + 0xa8], esi
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], dx
cmp dword [esp + 0x70], edi
jb 0x411504
mov eax, dword [esp + 0x5c]
push eax
call fcn.00403d7c
add esp, 4
xor ecx, ecx
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], cx
cmp dword [esp + 0x54], edi
jb 0x411526
mov edx, dword [esp + 0x40]
push edx
call fcn.00403d7c
add esp, 4
xor eax, eax
mov dword [esp + 0xf8], 0xffffffff
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], ax
cmp dword [esp + 0xc4], edi
jb 0x411559
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.00403d7c
add esp, 4
mov eax, dword [esp + 0x1c]
inc eax
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x411300
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.0040366e
mov esp, ebp
pop ebp
ret