Function at 0x409140
Capabilities:
Enumerate files on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x428b68
mov eax, dword fs:[0]
push eax
sub esp, 0x1e8
mov eax, dword [0x43e6bc]
xor eax, esp
mov dword [esp + 0x1e4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43e6bc]
xor eax, esp
push eax
lea eax, [esp + 0x1fc]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, 0xf
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
lea eax, [esp + 0x9c]
push eax
mov dword [esp + 0x208], ebx
call fcn.00405ce0
add esp, 4
test al, al
jne 0x4091d6
cmp dword [esp + 0xb4], 0x10
jb 0x4091cc
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.0040d16a
add esp, 4
mov eax, 0x4e2e
jmp 0x409760
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
push 0x7300
mov byte [esp + 0x208], 2
call fcn.00415d3a
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0x14], esi
jne 0x409280
push str.Info__:_Fail_to_allocate_memory_for_UninstallSysFileList_n
call fcn.00403d60
mov esi, 0x10
add esp, 4
cmp dword [esp + 0x7c], esi
jb 0x409232
mov edx, dword [esp + 0x68]
push edx
call fcn.0040d16a
add esp, 4
cmp dword [esp + 0x60], esi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
jb 0x409251
mov eax, dword [esp + 0x4c]
push eax
call fcn.0040d16a
add esp, 4
cmp dword [esp + 0xb4], esi
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
jb 0x409276
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.0040d16a
add esp, 4
mov eax, 0x4e2f
jmp 0x409760
push 0x7300
push ebx
push esi
call fcn.00416150
mov edx, dword [0x44701c]
imul edx, edx, 0x1cc
push edx
push 0x447020
push esi
call fcn.00417c00
mov edi, dword [0x44701c]
mov ebp, edi
imul edi, edi, 0x1cc
add edi, esi
add esp, 0x18
mov ecx, 0x2b2
mov esi, 0x43ce20
add ebp, 6
test byte [esp + 0x20c], 2
rep movsd dword es:[edi], dword [esi]
je 0x4092de
mov eax, dword [esp + 0x14]
push ebp
push eax
call fcn.004077c0
add esp, 8
mov dword [esp + 0x98], 0xf
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
push str.Setupapi.dll
mov byte [esp + 0x208], 3
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x24], esi
jne 0x409327
push str.Info__:_Cant_find_Setupapi.dll__so_use_the_raw_delete._n
call fcn.00403d60
add esp, 4
jmp 0x40933b
push str.SetupUninstallOEMInfA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x409348
push str.Info__:_Cant_find_SetupUninstallOEMInf_in_Setupapi.dll__so_use_the_raw_delete._n
call fcn.00403d60
add esp, 4
push str.infoem.inf
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.00403ab0
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0x210], 4
call fcn.00402e20
mov edi, 0x10
cmp dword [esp + 0x44], edi
mov byte [esp + 0x204], 3
jb 0x40939a
mov eax, dword [esp + 0x30]
push eax
call fcn.0040d16a
add esp, 4
cmp dword [esp + 0x98], edi
mov eax, dword [esp + 0x84]
jae 0x4093b1
lea eax, [esp + 0x84]
lea ecx, [esp + 0xb8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x28], eax
je 0x409792
test byte [esp + 0x20c], 1
je 0x409792
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov byte [esp + 0x204], 5
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xa4]
push edx
lea ecx, [esp + 0x38]
call fcn.00402e20
push 5
push str.Inf_
lea ecx, [esp + 0x34]
call fcn.00402f80
lea eax, [esp + 0xe4]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x409421
sub eax, edx
push eax
lea eax, [esp + 0xe8]
push eax
lea ecx, [esp + 0x34]
call fcn.00402f80
xor edi, edi
cmp ebp, ebx
jbe 0x40961a
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp dword [esi + 0x1c8], ebx
je 0x409475
cmp dword [esp + 0x44], 0x10
mov eax, dword [esp + 0x30]
jae 0x409467
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00401a60
add esp, 8
cmp al, 1
je 0x409487
add edi, 1
add esi, 0x1cc
cmp edi, ebp
jb 0x409450
jmp 0x40961a
mov eax, dword [esp + 0x30]
mov esi, 0x10
cmp dword [esp + 0x44], esi
jae 0x40949a
lea eax, [esp + 0x30]
push eax
call fcn.00408e30
add esp, 4
call fcn.0040d647
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x409788
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
cmp dword [esp + 0x44], esi
mov eax, dword [esp + 0x30]
mov byte [esp + 0x204], 6
jae 0x4094dd
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x24]
push str._nInfo__:_Remove_inf_file___s__n
push ecx
call fcn.004034f0
mov edi, dword [esp + 0x2c]
push edi
call fcn.00403d60
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp eax, ebx
je 0x40957c
push ebx
push 1
lea edx, [esp + 0xec]
push edx
call eax
test eax, eax
je 0x40951d
push str.Info__:_Remove_inf_file_OK._n
jmp 0x4095ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.004023b0
push esi
lea eax, [esp + 0x20]
push str.Error_:_SetupUninstallOEMInf_error_:__d_n
push eax
mov byte [esp + 0x210], 7
call fcn.004034f0
mov esi, dword [esp + 0x28]
push esi
call fcn.00403d60
lea eax, [esi - 0x10]
add esp, 0x10
mov byte [esp + 0x204], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409577
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, 0x10
cmp dword [esp + 0x44], esi
mov eax, dword [esp + 0x30]
jae 0x40958a
lea eax, [esp + 0x30]
push eax
call fcn.00401b50
add esp, 4
test al, al
jne 0x40959e
push str.Error_:_Remove_read_only_inf_file__err._n
jmp 0x4095a3
push str.Error_:_Remove_read_only_inf_file_Succeed._n
call fcn.00403d60
mov eax, dword [esp + 0x44]
add esp, 4
push 3
lea ecx, [eax - 1]
push 0x42bed8
push ecx
add eax, 0xfffffffd
push eax
lea ecx, [esp + 0x3c]
call fcn.00403510
cmp dword [esp + 0x44], esi
mov eax, dword [esp + 0x30]
jae 0x4095d5
lea eax, [esp + 0x30]
push eax
call fcn.00401b50
add esp, 4
test al, al
jne 0x4095e9
push str.Remove_read_only_pnf_file__err._n
jmp 0x4095ee
push str.Remove_read_only_pnf_file_Succeed._n
call fcn.00403d60
lea eax, [edi - 0x10]
add esp, 4
mov byte [esp + 0x204], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40961a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
push 0x42ad4d
lea ecx, [esp + 0x34]
call fcn.00403070
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0xb8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x4093f3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x44], 0x10
mov byte [esp + 0x204], 3
jb 0x409668
mov edx, dword [esp + 0x30]
push edx
call fcn.0040d16a
add esp, 4
mov esi, dword [esp + 0x24]
mov edi, 0x10
cmp esi, ebx
je 0x40967c
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test byte [esp + 0x20c], 4
je 0x4096bd
push 1
push str.hwgpssensor.dll
call fcn.004077c0
add esp, 8
cmp byte [0x43fbf5], 1
jne 0x4096bd
push 1
push str.WUDFUpdate_01009.dll
call fcn.004077c0
mov eax, dword [0x43fd14]
push eax
push 0x43fd18
call fcn.004077c0
add esp, 0x10
push str._nInfo__:_Remove_driver_file__OK._n
call fcn.00403d60
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00415dfd
add esp, 8
cmp dword [esp + 0x98], edi
jb 0x4096ed
mov edx, dword [esp + 0x84]
push edx
call fcn.0040d16a
add esp, 4
cmp dword [esp + 0x7c], edi
mov esi, 0xf
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
jb 0x40971a
mov eax, dword [esp + 0x68]
push eax
call fcn.0040d16a
add esp, 4
cmp dword [esp + 0x60], edi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
jb 0x409739
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0040d16a
add esp, 4
cmp dword [esp + 0xb4], edi
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
jb 0x40975e
mov edx, dword [esp + 0xa0]
push edx
call fcn.0040d16a
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1fc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1e4]
xor ecx, esp
call fcn.0041613d
add esp, 0x1f4
ret
push 0x80004005
call fcn.00401090
push str.Info__:_No_inf_file_should_be_delete._n
call fcn.00403d60
add esp, 4
jmp 0x409671