Function at 0x409240
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xaa0
mov eax, dword [0x410020]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0xa98], ecx
mov word [ebp - 0x888], 0
push 0x206
push 0
lea eax, [ebp - 0x886]
push eax
call fcn.004010a0
add esp, 0xc
mov dword [ebp - 0xa94], 1
mov word [ebp - 0xa90], 0
push 0x206
push 0
lea ecx, [ebp - 0xa8e]
push ecx
call fcn.004010a0
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x4092ad
cmp dword [ebp + 0xc], 0
jne 0x4092bf
push 4
mov ecx, dword [ebp - 0xa98]
call fcn.00408190
jmp 0x409678
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xa98]
call fcn.00408d00
test eax, eax
jne 0x4092e2
xor eax, eax
jmp 0x409678
push 0x104
lea ecx, [ebp - 0x888]
push ecx
mov edx, dword [ebp - 0xa98]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jne 0x409312
push 0x102
mov ecx, dword [ebp - 0xa98]
call fcn.00408190
jmp 0x409678
push 0x40ecc0
lea ecx, [ebp - 0x888]
push ecx
call fcn.0040111a
add esp, 8
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x888]
push eax
call fcn.0040111a
add esp, 8
lea ecx, [ebp - 0x258]
push ecx
lea edx, [ebp - 0x888]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x67c], eax
cmp dword [ebp - 0x67c], 0xffffffff
je 0x409446
mov eax, dword [ebp - 0x67c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 2
lea edx, [ebp - 0x888]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupGetInfInformationW]
test eax, eax
je 0x409446
mov eax, dword [ebp - 4]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x25c], eax
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x25c]
push edx
push 2
lea eax, [ebp - 0x888]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetInfInformationW]
test eax, eax
je 0x409439
push 0
push 0x104
lea ecx, [ebp - 0xa90]
push ecx
push 0x40eccc
push 0
mov edx, dword [ebp - 0x25c]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupQueryInfVersionInformationW]
test eax, eax
je 0x409439
lea eax, [ebp - 0xa90]
push eax
call fcn.00401160
add esp, 4
cmp eax, 0xf
jb 0x409401
mov word [ebp - 0xa72], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
shl edx, 5
mov eax, dword [ebp + 0xc]
lea ecx, [eax + edx + 4]
mov dword [ebp - 0xa9c], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
add eax, 1
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
lea edx, [ebp - 0xa90]
push edx
mov eax, dword [ebp - 0xa9c]
push eax
call fcn.00401144
add esp, 8
mov ecx, dword [ebp - 0x25c]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x104
lea edx, [ebp - 0x888]
push edx
mov eax, dword [ebp - 0xa98]
mov ecx, dword [eax + 0x10]
call ecx
test eax, eax
jne 0x409476
push 0x102
mov ecx, dword [ebp - 0xa98]
call fcn.00408190
jmp 0x409678
push str.infoem.inf
lea edx, [ebp - 0x888]
push edx
call fcn.0040111a
add esp, 8
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x888]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x67c], eax
jmp 0x4094c0
lea edx, [ebp - 0x258]
push edx
mov eax, dword [ebp - 0x67c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0xa94], eax
cmp dword [ebp - 0x67c], 0xffffffff
je 0x409660
cmp dword [ebp - 0xa94], 0
je 0x409660
push 0x104
lea ecx, [ebp - 0x888]
push ecx
mov edx, dword [ebp - 0xa98]
mov eax, dword [edx + 0x10]
call eax
push str.inf_
lea ecx, [ebp - 0x888]
push ecx
call fcn.0040111a
add esp, 8
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x888]
push eax
call fcn.0040111a
add esp, 8
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 2
lea edx, [ebp - 0x888]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupGetInfInformationW]
test eax, eax
jne 0x40953b
jmp 0x4094a6
mov eax, dword [ebp - 4]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x25c], eax
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x25c]
push edx
push 2
lea eax, [ebp - 0x888]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetInfInformationW]
test eax, eax
jne 0x40957f
mov ecx, dword [ebp - 0x25c]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4094a6
mov dword [ebp - 0x678], 0x414
lea edx, [ebp - 0x678]
push edx
push 0
push 0
mov eax, dword [ebp - 0x25c]
push eax
mov ecx, dword [ebp - 0xa98]
mov edx, dword [ecx + 0x14]
call edx
test eax, eax
jne 0x4095bc
mov eax, dword [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4094a6
lea ecx, [ebp - 0x674]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401a42
add esp, 8
test eax, eax
jne 0x40964e
push 0
push 0x104
lea eax, [ebp - 0xa90]
push eax
push str.DriverVer
push 0
mov ecx, dword [ebp - 0x25c]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupQueryInfVersionInformationW]
test eax, eax
je 0x40964e
lea edx, [ebp - 0xa90]
push edx
call fcn.00401160
add esp, 4
cmp eax, 0xf
jb 0x409616
mov word [ebp - 0xa72], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
shl ecx, 5
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx + 4]
mov dword [ebp - 0xaa0], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
add edx, 1
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
lea ecx, [ebp - 0xa90]
push ecx
mov edx, dword [ebp - 0xaa0]
push edx
call fcn.00401144
add esp, 8
mov eax, dword [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4094a6
cmp dword [ebp - 0x67c], 0xffffffff
je 0x409676
mov ecx, dword [ebp - 0x67c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004014e5
mov esp, ebp
pop ebp
ret 8