Function at 0x402a20
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0xa90
mov eax, dword [0x40f020]
xor eax, esp
mov dword [esp + 0xa8c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0xaa0]
push edi
push 0x206
lea eax, [esp + 0x68e]
mov edi, ecx
mov ebx, edx
push 0
push eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], esi
mov word [esp + 0x694], 0
call fcn.00407250
add esp, 0xc
push 0x206
lea ecx, [esp + 0x896]
push 0
push ecx
mov ebp, 1
mov word [esp + 0x89c], 0
call fcn.00407250
add esp, 0xc
test esi, esi
je 0x402e9b
test ebx, ebx
je 0x402e9b
push ebx
mov ecx, edi
mov dword [esi], 0
call fcn.00402f80
test eax, eax
je 0x402ea2
mov eax, dword [edi + 0x10]
push 0x104
lea edx, [esp + 0x68c]
push edx
call eax
test eax, eax
jne 0x402ade
mov dword [edi + 0xc], 0x102
jmp 0x402ea2
lea eax, [esp + 0x688]
add eax, 0xfffffffe
jmp 0x402af0
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x402af0
mov ecx, dword [0x40dbd8]
mov edx, dword [0x40dbdc]
mov dword [eax], ecx
mov ecx, dword [0x40dbe0]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov eax, ebx
mov esi, ebx
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402b20
lea edi, [esp + 0x688]
sub eax, esi
add edi, 0xfffffffe
jmp 0x402b40
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x402b40
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x68c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
cmp eax, 0xffffffff
je 0x402c48
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [sym.imp.SETUPAPI.dll_SetupGetInfInformationW]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 2
lea edx, [esp + 0x698]
push edx
call edi
test eax, eax
je 0x402c48
mov eax, dword [esp + 0x10]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [esp + 0x10]
push 0
push ecx
mov esi, eax
push esi
push 2
lea edx, [esp + 0x698]
push edx
call edi
test eax, eax
je 0x402c41
push 0
push 0x104
lea eax, [esp + 0x898]
push eax
push str.DriverVer
push 0
push esi
call dword [sym.imp.SETUPAPI.dll_SetupQueryInfVersionInformationW]
test eax, eax
je 0x402c41
lea eax, [esp + 0x890]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402bf4
sub eax, edx
sar eax, 1
cmp eax, 0xf
jb 0x402c10
mov word [esp + 0x8ae], cx
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
mov edx, eax
shl edx, 5
add eax, 1
lea ecx, [esp + 0x890]
lea edx, [edx + edi + 4]
mov dword [edi], eax
jmp 0x402c30
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x402c30
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 0x10]
push 0x104
lea eax, [esp + 0x68c]
push eax
call ecx
test eax, eax
jne 0x402c6e
mov dword [esi + 0xc], 0x102
jmp 0x402ea2
lea edi, [esp + 0x688]
add edi, 0xfffffffe
jmp 0x402c80
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402c80
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x68c]
mov ecx, 7
mov esi, str.infoem.inf
push eax
rep movsd dword es:[edi], dword [esi]
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402ea2
test ebp, ebp
je 0x402e92
mov ebp, dword [esp + 0x14]
mov edx, dword [ebp + 0x10]
push 0x104
lea ecx, [esp + 0x68c]
push ecx
call edx
lea eax, [esp + 0x688]
add eax, 0xfffffffe
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x402ce0
mov ecx, dword [0x40dbd8]
mov edx, dword [0x40dbdc]
mov dword [eax], ecx
mov ecx, dword [0x40dbe0]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
lea eax, [esp + 0x4c]
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402d10
lea edi, [esp + 0x688]
sub eax, edx
add edi, 0xfffffffe
jmp 0x402d30
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x402d30
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x10]
push edx
push 0
mov ecx, eax
push 0
and ecx, 3
push 2
lea eax, [esp + 0x698]
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.SETUPAPI.dll_SetupGetInfInformationW]
push eax
call edi
test eax, eax
je 0x402e7f
mov ecx, dword [esp + 0x10]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, dword [esp + 0x10]
push 0
push edx
mov esi, eax
push esi
push 2
lea eax, [esp + 0x698]
push eax
call edi
test eax, eax
je 0x402e78
mov edx, dword [ebp + 0x14]
lea ecx, [esp + 0x270]
push ecx
push 0
push 0
push esi
mov dword [esp + 0x280], 0x414
call edx
test eax, eax
je 0x402e78
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x274]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402df6
test dx, dx
je 0x402df2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402df6
add eax, 4
add ecx, 4
test dx, dx
jne 0x402dd0
xor eax, eax
jmp 0x402dfb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402e78
push eax
push 0x104
lea eax, [esp + 0x898]
push eax
push str.DriverVer
push 0
push esi
call dword [sym.imp.SETUPAPI.dll_SetupQueryInfVersionInformationW]
test eax, eax
je 0x402e78
lea eax, [esp + 0x890]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402e30
sub eax, edx
sar eax, 1
cmp eax, 0xf
jb 0x402e4c
mov word [esp + 0x8ae], cx
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
mov edx, eax
shl edx, 5
add eax, 1
lea ecx, [esp + 0x890]
lea edx, [edx + edi + 4]
mov dword [edi], eax
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x402e67
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [esp + 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebp, eax
jmp 0x402cb2
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x402ea2
mov dword [edi + 0xc], 4
mov ecx, dword [esp + 0xa9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004034bc
add esp, 0xa90
ret 4