Function at 0x10007340
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x474
mov eax, dword [0x10033a60]
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.1000c699
test eax, eax
jne 0x10007386
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.10015290
add esp, 0xc
call fcn.1000c699
test eax, eax
jne 0x100073c8
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.10015290
add esp, 0xc
test esi, esi
jne 0x100073f7
xor eax, eax
jmp 0x1000740b
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10007400
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x10]
call fcn.100062b0
push str..inf
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.10006720
add esp, 0xc
push eax
lea ecx, [esp + 0xc]
call fcn.10006840
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 0x10007457
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 0x10007659
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 0x10007498
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 0x100074a0
lea edi, [esp + 0x280]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x100074b6
mov ax, word [0x1002a944]
mov word [edi], ax
lea eax, [esp + 0x68]
mov esi, eax
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100074d0
lea edi, [esp + 0x280]
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x100074e5
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 0x1000762d
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 0x10007626
push 0
push 0x104
lea eax, [esp + 0x184]
push eax
push 1
lea ecx, [esp + 0x3c]
push ecx
call ebp
test eax, eax
je 0x10007626
lea edx, [esp + 0x2c]
push edx
push 0
lea eax, [esp + 0x184]
push eax
push esi
call fcn.10003a60
add esp, 0x10
test eax, eax
jne 0x10007581
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x10007634
lea ecx, [esp + 0x2c]
push ecx
push 0
lea edx, [esp + 0x184]
push edx
push esi
call edi
test eax, eax
je 0x10007626
jmp 0x100075a0
push 0
push 0x104
lea eax, [esp + 0x184]
push eax
push 2
lea ecx, [esp + 0x3c]
push ecx
call ebp
test eax, eax
je 0x1000760a
lea eax, [esp + 0x17c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100075c6
sub eax, edx
push eax
lea edx, [esp + 0x180]
push edx
lea ecx, [esp + 0x20]
call fcn.100062b0
mov eax, dword [esp + 0x28]
test eax, eax
mov ebx, dword [esp + 0x18]
je 0x1000760a
cmp dword [ebx - 0xc], 0
jl 0x1000760a
push eax
push ebx
call fcn.10014ea7
add esp, 8
test eax, eax
je 0x1000760a
sub eax, ebx
cmp eax, 0xffffffff
jne 0x1000761e
lea eax, [esp + 0x2c]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x100075a0
jmp 0x10007626
mov dword [esp + 0x1c], 1
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
cmp dword [esp + 0x1c], 0
jne 0x1000764c
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10007490
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 0x10007676
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 0x10007696
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.1001530a
add esp, 0x474
ret