Function at 0x408fa0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x43aec3
mov eax, dword fs:[0]
push eax
mov eax, 0x1cd8
call fcn.004274f0
mov eax, dword [0x44f6c4]
xor eax, esp
mov dword [esp + 0x1cd4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44f6c4]
xor eax, esp
push eax
lea eax, [esp + 0x1cec]
mov dword fs:[0], eax
mov ebx, ecx
push str.FUNC_01VEN_10EC
lea ecx, [esp + 0x4c]
call fcn.00403350
xor esi, esi
push str.FUNC_01VEN_10EC
lea ecx, [esp + 0x48]
mov dword [esp + 0x1cf8], esi
call fcn.00403350
push 0x3fe
lea eax, [esp + 0x2da]
push esi
push eax
mov byte [esp + 0x1d00], 1
mov word [esp + 0x2e0], si
call fcn.00427e20
push 0x3fe
lea ecx, [esp + 0x16ee]
push esi
push ecx
mov word [esp + 0x16f4], si
call fcn.00427e20
push 0x3fe
lea edx, [esp + 0x10fa]
push esi
push edx
mov word [esp + 0x1100], si
call fcn.00427e20
add esp, 0x24
push 0x43e9a0
lea ecx, [esp + 0x58]
call fcn.00406860
mov byte [esp + 0x1cf4], 2
mov dword [esp + 0x58], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], esi
call fcn.00416e3f
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4090a2
push 0x80004005
call fcn.00401370
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x60], edi
mov byte [esp + 0x1cf4], 3
call fcn.00416e3f
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4090d4
push 0x80004005
call fcn.00401370
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
push 0x43ea84
lea ecx, [esp + 0x24]
mov byte [esp + 0x1cf8], 4
call fcn.00403350
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebx
mov byte [esp + 0x1cf8], 5
call fcn.004064d0
push 0x43ec00
push eax
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x1d00], 6
call fcn.00402ea0
mov eax, dword [eax]
push eax
lea eax, [esp + 0x8ec]
push 0x200
push eax
call fcn.00427cd0
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
add esp, 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40915e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x1cf4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409186
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x250
lea ecx, [esp + 0x88]
push esi
push ecx
call fcn.00427e20
lea edx, [esp + 0x8e8]
push edx
lea eax, [esp + 0x2e4]
push 0x200
push eax
call fcn.00427cd0
mov ecx, dword [0x450b90]
push ecx
lea edx, [esp + 0x2f0]
push 0x200
push edx
call fcn.00427d97
push 0x43f710
lea eax, [esp + 0x2fc]
push 0x200
push eax
call fcn.00427d97
add esp, 0x30
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x2d8]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x409fa8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 6
push esi
push str.HDAUDIO
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
lea ecx, [esp + 0x68]
push ecx
push esi
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x74], 0x1c
mov dword [esp + 0x4c], esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x409bb2
mov ecx, dword [esp + 0x18]
push 0
push 0x100
lea edx, [esp + 0xee4]
push edx
lea eax, [esp + 0x74]
push eax
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
mov eax, dword [0x450b54]
xor edx, edx
cmp eax, 0x5a
setge dl
push 0
sub edx, 1
and edx, 5
add eax, edx
push eax
mov dword [0x450b54], eax
mov eax, dword [ebx + 0x7a80]
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov ecx, ebx
call fcn.00401740
mov ecx, dword [esp + 0x48]
push ecx
lea edx, [esp + 0xee0]
push edx
call fcn.00427681
add esp, 8
test eax, eax
je 0x409b82
lea eax, [esp + 0xedc]
push eax
lea ecx, [esp + 0xce0]
push 0x100
push ecx
call fcn.00427cd0
lea edx, [esp + 0xee8]
push edx
lea eax, [esp + 0x14ec]
push 0x100
push eax
call fcn.00427cd0
add esp, 0x18
mov eax, 1
add dword [esp + 0x4c], eax
xor esi, esi
mov dword [esp + 0x50], eax
mov eax, dword [0x450b54]
xor ecx, ecx
cmp eax, 0x5a
setge cl
push esi
mov word [esp + 0x1554], si
mov dword [esp + 0x18], esi
sub ecx, 1
and ecx, 0xa
add eax, ecx
push eax
mov dword [0x450b54], eax
mov edx, dword [ebx + 0x7a80]
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
mov ecx, ebx
call fcn.00401740
push 0x250
lea eax, [esp + 0x88]
push esi
push eax
mov word [esp + 0xd4a], si
call fcn.00427e20
lea ecx, [esp + 0x8e8]
push ecx
lea edx, [esp + 0x2e4]
push 0x200
push edx
call fcn.00427cd0
mov eax, dword [0x450b90]
push eax
lea ecx, [esp + 0x2f0]
push 0x200
push ecx
call fcn.00427d97
push 0x43f710
lea edx, [esp + 0x2fc]
push 0x200
push edx
call fcn.00427d97
add esp, 0x30
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x2d8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x409567
jmp 0x4093d0
lea edx, [esp + 0x8dc]
push edx
lea eax, [esp + 0x2d8]
push 0x200
push eax
call fcn.00427cd0
lea ecx, [esp + 0xbc]
push ecx
lea edx, [esp + 0x2e4]
push 0x200
push edx
call fcn.00427d97
add esp, 0x18
push 0
push 2
push 0
lea eax, [esp + 0x2e0]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x409549
lea ecx, [esp + 0x28]
push ecx
push 0
push str.Manufacturer
push esi
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x409542
push 0
push 0x104
lea edx, [esp + 0x6dc]
push edx
push 1
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x409542
lea ecx, [esp + 0x28]
push ecx
push 0
lea edx, [esp + 0x6dc]
push edx
push esi
mov ecx, ebx
call fcn.00406920
test eax, eax
jne 0x40948c
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x409550
lea eax, [esp + 0x28]
push eax
push 0
lea ecx, [esp + 0x6dc]
push ecx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x409542
lea ebx, [ebx]
push 0
push 0x104
lea edx, [esp + 0x6dc]
push edx
push 2
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x409509
lea ecx, [esp + 0x6d4]
push ecx
lea ecx, [esp + 0x20]
call fcn.00405950
mov ebp, dword [esp + 0x1c]
cmp dword [ebp - 0xc], 0
jl 0x409509
lea edx, [esp + 0xcdc]
push edx
push ebp
call fcn.00427681
add esp, 8
test eax, eax
je 0x409509
sub eax, ebp
sar eax, 1
cmp eax, 0xffffffff
jne 0x40951d
lea eax, [esp + 0x28]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x4094b0
jmp 0x409542
lea edx, [esp + 0x2d4]
push edx
lea eax, [esp + 0x16e0]
push 0x200
push eax
call fcn.00427cd0
add esp, 0xc
mov dword [esp + 0x14], 1
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
cmp dword [esp + 0x14], 0
jne 0x409567
lea ecx, [esp + 0x84]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4093d0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
jne 0x4099af
push 0x250
lea edx, [esp + 0x88]
push 0
push edx
mov word [esp + 0xd2a], 0
call fcn.00427e20
lea eax, [esp + 0x8e8]
push eax
lea ecx, [esp + 0x2e4]
push 0x200
push ecx
call fcn.00427cd0
mov edx, dword [0x450b90]
push edx
lea eax, [esp + 0x2f0]
push 0x200
push eax
call fcn.00427d97
push 0x43f710
lea ecx, [esp + 0x2fc]
push 0x200
push ecx
call fcn.00427d97
add esp, 0x30
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x2d8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x38], eax
je 0x4097d0
jmp 0x409610
lea ecx, [esp + 0x8dc]
push ecx
lea edx, [esp + 0x2d8]
push 0x200
push edx
call fcn.00427cd0
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x2e4]
push 0x200
push ecx
call fcn.00427d97
add esp, 0x18
push 0
push 2
push 0
lea edx, [esp + 0x2e0]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4097aa
mov edi, dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
lea eax, [esp + 0x28]
push eax
push 0
push str.Manufacturer
push esi
call edi
test eax, eax
je 0x4097a3
push 0
push 0x104
lea ecx, [esp + 0x6dc]
push ecx
push 1
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x4097a3
lea eax, [esp + 0x28]
push eax
push 0
lea ecx, [esp + 0x6dc]
push ecx
push esi
mov ecx, ebx
call fcn.00406920
test eax, eax
jne 0x4096ce
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x4097b1
lea edx, [esp + 0x28]
push edx
push 0
lea eax, [esp + 0x6dc]
push eax
push esi
call edi
test eax, eax
je 0x4097a3
mov edi, dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
mov edi, edi
push 0
push 0x104
lea ecx, [esp + 0x6dc]
push ecx
push 2
lea edx, [esp + 0x38]
push edx
call edi
test eax, eax
je 0x409766
lea eax, [esp + 0x6d4]
push eax
lea ecx, [esp + 0x20]
call fcn.00405950
mov ebp, dword [esp + 0x1c]
cmp dword [ebp - 0xc], 0
jl 0x409766
lea ecx, [esp + 0xcdc]
push ecx
push ebp
call fcn.00427681
add esp, 8
test eax, eax
je 0x409766
sub eax, ebp
sar eax, 1
cmp eax, 0xffffffff
je 0x409766
cmp dword [ebp - 0xc], 0
jl 0x40977e
push str.SUBSYS
push ebp
call fcn.00427681
add esp, 8
test eax, eax
je 0x40977e
sub eax, ebp
sar eax, 1
cmp eax, 0xffffffff
je 0x40977e
lea edx, [esp + 0x28]
push edx
mov eax, edx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x4096f0
jmp 0x4097a3
lea ecx, [esp + 0x2d4]
push ecx
lea edx, [esp + 0x16e0]
push 0x200
push edx
call fcn.00427cd0
add esp, 0xc
mov dword [esp + 0x14], 1
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
cmp dword [esp + 0x14], 0
jne 0x4097cc
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x84]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x409610
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
jne 0x4099af
lea edx, [esp + 0x8dc]
push edx
lea eax, [esp + 0x2d8]
push 0x200
push eax
call fcn.00427cd0
add esp, 0xc
push str..inf
lea ecx, [esp + 0x40]
call fcn.00403350
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x60]
push 0x450b90
push edx
mov byte [esp + 0x1d00], 7
call fcn.00402de0
mov eax, dword [eax]
push eax
lea eax, [esp + 0x2e4]
push 0x200
push eax
call fcn.00427d97
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
add esp, 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409861
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x1cf4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409889
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 2
push 0
lea ecx, [esp + 0x2e0]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x409b73
mov edi, dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
lea edx, [esp + 0x28]
push edx
push 0
push str.Manufacturer
push esi
call edi
test eax, eax
je 0x40999c
push 0
push 0x104
lea eax, [esp + 0x6dc]
push eax
push 1
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x40999c
lea edx, [esp + 0x28]
push edx
push 0
lea eax, [esp + 0x6dc]
push eax
push esi
mov ecx, ebx
call fcn.00406920
test eax, eax
jne 0x409910
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x409b82
lea ecx, [esp + 0x28]
push ecx
push 0
lea edx, [esp + 0x6dc]
push edx
push esi
call edi
test eax, eax
je 0x40999c
mov edi, dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
lea esp, [esp]
push 0
push 0x104
lea eax, [esp + 0x6dc]
push eax
push 2
lea ecx, [esp + 0x38]
push ecx
call edi
test eax, eax
je 0x40998a
lea edx, [esp + 0x6d4]
push edx
lea ecx, [esp + 0x20]
call fcn.00405950
mov eax, dword [esp + 0x44]
test eax, eax
mov ebp, dword [esp + 0x1c]
je 0x40998a
cmp dword [ebp - 0xc], 0
jl 0x40998a
push eax
push ebp
call fcn.00427681
add esp, 8
test eax, eax
je 0x40998a
sub eax, ebp
sar eax, 1
cmp eax, 0xffffffff
jne 0x409a43
lea eax, [esp + 0x28]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x409930
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
test edi, edi
je 0x409b73
mov eax, dword [0x450b54]
xor ecx, ecx
cmp eax, 0x5a
setge cl
push 0
sub ecx, 1
and ecx, 0x14
add eax, ecx
push eax
mov dword [0x450b54], eax
mov edx, dword [ebx + 0x7a80]
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov ecx, ebx
call fcn.00401740
lea eax, [esp + 0x58]
push eax
push 1
lea ecx, [esp + 0x16e4]
push ecx
lea edx, [esp + 0x14e8]
push edx
push 0
call sub.newdev.dll_UpdateDriverForPlugAndPlayDevicesW
test eax, eax
jne 0x409a6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x5b4
jne 0x409a36
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x68]
push eax
push ecx
mov ecx, ebx
call fcn.00404a10
test eax, eax
je 0x409a36
mov dword [esp + 0x24], 1
push esi
mov ecx, ebx
call fcn.00404be0
jmp 0x409b82
lea edx, [esp + 0x2d4]
push edx
lea eax, [esp + 0x16e0]
push 0x200
push eax
call fcn.00427cd0
add esp, 0xc
mov edi, 1
jmp 0x4099a0
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x68]
push edx
push eax
mov ecx, ebx
mov dword [esp + 0x2c], 1
call fcn.00404a10
test eax, eax
jne 0x409b82
cmp dword [ebx + 0x7a5c], eax
je 0x409b67
push 0x43ea84
lea ecx, [esp + 0x24]
call fcn.00402cb0
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x68]
push ecx
push edx
lea eax, [esp + 0x6c]
push eax
mov ecx, ebx
call fcn.00404ab0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1cf8], 8
call fcn.004030b0
lea ecx, [esp + 0x64]
mov byte [esp + 0x1cf4], 5
call fcn.00401090
lea ecx, [esp + 0x20]
push 0x43ea84
push ecx
call fcn.00405a00
add esp, 8
test al, al
je 0x409b67
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.00402990
mov ecx, ebx
call fcn.00406f30
mov edx, dword [esp + 0x18]
mov esi, eax
lea eax, [esp + 0x58]
push eax
push 1
push 0
lea ecx, [esp + 0x74]
push ecx
push edx
call fcn.00401da0
add esp, 0x14
test eax, eax
je 0x409b67
test esi, esi
je 0x409b67
mov eax, dword [ebx + 0x7a2c]
imul eax, eax, 0x260
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
mov dword [eax + ebx + 0x368], 1
call fcn.00402990
mov ecx, ebx
call fcn.00408020
add dword [ebx + 0x7a2c], 0xffffffff
mov dword [ebx + 0x368], 1
jmp 0x409b82
cmp dword [esp + 0x4c], 0
jne 0x409b82
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x68]
add eax, 1
push ecx
push eax
push edx
mov dword [esp + 0x4c], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x409240
xor esi, esi
cmp dword [esp + 0x50], esi
jne 0x409e6f
mov eax, dword [0x450b54]
xor ecx, ecx
cmp eax, 0x5a
setge cl
push esi
sub ecx, 1
and ecx, 0x32
add eax, ecx
push eax
mov dword [0x450b54], eax
mov edx, dword [ebx + 0x7a80]
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
mov ecx, ebx
call fcn.00401740
push 0x250
lea eax, [esp + 0x88]
push esi
push eax
call fcn.00427e20
lea ecx, [esp + 0x8e8]
push ecx
lea edx, [esp + 0x2e4]
push 0x200
push edx
call fcn.00427cd0
mov eax, dword [0x450b90]
push eax
lea ecx, [esp + 0x2f0]
push 0x200
push ecx
call fcn.00427d97
push str.Rt.inf
lea edx, [esp + 0x2fc]
push 0x200
push edx
call fcn.00427d97
add esp, 0x30
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x2d8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x409cae
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
push esi
push 0x104
lea edx, [esp + 0x1ae8]
push edx
push esi
push 1
push esi
lea eax, [esp + 0x2f0]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupCopyOEMInfW]
test eax, eax
jne 0x409ca1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebx
call fcn.00404be0
jmp 0x409e6f
mov dword [esp + 0x24], 1
jmp 0x409e6f
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x250
lea ecx, [esp + 0x88]
push 0
push ecx
call fcn.00427e20
lea edx, [esp + 0x8e8]
push edx
lea eax, [esp + 0x2e4]
push 0x200
push eax
call fcn.00427cd0
mov ecx, dword [0x450b90]
push ecx
lea edx, [esp + 0x2f0]
push 0x200
push edx
call fcn.00427d97
push 0x43f710
lea eax, [esp + 0x2fc]
push 0x200
push eax
call fcn.00427d97
add esp, 0x30
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x2d8]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x409e66
mov edi, dword [sym.imp.SETUPAPI.dll_SetupCopyOEMInfW]
mov edi, edi
mov eax, dword [0x450b90]
push eax
lea ecx, [esp + 0x10e0]
push 0x200
push ecx
call fcn.00427cd0
push str.Rt.inf
lea edx, [esp + 0x10ec]
push 0x200
push edx
call fcn.00427d97
lea eax, [esp + 0x10f4]
push eax
lea ecx, [esp + 0xcc]
push ecx
call fcn.00427681
add esp, 0x20
test eax, eax
jne 0x409e4f
mov edx, dword [0x450b90]
push edx
lea eax, [esp + 0x10e0]
push 0x200
push eax
call fcn.00427cd0
push 0x43f71c
lea ecx, [esp + 0x10ec]
push 0x200
push ecx
call fcn.00427d97
lea edx, [esp + 0x10f4]
push edx
lea eax, [esp + 0xcc]
push eax
call fcn.00427681
add esp, 0x20
test eax, eax
jne 0x409e4f
lea ecx, [esp + 0x8dc]
push ecx
lea edx, [esp + 0x2d8]
push 0x200
push edx
call fcn.00427cd0
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x2e4]
push 0x200
push ecx
call fcn.00427d97
add esp, 0x18
push 0
push 0
push 0x104
lea edx, [esp + 0x1ae8]
push edx
push 0
push 1
push 0
lea eax, [esp + 0x2f0]
push eax
call edi
test eax, eax
jne 0x409e47
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebx
call fcn.00404be0
jmp 0x409e4f
mov dword [esp + 0x24], 1
lea ecx, [esp + 0x84]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x409d40
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [0x450b54]
xor ecx, ecx
cmp eax, 0x5a
setge cl
push esi
sub ecx, 1
and ecx, 0xa
add eax, ecx
push eax
mov dword [0x450b54], eax
mov edx, dword [ebx + 0x7a80]
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
mov ecx, ebx
call fcn.00401740
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x1cf4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409ed8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x1cf4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409efc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
mov byte [esp + 0x1cf4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409f24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov byte [esp + 0x1cf4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409f4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x1cf4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409f74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov dword [esp + 0x1cf4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409f9f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
jmp 0x40a095
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x1cf4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409fd0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x1cf4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409ff4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x1cf4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a018
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov byte [esp + 0x1cf4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a040
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x1cf4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a068
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov dword [esp + 0x1cf4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a093
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1cec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1cd4]
xor ecx, esp
call fcn.004274dc
add esp, 0x1ce4
ret