Function at 0x10005b10
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x474
mov eax, dword [0x1002da4c]
xor eax, esp
mov dword [esp + 0x470], eax
mov eax, dword [esp + 0x47c]
push esi
mov esi, dword [esp + 0x47c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], 0
call fcn.10009412
test eax, eax
jne 0x10005b56
push 0x80004005
call fcn.10001090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
push 0x1ff
lea ecx, [esp + 0x279]
add eax, 0x10
push 0
push ecx
mov dword [esp + 0x10], eax
mov byte [esp + 0x280], 0
call fcn.10011e60
add esp, 0xc
call fcn.10009412
test eax, eax
jne 0x10005b98
push 0x80004005
call fcn.10001090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
push ebx
call eax
push 0x140
mov ebx, eax
lea ecx, [esp + 0x38]
push 0
add ebx, 0x10
push ecx
mov dword [esp + 0x1c], ebx
call fcn.10011e60
add esp, 0xc
test esi, esi
jne 0x10005bc7
xor eax, eax
jmp 0x10005bdb
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10005bd0
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x10]
call fcn.10005620
push str..inf
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.100056e0
add esp, 0xc
push eax
lea ecx, [esp + 0xc]
call fcn.10005800
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10005c27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 8]
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x10005e29
lea edx, [esp + 0x278]
push ebp
mov ebp, dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
sub edx, esi
push edi
mov dword [esp + 0x20], edx
jmp 0x10005c68
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, esi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x10005c70
lea edi, [esp + 0x280]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10005c86
mov ax, word [0x10024878]
mov word [edi], ax
lea eax, [esp + 0x68]
mov esi, eax
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10005ca0
lea edi, [esp + 0x280]
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10005cb5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, eax
and ecx, 3
push 2
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [esp + 0x28c]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10005dfd
mov edi, dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
lea edx, [esp + 0x2c]
push edx
push 0
push str.Manufacturer
push esi
call edi
test eax, eax
je 0x10005df6
push 0
push 0x104
lea eax, [esp + 0x184]
push eax
push 1
lea ecx, [esp + 0x3c]
push ecx
call ebp
test eax, eax
je 0x10005df6
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x180]
push eax
push esi
call sym.RtlExUpd.dll_InfGetMfgIDString
add esp, 0xc
test eax, eax
jne 0x10005d4f
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x10005e04
lea ecx, [esp + 0x2c]
push ecx
push 0
lea edx, [esp + 0x184]
push edx
push esi
call edi
test eax, eax
je 0x10005df6
lea esp, [esp]
push 0
push 0x104
lea eax, [esp + 0x184]
push eax
push 2
lea ecx, [esp + 0x3c]
push ecx
call ebp
test eax, eax
je 0x10005dda
lea eax, [esp + 0x17c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10005d96
sub eax, edx
push eax
lea edx, [esp + 0x180]
push edx
lea ecx, [esp + 0x20]
call fcn.10005620
mov eax, dword [esp + 0x28]
test eax, eax
mov ebx, dword [esp + 0x18]
je 0x10005dda
cmp dword [ebx - 0xc], 0
jl 0x10005dda
push eax
push ebx
call fcn.100114c7
add esp, 8
test eax, eax
je 0x10005dda
sub eax, ebx
cmp eax, 0xffffffff
jne 0x10005dee
lea eax, [esp + 0x2c]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x10005d70
jmp 0x10005df6
mov dword [esp + 0x1c], 1
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
cmp dword [esp + 0x1c], 0
jne 0x10005e1c
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10005c60
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop ebp
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop ebx
jg 0x10005e46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10005e66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x474]
mov eax, dword [esp + 0x10]
pop esi
xor ecx, esp
call fcn.100116bf
add esp, 0x474
ret