Function at 0x10008210
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x6a8
mov eax, dword [0x10033a60]
xor eax, esp
mov dword [esp + 0x6a4], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x6bc]
xor ebp, ebp
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], ebp
call fcn.1000c699
cmp eax, ebp
jne 0x1000824c
push 0x80004005
call fcn.10001090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
call fcn.1000c699
cmp eax, ebp
jne 0x1000826f
push 0x80004005
call fcn.10001090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ebx, eax
add ebx, 0x10
mov dword [esp + 0x10], ebx
call fcn.1000c699
cmp eax, ebp
jne 0x10008294
push 0x80004005
call fcn.10001090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
push ecx
mov esi, eax
mov ecx, esp
mov dword [esp + 0x2c], esp
add esi, 0x10
push edi
mov dword [esp + 0x1c], esi
call fcn.100077e0
call fcn.10005fe0
add esp, 4
test eax, eax
jne 0x1000831e
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100082db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100082f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10008317
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x1000874d
push 6
push 0
push 0
push 0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10008357
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000834e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
jmp 0x100082de
push 0x140
lea ecx, [esp + 0x64]
push 0
push ecx
call fcn.10015290
push edi
lea edx, [esp + 0x3b8]
push 0x208
push edx
call fcn.100156f9
push str..inf
lea eax, [esp + 0x3c4]
push 0x208
push eax
call fcn.1001575e
add esp, 0x24
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x3ac]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
je 0x100086e6
jmp 0x100083c4
mov edi, dword [esp + 0x30]
push edi
lea eax, [esp + 0x3ac]
push 0x208
push eax
call fcn.100156f9
push 0x1002a944
lea ecx, [esp + 0x3b8]
push 0x208
push ecx
call fcn.1001575e
lea edx, [esp + 0xa4]
push edx
lea eax, [esp + 0x3c4]
push 0x208
push eax
call fcn.1001575e
add esp, 0x24
push 0
push 2
push 0
lea ecx, [esp + 0x3b4]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x28], edi
je 0x100086b4
mov esi, dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
lea edx, [esp + 0x34]
push edx
push 0
push str.Manufacturer
push edi
call esi
test eax, eax
je 0x100086b4
push 0
push 0x104
lea eax, [esp + 0x2ac]
push eax
push 1
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
test eax, eax
je 0x100086b4
lea edx, [esp + 0x34]
push edx
push 0
lea eax, [esp + 0x2ac]
push eax
push edi
call fcn.10003a60
add esp, 0x10
test eax, eax
jne 0x10008497
push edi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x100086bf
lea ecx, [esp + 0x34]
push ecx
push 0
lea edx, [esp + 0x2ac]
push edx
push edi
call esi
test eax, eax
je 0x100086b4
push 0
push 0x104
lea eax, [esp + 0x2ac]
push eax
push 2
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
test eax, eax
je 0x10008696
lea edx, [esp + 0x2a4]
push edx
lea ecx, [esp + 0x14]
call fcn.10006cb0
lea ecx, [esp + 0x10]
call fcn.10006690
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
call fcn.10006840
push 0x2a
lea ecx, [esp + 0x18]
call fcn.100065d0
lea ecx, [esp + 0x44]
push ecx
push 0
push ebx
mov dword [esp + 0x50], 0x1c
mov dword [esp + 0x38], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x10008696
mov edi, edi
xor ebp, ebp
push ebp
push 0x104
lea edx, [esp + 0x5b8]
push edx
lea eax, [esp + 0x50]
push eax
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdA]
lea ecx, [esp + 0x5b0]
push str.HDAUDIO
push ecx
call fcn.10014ea7
add esp, 8
test eax, eax
jne 0x10008582
lea edx, [esp + 0x5b0]
push str.INTELAUDIO
push edx
call fcn.10014ea7
add esp, 8
test eax, eax
je 0x10008655
mov esi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push 1
lea ecx, [esp + 0x58]
push ecx
push ebx
call esi
mov edx, dword [esp + 0x1c]
push edx
call fcn.10014f4e
mov edi, eax
add esp, 4
test edi, edi
je 0x10008655
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x1c]
push eax
push ecx
push edi
push 0
push 1
lea edx, [esp + 0x58]
push edx
push ebx
call esi
cmp byte [edi], 0
mov esi, edi
je 0x10008648
push esi
lea eax, [esp + 0x1a4]
push 0x104
push eax
call fcn.100156f9
lea ecx, [esp + 0x1ac]
push 0x104
push ecx
call fcn.10015999
mov edx, dword [esp + 0x24]
push edx
lea eax, [esp + 0x1b8]
push eax
call fcn.10014ea7
add esp, 0x1c
test eax, eax
jne 0x10008629
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x1a4]
push edx
call fcn.10014ea7
add esp, 8
test eax, eax
je 0x1000862e
mov ebp, 1
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10008633
sub eax, edx
cmp byte [esi + eax + 1], cl
lea esi, [esi + eax + 1]
jne 0x100085d2
push edi
call fcn.100096c6
add esp, 4
test ebp, ebp
jne 0x10008677
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x44]
add eax, 1
push ecx
push eax
push ebx
mov dword [esp + 0x38], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x10008530
jmp 0x10008696
push 0x40
push str.HWID
lea edx, [esp + 0x1a8]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [esp + 0x24], 1
test ebp, ebp
jne 0x100086b0
lea eax, [esp + 0x34]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x100084b1
mov edi, dword [esp + 0x28]
push edi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
test ebp, ebp
jne 0x100086d7
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x60]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100083c0
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x14]
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10008709
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10008729
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10008749
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x6b4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001530a
add esp, 0x6a8
ret