Function at 0x4052d0
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x424012
mov eax, dword fs:[0]
push eax
mov eax, 0x13b8
call fcn.00411020
mov eax, dword [0x42ea04]
xor eax, esp
mov dword [esp + 0x13b4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42ea04]
xor eax, esp
push eax
lea eax, [esp + 0x13cc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x13dc]
xor ebx, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x13d4], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
push str.Models
push edi
mov byte [esp + 0x13dc], 2
call dword [sym.imp.SETUPAPI.dll_SetupGetLineCountA]
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x14], eax
jle 0x40540f
lea eax, [esp + 0x78]
push eax
push esi
push str.Models
push edi
call dword [sym.imp.SETUPAPI.dll_SetupGetLineByIndexA]
lea ecx, [esp + 0x28]
push ecx
push 0x100
lea edx, [esp + 0x1d0]
push edx
push 2
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
lea eax, [esp + 0x1c8]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
lea ebp, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4053b3
sub eax, ebp
push eax
lea ecx, [esp + 0x1cc]
push ecx
lea ecx, [esp + 0x38]
call fcn.00402860
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x64]
mov byte [esp + 0x13d8], 3
call fcn.00404f00
cmp dword [esp + 0x48], 0x10
mov byte [esp + 0x13d4], 2
jb 0x405402
mov eax, dword [esp + 0x34]
push eax
call fcn.00407818
add esp, 4
add esi, 1
cmp esi, dword [esp + 0x14]
jl 0x405365
push 0x400
lea ecx, [esp + 0xfcc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor eax, eax
jmp 0x405430
mov cl, byte [esp + eax + 0xfc8]
mov byte [esp + eax + 0xbc8], cl
add eax, 1
cmp cl, bl
jne 0x405430
lea eax, [esp + 0xbc8]
add eax, 0xffffffff
nop
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x405450
mov edx, dword [str.Infoem.inf]
mov ecx, dword [0x4267d8]
mov dword [eax], edx
mov edx, dword [0x4267dc]
mov dword [eax + 4], ecx
mov cx, word [0x4267e0]
mov dword [eax + 8], edx
lea edx, [esp + 0x88]
mov word [eax + 0xc], cx
push edx
lea eax, [esp + 0xbcc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esp + 0x2c], eax
mov eax, ecx
cmp eax, ebx
je 0x405855
lea ebp, [esp + 0x2c8]
sub ebp, 4
mov dword [esp + 0x14], ebp
xor eax, eax
jmp 0x4054c0
mov cl, byte [esp + eax + 0xb4]
mov byte [esp + eax + 0x2c8], cl
add eax, 1
cmp cl, bl
jne 0x4054c0
lea eax, [esp + 0xb4]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4054e0
mov cl, byte [0x4267d0]
sub eax, edx
mov edx, dword [str..pnf]
mov dword [eax + ebp], edx
mov byte [eax + ebp + 4], cl
xor eax, eax
mov cl, byte [esp + eax + 0xfc8]
mov byte [esp + eax + 0x3c8], cl
add eax, 1
cmp cl, bl
jne 0x405500
lea eax, [esp + 0x3c8]
add eax, 0xffffffff
nop
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x405520
mov edx, dword [str.Inf_]
mov cx, word [0x4267c8]
mov dword [eax], edx
mov word [eax + 4], cx
xor eax, eax
nop
mov cl, byte [esp + eax + 0x3c8]
mov byte [esp + eax + 0x7c8], cl
add eax, 1
cmp cl, bl
jne 0x405540
lea eax, [esp + 0xb4]
mov edx, eax
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x405560
lea edi, [esp + 0x3c8]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x405575
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x2c8]
rep movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x405598
lea edi, [esp + 0x7c8]
sub eax, esi
add edi, 0xffffffff
lea ecx, [ecx]
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x4055b0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
mov esi, ecx
jbe 0x4055e3
call fcn.00411175
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
cmp eax, ecx
mov edi, eax
mov dword [esp + 0x5c], edi
jbe 0x4055f6
call fcn.00411175
mov ecx, dword [esp + 0x20]
cmp edi, esi
je 0x40568a
mov edi, ecx
sub edi, esi
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
cmp esi, ecx
mov eax, dword [esp + 0x5c]
lea edx, [eax + edx*4]
mov ebp, ecx
mov dword [esp + 0x28], edx
je 0x40564a
mov edi, eax
sub edi, esi
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [edi + esi]
call fcn.00402780
add esi, 0x1c
cmp esi, ebp
jne 0x405633
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
cmp esi, ecx
mov edi, ecx
je 0x405682
add esi, 0x18
cmp dword [esi], 0x10
jb 0x405668
mov eax, dword [esi - 0x14]
push eax
call fcn.00407818
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], bl
add esi, 0x1c
lea eax, [esi - 0x18]
cmp eax, edi
jne 0x405657
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x74]
push ecx
push 2
push ebx
lea edx, [esp + 0x3d4]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4056c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x88]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x40584d
push str.Models
push edi
call dword [sym.imp.SETUPAPI.dll_SetupGetLineCountA]
mov ebp, eax
xor esi, esi
cmp ebp, ebx
jle 0x40578a
lea ecx, [ecx]
lea edx, [esp + 0x78]
push edx
push esi
push str.Models
push edi
call dword [sym.imp.SETUPAPI.dll_SetupGetLineByIndexA]
lea eax, [esp + 0x70]
push eax
push 0x100
lea ecx, [esp + 0x1d0]
push ecx
push 2
lea edx, [esp + 0x88]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
lea eax, [esp + 0x1c8]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x405730
sub eax, ecx
push eax
lea eax, [esp + 0x1cc]
push eax
lea ecx, [esp + 0x38]
call fcn.00402860
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x13d8], 4
call fcn.00404f00
cmp dword [esp + 0x48], 0x10
mov byte [esp + 0x13d4], 2
jb 0x40577f
mov edx, dword [esp + 0x34]
push edx
call fcn.00407818
add esp, 4
add esi, 1
cmp esi, ebp
jl 0x4056e0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x64]
push ecx
call fcn.00403010
add esp, 8
test al, al
je 0x40582f
push 0x80
lea edx, [esp + 0x3cc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x3c8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x7c8]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4057e0
sub eax, edx
push eax
lea ecx, [esp + 0x7cc]
push ecx
lea ecx, [esp + 0x38]
call fcn.00402860
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x50]
mov byte [esp + 0x13d8], 5
call fcn.00404f00
cmp dword [esp + 0x48], 0x10
mov byte [esp + 0x13d4], 2
jb 0x40582f
mov eax, dword [esp + 0x34]
push eax
call fcn.00407818
add esp, 4
push edi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x88]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ebp, dword [esp + 0x14]
cmp eax, ebx
jne 0x4054b9
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor edi, edi
xor ebp, ebp
mov esi, dword [esp + 0x50]
cmp esi, ebx
je 0x405904
mov ecx, dword [esp + 0x54]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x4058ba
cmp dword [esi + ebp + 0x18], 0x10
jb 0x4058a7
mov esi, dword [esi + ebp + 4]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add edi, 1
add ebp, 0x1c
jmp 0x405864
lea esi, [esi + ebp + 4]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add edi, 1
add ebp, 0x1c
jmp 0x405864
cmp esi, ebx
je 0x405904
mov edi, dword [esp + 0x54]
cmp esi, edi
je 0x4058fb
add esi, 0x18
lea esp, [esp]
cmp dword [esi], 0x10
jb 0x4058e1
mov ecx, dword [esi - 0x14]
push ecx
call fcn.00407818
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], bl
add esi, 0x1c
lea edx, [esi - 0x18]
cmp edx, edi
jne 0x4058d0
mov esi, dword [esp + 0x50]
push esi
call fcn.00407818
add esp, 4
mov esi, dword [esp + 0x1c]
cmp esi, ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
je 0x405957
mov edi, dword [esp + 0x20]
cmp esi, edi
je 0x40594e
add esi, 0x18
cmp dword [esi], 0x10
jb 0x405934
mov eax, dword [esi - 0x14]
push eax
call fcn.00407818
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], bl
add esi, 0x1c
lea ecx, [esi - 0x18]
cmp ecx, edi
jne 0x405923
mov esi, dword [esp + 0x1c]
push esi
call fcn.00407818
add esp, 4
mov esi, dword [esp + 0x64]
cmp esi, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
je 0x4059aa
mov edi, dword [esp + 0x68]
cmp esi, edi
je 0x4059a1
add esi, 0x18
cmp dword [esi], 0x10
jb 0x405987
mov edx, dword [esi - 0x14]
push edx
call fcn.00407818
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], bl
add esi, 0x1c
lea eax, [esi - 0x18]
cmp eax, edi
jne 0x405976
mov esi, dword [esp + 0x64]
push esi
call fcn.00407818
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x13cc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x13b4]
xor ecx, esp
call fcn.00410f96
add esp, 0x13c4
ret