Function at 0x40b590
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x42c178
mov eax, dword fs:[0]
push eax
sub esp, 0x1f0
mov eax, dword [0x441dac]
xor eax, esp
mov dword [esp + 0x1ec], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x441dac]
xor eax, esp
push eax
lea eax, [esp + 0x204]
mov dword fs:[0], eax
xor ebx, ebx
mov ebp, 0xf
mov dword [esp + 0xbc], ebp
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], bl
lea eax, [esp + 0xa4]
push eax
mov dword [esp + 0x210], ebx
call fcn.004068f0
add esp, 4
test al, al
jne 0x40b626
cmp dword [esp + 0xbc], 0x10
jb 0x40b61c
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.0040f57f
add esp, 4
mov eax, 0x4e2e
jmp 0x40be4d
mov dword [esp + 0x84], ebp
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
push 0x7300
mov byte [esp + 0x210], 2
call fcn.00417d1a
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [esp + 0x24], edi
jne 0x40b6df
push str.Info__:_Fail_to_allocate_memory_for_UninstallSysFileList_n
call fcn.00404820
mov esi, 0x10
add esp, 4
cmp dword [esp + 0x68], esi
jb 0x40b688
mov edx, dword [esp + 0x54]
push edx
call fcn.0040f57f
add esp, 4
cmp dword [esp + 0x84], esi
mov byte [esp + 0x54], bl
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebp
jb 0x40b6aa
mov eax, dword [esp + 0x70]
push eax
call fcn.0040f57f
add esp, 4
cmp dword [esp + 0xbc], esi
mov dword [esp + 0x84], ebp
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
jb 0x40b6d5
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.0040f57f
add esp, 4
mov eax, 0x4e2f
jmp 0x40be4d
push 0x1cc00
call fcn.00417d1a
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0x20], esi
jne 0x40b700
push str.Info__:_Fail_to_allocate_memory_for_UninstallOldPIDList_n
jmp 0x40b668
push 0x7300
push ebx
push edi
call fcn.00418130
mov edx, dword [0x458d04]
imul edx, edx, 0x1cc
push edx
push 0x458d08
push edi
call fcn.0041a210
mov eax, dword [0x458d04]
push 0x1cc00
push ebx
push esi
mov dword [esp + 0x40], eax
call fcn.00418130
mov ecx, dword [0x458cfc]
imul ecx, ecx, 0x1cc
push ecx
push 0x464210
push esi
call fcn.0041a210
mov eax, dword [0x458cfc]
mov ebp, eax
imul eax, eax, 0x1cc
push 0x4b78
add eax, esi
push str.vid_339bpid_1030
push eax
call fcn.0041a210
add ebp, 0x2a
add esp, 0x3c
test byte [esp + 0x214], 2
mov dword [esp + 0x28], ebp
je 0x40b792
mov edx, dword [esp + 0x1c]
push edx
push edi
call fcn.00407f00
add esp, 8
mov edi, 0xf
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
push str.Setupapi.dll
mov byte [esp + 0x210], 3
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esp + 0x30], eax
jne 0x40b7da
push str.Info__:_Cant_find_Setupapi.dll__so_use_the_raw_delete._n
call fcn.00404820
add esp, 4
jmp 0x40b7ee
push str.SetupUninstallOEMInfA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x40b7fb
push str.Info__:_Cant_find_SetupUninstallOEMInf_in_Setupapi.dll__so_use_the_raw_delete._n
call fcn.00404820
add esp, 4
push str.infoem.inf
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.00404670
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x94]
mov byte [esp + 0x218], 4
call fcn.004033d0
mov esi, 0x10
cmp dword [esp + 0x4c], esi
mov byte [esp + 0x20c], 3
jb 0x40b84d
mov edx, dword [esp + 0x38]
push edx
call fcn.0040f57f
add esp, 4
cmp dword [esp + 0xa0], esi
mov eax, dword [esp + 0x8c]
jae 0x40b864
lea eax, [esp + 0x8c]
lea ecx, [esp + 0xc0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
je 0x40bd2e
test byte [esp + 0x214], 1
je 0x40bd2e
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov byte [esp + 0x20c], 5
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xac]
push edx
lea ecx, [esp + 0x40]
call fcn.004033d0
push 5
push str.Inf_
lea ecx, [esp + 0x3c]
call fcn.00403ad0
lea eax, [esp + 0xec]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40b8d0
sub eax, edx
push eax
lea eax, [esp + 0xf0]
push eax
lea ecx, [esp + 0x3c]
call fcn.00403ad0
xor ebp, ebp
xor edi, edi
cmp dword [esp + 0x1c], ebx
jbe 0x40badd
mov esi, dword [esp + 0x24]
nop
cmp dword [esi + 0x1c8], ebx
je 0x40b925
cmp dword [esp + 0x4c], 0x10
mov eax, dword [esp + 0x38]
jae 0x40b917
lea eax, [esp + 0x38]
push esi
push eax
call fcn.00406990
add esp, 8
cmp al, 1
je 0x40b939
add edi, 1
add esi, 0x1cc
cmp edi, dword [esp + 0x1c]
jb 0x40b900
jmp 0x40badd
mov eax, dword [esp + 0x38]
mov edi, 0x10
cmp dword [esp + 0x4c], edi
jae 0x40b94c
lea eax, [esp + 0x38]
push eax
call fcn.0040abe0
add esp, 4
call fcn.0040f911
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x40bd24
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
cmp dword [esp + 0x4c], edi
mov eax, dword [esp + 0x38]
mov byte [esp + 0x20c], 6
jae 0x40b98f
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x18]
push str._nInfo__:_Remove_inf_file___s__n
push ecx
call fcn.00403ab0
mov esi, dword [esp + 0x20]
push esi
call fcn.00404820
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp eax, ebx
je 0x40ba0b
push ebx
push 1
lea edx, [esp + 0xf4]
push edx
call eax
test eax, eax
je 0x40b9e8
cmp dword [esp + 0x4c], edi
mov eax, dword [esp + 0x38]
jae 0x40b9d3
lea eax, [esp + 0x38]
push eax
push str.Info__:_Remove_inf_file__s__OK._n
call fcn.00404820
mov ebp, 1
jmp 0x40bab6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x4c], edi
mov ecx, dword [esp + 0x38]
jae 0x40b9fc
lea ecx, [esp + 0x38]
push eax
push ecx
push str.Info__:_Remove_inf_file__s__err:_d._n
call fcn.00404820
add esp, 0xc
cmp dword [esp + 0x4c], edi
mov eax, dword [esp + 0x38]
jae 0x40ba19
lea eax, [esp + 0x38]
push eax
call fcn.00401af0
add esp, 4
test al, al
mov eax, dword [esp + 0x38]
jne 0x40ba3c
cmp dword [esp + 0x4c], edi
jae 0x40ba34
lea eax, [esp + 0x38]
push eax
push str.Error_:_Remove_read_only_inf_file__s___err._n
jmp 0x40ba4c
cmp dword [esp + 0x4c], edi
jae 0x40ba46
lea eax, [esp + 0x38]
push eax
push str.Error_:_Remove_read_only_inf_file__s__Succeed._n
call fcn.00404820
mov eax, dword [esp + 0x50]
add esp, 8
push 3
lea ecx, [eax - 1]
push 0x43044c
push ecx
add eax, 0xfffffffd
push eax
lea ecx, [esp + 0x44]
call fcn.00403bc0
cmp dword [esp + 0x4c], edi
mov eax, dword [esp + 0x38]
jae 0x40ba7e
lea eax, [esp + 0x38]
push eax
call fcn.00401af0
add esp, 4
test al, al
mov eax, dword [esp + 0x38]
jne 0x40baa1
cmp dword [esp + 0x4c], edi
jae 0x40ba99
lea eax, [esp + 0x38]
push eax
push str.Remove_read_only_pnf_file__s___err._n
jmp 0x40bab1
cmp dword [esp + 0x4c], edi
jae 0x40baab
lea eax, [esp + 0x38]
push eax
push str.Remove_read_only_pnf_file__s__Succeed._n
call fcn.00404820
lea eax, [esi - 0x10]
add esp, 8
mov byte [esp + 0x20c], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40badd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor edi, edi
cmp dword [esp + 0x28], ebx
jbe 0x40bccc
mov esi, dword [esp + 0x20]
lea ecx, [ecx]
cmp dword [esp + 0x4c], 0x10
mov eax, dword [esp + 0x38]
jae 0x40baff
lea eax, [esp + 0x38]
push esi
push eax
call fcn.00406990
add esp, 8
cmp al, 1
je 0x40bb2a
push esi
call fcn.0040b1b0
add edi, 1
add esp, 4
add esi, 0x1cc
cmp edi, dword [esp + 0x28]
jb 0x40baf0
jmp 0x40bccc
mov eax, dword [esp + 0x38]
mov edi, 0x10
cmp dword [esp + 0x4c], edi
jae 0x40bb3d
lea eax, [esp + 0x38]
push eax
call fcn.0040abe0
add esp, 4
call fcn.0040f911
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x40bd24
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
cmp dword [esp + 0x4c], edi
mov eax, dword [esp + 0x38]
mov byte [esp + 0x20c], 7
jae 0x40bb80
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x18]
push str._nInfo__:_Remove_inf_file___s__n
push ecx
call fcn.00403ab0
mov esi, dword [esp + 0x20]
push esi
call fcn.00404820
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp eax, ebx
je 0x40bbfa
push ebx
push 1
lea edx, [esp + 0xf4]
push edx
call eax
test eax, eax
je 0x40bbcf
cmp dword [esp + 0x4c], edi
mov eax, dword [esp + 0x38]
jae 0x40bbc4
lea eax, [esp + 0x38]
push eax
push str.Info__:_Remove_inf_file__s__OK._n
jmp 0x40bca0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x4c], edi
mov ecx, dword [esp + 0x38]
jae 0x40bbe3
lea ecx, [esp + 0x38]
push eax
push ecx
push str.Info__:_Remove_inf_file__s__err:_d._n
call fcn.00404820
add esp, 0xc
cmp ebp, ebx
jne 0x40bca8
cmp dword [esp + 0x4c], edi
mov eax, dword [esp + 0x38]
jae 0x40bc08
lea eax, [esp + 0x38]
push eax
call fcn.00401af0
add esp, 4
test al, al
mov eax, dword [esp + 0x38]
jne 0x40bc2b
cmp dword [esp + 0x4c], edi
jae 0x40bc23
lea eax, [esp + 0x38]
push eax
push str.Error_:_Remove_read_only_inf_file__s___err._n
jmp 0x40bc3b
cmp dword [esp + 0x4c], edi
jae 0x40bc35
lea eax, [esp + 0x38]
push eax
push str.Error_:_Remove_read_only_inf_file__s__Succeed._n
call fcn.00404820
mov eax, dword [esp + 0x50]
add esp, 8
push 3
lea ecx, [eax - 1]
push 0x43044c
push ecx
add eax, 0xfffffffd
push eax
lea ecx, [esp + 0x44]
call fcn.00403bc0
cmp dword [esp + 0x4c], edi
mov eax, dword [esp + 0x38]
jae 0x40bc6d
lea eax, [esp + 0x38]
push eax
call fcn.00401af0
add esp, 4
test al, al
mov eax, dword [esp + 0x38]
jne 0x40bc90
cmp dword [esp + 0x4c], edi
jae 0x40bc88
lea eax, [esp + 0x38]
push eax
push str.Remove_read_only_pnf_file__s___err._n
jmp 0x40bca0
cmp dword [esp + 0x4c], edi
jae 0x40bc9a
lea eax, [esp + 0x38]
push eax
push str.Remove_read_only_pnf_file__s__Succeed._n
call fcn.00404820
add esp, 8
lea eax, [esi - 0x10]
mov byte [esp + 0x20c], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bccc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
push 0x42ea1b
lea ecx, [esp + 0x3c]
call fcn.00403630
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0xc0]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x40b8a2
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, 0x10
cmp dword [esp + 0x4c], edi
mov byte [esp + 0x20c], 3
jb 0x40bd55
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0040f57f
add esp, 4
jmp 0x40bd55
push 0x80004005
call fcn.00401090
cmp dword [esp + 0xa0], esi
mov eax, dword [esp + 0x8c]
jae 0x40bd45
lea eax, [esp + 0x8c]
push eax
push str.Info__:_No_inf_file__s__should_be_delete._n
call fcn.00404820
add esp, 8
mov edi, esi
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x40bd64
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test byte [esp + 0x214], 4
je 0x40bd97
cmp byte [0x4432d6], 1
jne 0x40bd97
push 1
push str.WUDFUpdate_01007.dll
call fcn.00407f00
mov edx, dword [0x458cf8]
push edx
push 0x4433f8
call fcn.00407f00
add esp, 0x10
push str._nInfo__:_Remove_driver_file__OK._n
call fcn.00404820
mov eax, dword [esp + 0x28]
push eax
call fcn.00417ddd
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00417ddd
add esp, 0xc
cmp dword [esp + 0xa0], edi
jb 0x40bdd1
mov edx, dword [esp + 0x8c]
push edx
call fcn.0040f57f
add esp, 4
cmp dword [esp + 0x68], edi
mov esi, 0xf
mov dword [esp + 0xa0], esi
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
jb 0x40bdfe
mov eax, dword [esp + 0x54]
push eax
call fcn.0040f57f
add esp, 4
cmp dword [esp + 0x84], edi
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
jb 0x40be20
mov ecx, dword [esp + 0x70]
push ecx
call fcn.0040f57f
add esp, 4
cmp dword [esp + 0xbc], edi
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
jb 0x40be4b
mov edx, dword [esp + 0xa8]
push edx
call fcn.0040f57f
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x204]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1ec]
xor ecx, esp
call fcn.0041811d
add esp, 0x1fc
ret