Function at 0x10004a00
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x474
mov eax, dword [0x1002ba4c]
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.10008301
test eax, eax
jne 0x10004a46
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.10011160
add esp, 0xc
call fcn.10008301
test eax, eax
jne 0x10004a88
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.10011160
add esp, 0xc
test esi, esi
jne 0x10004ab7
xor eax, eax
jmp 0x10004acb
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10004ac0
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x10]
call fcn.10004510
push str..inf
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.100045d0
add esp, 0xc
push eax
lea ecx, [esp + 0xc]
call fcn.100046f0
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 0x10004b17
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 0x10004d19
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 0x10004b58
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 0x10004b60
lea edi, [esp + 0x280]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10004b76
mov ax, word [0x100237dc]
mov word [edi], ax
lea eax, [esp + 0x68]
mov esi, eax
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10004b90
lea edi, [esp + 0x280]
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10004ba5
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 0x10004ced
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 0x10004ce6
push 0
push 0x104
lea eax, [esp + 0x184]
push eax
push 1
lea ecx, [esp + 0x3c]
push ecx
call ebp
test eax, eax
je 0x10004ce6
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 0x10004c3f
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x10004cf4
lea ecx, [esp + 0x2c]
push ecx
push 0
lea edx, [esp + 0x184]
push edx
push esi
call edi
test eax, eax
je 0x10004ce6
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 0x10004cca
lea eax, [esp + 0x17c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10004c86
sub eax, edx
push eax
lea edx, [esp + 0x180]
push edx
lea ecx, [esp + 0x20]
call fcn.10004510
mov eax, dword [esp + 0x28]
test eax, eax
mov ebx, dword [esp + 0x18]
je 0x10004cca
cmp dword [ebx - 0xc], 0
jl 0x10004cca
push eax
push ebx
call fcn.100103b7
add esp, 8
test eax, eax
je 0x10004cca
sub eax, ebx
cmp eax, 0xffffffff
jne 0x10004cde
lea eax, [esp + 0x2c]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x10004c60
jmp 0x10004ce6
mov dword [esp + 0x1c], 1
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
cmp dword [esp + 0x1c], 0
jne 0x10004d0c
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10004b50
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 0x10004d36
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 0x10004d56
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.100105af
add esp, 0x474
ret