Function at 0x10008150
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.1000c5d9
cmp eax, ebp
jne 0x1000818c
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.1000c5d9
cmp eax, ebp
jne 0x100081af
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.1000c5d9
cmp eax, ebp
jne 0x100081d4
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.10007760
call fcn.10005f60
add esp, 4
test eax, eax
jne 0x1000825e
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000821b
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 0x10008237
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 0x10008257
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x1000868d
push 6
push 0
push 0
push 0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10008297
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000828e
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 0x1000821e
push 0x140
lea ecx, [esp + 0x64]
push 0
push ecx
call fcn.100151d0
push edi
lea edx, [esp + 0x3b8]
push 0x208
push edx
call fcn.10015639
push str..inf
lea eax, [esp + 0x3c4]
push 0x208
push eax
call fcn.1001569e
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 0x10008626
jmp 0x10008304
mov edi, dword [esp + 0x30]
push edi
lea eax, [esp + 0x3ac]
push 0x208
push eax
call fcn.10015639
push 0x1002a928
lea ecx, [esp + 0x3b8]
push 0x208
push ecx
call fcn.1001569e
lea edx, [esp + 0xa4]
push edx
lea eax, [esp + 0x3c4]
push 0x208
push eax
call fcn.1001569e
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 0x100085f4
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 0x100085f4
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 0x100085f4
lea edx, [esp + 0x34]
push edx
push 0
lea eax, [esp + 0x2ac]
push eax
push edi
call fcn.100039e0
add esp, 0x10
test eax, eax
jne 0x100083d7
push edi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x100085ff
lea ecx, [esp + 0x34]
push ecx
push 0
lea edx, [esp + 0x2ac]
push edx
push edi
call esi
test eax, eax
je 0x100085f4
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 0x100085d6
lea edx, [esp + 0x2a4]
push edx
lea ecx, [esp + 0x14]
call fcn.10006c30
lea ecx, [esp + 0x10]
call fcn.10006610
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
call fcn.100067c0
push 0x2a
lea ecx, [esp + 0x18]
call fcn.10006550
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 0x100085d6
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.10014de7
add esp, 8
test eax, eax
jne 0x100084c2
lea edx, [esp + 0x5b0]
push str.INTELAUDIO
push edx
call fcn.10014de7
add esp, 8
test eax, eax
je 0x10008595
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.10014e8e
mov edi, eax
add esp, 4
test edi, edi
je 0x10008595
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 0x10008588
push esi
lea eax, [esp + 0x1a4]
push 0x104
push eax
call fcn.10015639
lea ecx, [esp + 0x1ac]
push 0x104
push ecx
call fcn.100158d9
mov edx, dword [esp + 0x24]
push edx
lea eax, [esp + 0x1b8]
push eax
call fcn.10014de7
add esp, 0x1c
test eax, eax
jne 0x10008569
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x1a4]
push edx
call fcn.10014de7
add esp, 8
test eax, eax
je 0x1000856e
mov ebp, 1
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10008573
sub eax, edx
cmp byte [esi + eax + 1], cl
lea esi, [esi + eax + 1]
jne 0x10008512
push edi
call fcn.10009606
add esp, 4
test ebp, ebp
jne 0x100085b7
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 0x10008470
jmp 0x100085d6
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 0x100085f0
lea eax, [esp + 0x34]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x100083f1
mov edi, dword [esp + 0x28]
push edi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
test ebp, ebp
jne 0x10008617
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x60]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10008300
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 0x10008649
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 0x10008669
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 0x10008689
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.1001524a
add esp, 0x6a8
ret