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

Disassembly:
push 0xffffffffffffffff
push 0x42bdc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x484
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x28], ecx
mov eax, dword [ecx + 8]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x49c], ebx
je 0x407dfa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x12
push ebx
lea eax, [esp + 0x20]
push ebx
push eax
mov dword [esp + 0x28], 0xa5dcbf10
mov word [esp + 0x2c], 0x6530
mov word [esp + 0x2e], 0x11d2
mov byte [esp + 0x30], 0x90
mov byte [esp + 0x31], 0x1f
mov byte [esp + 0x32], bl
mov byte [esp + 0x33], 0xc0
mov byte [esp + 0x34], 0x4f
mov byte [esp + 0x35], 0xb9
mov byte [esp + 0x36], 0x51
mov byte [esp + 0x37], 0xed
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x407ff3
xor esi, esi
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
mov eax, 0x1c
mov dword [esp + 0x10], esi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x40], eax
mov edi, dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push ebx
push ebp
call edi
cmp eax, ebx
je 0x407ff3
lea eax, [esp + 0x40]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
push ebx
push ebp
call edi
lea edx, [esp + 0x14]
push ebx
push edx
push ebx
lea eax, [esp + 0x4c]
push ebx
push eax
push ebp
mov dword [esp + 0x2c], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
mov edx, dword [esp + 0x14]
cmp edx, ebx
je 0x407f97
cmp edx, 0x400
ja 0x407f97
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x78]
mov dword [esp + 0x94], 5
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x78]
lea eax, [esp + 0x14]
push ecx
push eax
push edx
lea ecx, [esp + 0xa0]
lea edx, [esp + 0x4c]
push ecx
push edx
push ebp
mov dword [esp + 0x90], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
test eax, eax
je 0x407f97
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa8]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x30], ecx
mov cl, byte [esp + 0xb0]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edx
mov byte [esp + 0x3c], cl
xor eax, eax
inc eax
lea edx, [eax + 8]
cmp edx, 0x19
jl 0x407f50
mov byte [esp + 0x3d], bl
mov esi, str.vid_067bpid_2305
lea eax, [esp + 0x2c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x407f8a
cmp cl, bl
je 0x407f86
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x407f8a
add eax, 2
add esi, 2
cmp cl, bl
jne 0x407f66
xor eax, eax
jmp 0x407f8f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x407fa1
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
jmp 0x407e71
push ebx
push ebx
push 3
push ebx
push 3
lea eax, [esp + 0xac]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [esp + 0x28]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x407fd8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
mov dword [esi + 8], ebx
mov dword [esi + 4], ecx
lea ecx, [esp + 0x4a4]
mov dword [esp + 0x49c], 0xffffffff
call fcn.00423b42
mov al, 1
jmp 0x40800c
lea ecx, [esp + 0x4a4]
mov dword [esp + 0x49c], 0xffffffff
call fcn.00423b42
xor al, al
mov ecx, dword [esp + 0x494]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x490
ret 4