Function at 0x4055c0
Capabilities:
Delete directory
Enumerate files on windows
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4679ac
mov eax, dword fs:[0]
push eax
sub esp, 0xf18
mov eax, dword [0x48807c]
xor eax, esp
mov dword [esp + 0xf14], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48807c]
xor eax, esp
push eax
lea eax, [esp + 0xf2c]
mov dword fs:[0], eax
mov ebp, ecx
push str._RemoveFilesNotInUse__n
mov dword [esp + 0x20], ebp
call fcn.004454c0
mov eax, dword [ebp + 0x44c]
xor esi, esi
add esp, 4
mov dword [esp + 0x24], esi
test eax, eax
jle 0x405c26
mov eax, dword [ebp + 0x448]
mov ebx, dword [eax + esi*8]
mov ecx, dword [ebx + 0x208]
push ecx
push ebx
push str.____FILE___s__count__d__n
mov dword [esp + 0x24], ebx
call fcn.004454c0
add esp, 0xc
cmp dword [ebx + 0x208], 0
jne 0x405c15
push ebx
push str.Removing___s__n
call fcn.004454c0
mov ecx, dword [ebp + 4]
add esp, 8
push 0
push ebx
call fcn.004496a0
test al, al
je 0x405c07
cmp byte [ebx + 0x20c], 1
jne 0x405bfc
mov eax, dword [ebp + 4]
cmp dword [eax], 0x15
jl 0x405bfc
push 0x4fc8
call fcn.004534f0
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0xf34], 0
test eax, eax
je 0x4056b9
push 0
push ebx
mov ecx, eax
call fcn.00446910
mov esi, eax
jmp 0x4056bb
xor esi, esi
lea ecx, [esp + 0x90]
call fcn.00407e20
lea ecx, [esp + 0x78]
mov dword [esp + 0xf34], 1
call fcn.00407e20
lea ecx, [esp + 0x48]
call fcn.00407e20
mov byte [esp + 0xf34], 3
test esi, esi
je 0x405726
lea edx, [esp + 0x78]
push edx
mov ecx, esi
call fcn.00446b20
cmp dword [esp + 0x7c], 0
je 0x405716
mov eax, dword [esp + 0x78]
mov eax, dword [eax]
lea ecx, [esp + 0x48]
push ecx
push eax
mov ecx, esi
call fcn.00446c10
mov ecx, esi
call fcn.00447670
push esi
call fcn.004534ca
add esp, 4
mov edx, dword [esp + 0x4c]
push str.Try_to_find_related_inf_in_INF_directory_n
mov dword [esp + 0x24], edx
call fcn.004454c0
add esp, 4
push 0x104
lea eax, [esp + 0x914]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 0x910]
push ecx
lea edx, [esp + 0x504]
push str._sinfoem.inf
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x504]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
je 0x4059e1
lea edx, [esp + 0xd4]
push edx
lea eax, [esp + 0x914]
push eax
lea ecx, [esp + 0x508]
push str._sinf_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
xor edi, edi
add esp, 0x10
cmp dword [esp + 0x20], edi
jle 0x4059bf
mov edx, dword [esp + 0x48]
mov eax, dword [edx + edi*8]
mov ecx, dword [ebp + 4]
push eax
lea eax, [esp + 0x504]
push eax
call fcn.00449760
test al, al
je 0x405931
lea ecx, [esp + 0x500]
push ecx
push ebx
call fcn.00453ad3
add esp, 8
test eax, eax
je 0x405931
lea ecx, [esp + 0x2c]
mov byte [esp + 0x17], 0
call fcn.00407e20
lea ecx, [esp + 0x60]
call fcn.00407e20
push 0x4fc8
mov byte [esp + 0xf38], 5
call fcn.004534f0
add esp, 4
mov dword [esp + 0x44], eax
mov byte [esp + 0xf34], 6
test eax, eax
je 0x40584b
push 0
lea edx, [esp + 0x504]
push edx
mov ecx, eax
call fcn.00446910
mov ebx, eax
jmp 0x40584d
xor ebx, ebx
lea eax, [esp + 0x2c]
push eax
mov ecx, ebx
mov byte [esp + 0xf38], 5
call fcn.00446b20
test eax, eax
je 0x4058da
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
lea edx, [esp + 0x60]
push edx
push eax
mov ecx, ebx
call fcn.00446c10
mov ebp, eax
mov eax, dword [esp + 0x48]
mov eax, dword [eax + edi*8]
push eax
push str.Current_Model____s__n
call fcn.004454c0
add esp, 8
xor esi, esi
test ebp, ebp
jle 0x4058da
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx + esi*8]
push eax
push str.___Model_in_INF_file___s__n
call fcn.004454c0
mov edx, dword [esp + 0x50]
mov eax, dword [edx + edi*8]
mov ecx, dword [esp + 0x68]
mov ecx, dword [ecx + esi*8]
push eax
push ecx
call fcn.00453ad3
add esp, 0x10
test eax, eax
jne 0x4058d5
push str.______Found_n
call fcn.004454c0
add esp, 4
mov byte [esp + 0x17], 1
inc esi
cmp esi, ebp
jl 0x405895
lea ecx, [esp + 0x60]
call fcn.00401b40
lea ecx, [esp + 0x2c]
call fcn.00401b40
test ebx, ebx
je 0x405900
mov ecx, ebx
call fcn.00447670
push ebx
call fcn.004534ca
add esp, 4
cmp byte [esp + 0x17], 0
jne 0x405941
lea ecx, [esp + 0x60]
mov byte [esp + 0xf34], 4
call fcn.00405350
lea ecx, [esp + 0x2c]
mov byte [esp + 0xf34], 3
call fcn.00405350
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
inc edi
cmp edi, dword [esp + 0x20]
jl 0x4057c1
jmp 0x4059bf
push 0x200
call fcn.00453c61
lea ecx, [esp + 0x504]
mov esi, eax
mov edx, ecx
add esp, 4
sub esi, edx
jmp 0x405960
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x405960
push 0xffffffffffffffff
push 1
push eax
lea ecx, [esp + 0x9c]
call fcn.00403750
lea eax, [esp + 0x500]
push eax
push str.__Other_INF___s__n
call fcn.004454c0
add esp, 8
lea ecx, [esp + 0x60]
mov byte [esp + 0xf34], 4
call fcn.00405350
lea ecx, [esp + 0x2c]
mov byte [esp + 0xf34], 3
call fcn.00405350
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0xa8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40578f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x78]
call fcn.00401b40
lea ecx, [esp + 0x48]
call fcn.00401b40
push ebx
mov ecx, ebp
call fcn.004035b0
mov eax, dword [esp + 0x94]
test eax, eax
jle 0x405bb1
mov ebx, dword [esp + 0x90]
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
push eax
push str.__Other_INF___s__n
call fcn.004454c0
push 0x4fc8
call fcn.004534f0
add esp, 0xc
mov dword [esp + 0x44], eax
mov byte [esp + 0xf34], 7
test eax, eax
je 0x405a4f
mov ecx, dword [ebx]
push 0
push ecx
mov ecx, eax
call fcn.00446910
mov esi, eax
jmp 0x405a51
xor esi, esi
mov ecx, esi
mov byte [esp + 0xf34], 3
call fcn.00445ce0
mov edi, eax
test esi, esi
je 0x405a76
mov ecx, esi
call fcn.00447670
push esi
call fcn.004534ca
add esp, 4
mov byte [esp + 0x17], 1
test edi, edi
je 0x405b99
lea ecx, [esp + 0x2c]
call fcn.00407e20
mov edx, dword [esp + 0xf3c]
push edx
lea eax, [esp + 0x30]
push eax
push edi
push 7
push 0
mov ecx, ebp
mov byte [esp + 0xf48], 8
call fcn.004038b0
mov edi, dword [esp + 0x30]
xor esi, esi
test edi, edi
jle 0x405b78
mov ebp, dword [esp + 0x2c]
nop
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x302]
push edx
mov word [esp + 0x304], cx
call fcn.00453450
mov eax, dword [ebp + esi*8]
lea ecx, [eax + 0x860]
add esp, 0xc
test ecx, ecx
je 0x405b0f
add eax, 0x860
lea edx, [esp + 0x2f8]
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x405b00
cmp word [esp + 0x2f8], 0
je 0x405b6b
push 0x104
lea edx, [esp + 0xb1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x2f8]
push eax
lea ecx, [esp + 0xb1c]
push ecx
lea edx, [esp + 0xd28]
push str._sinf_s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebx]
push eax
lea eax, [esp + 0xd34]
push eax
call fcn.00453ad3
add esp, 0x18
test eax, eax
jne 0x405b6b
mov byte [esp + 0x17], al
inc esi
cmp esi, edi
jl 0x405ac0
mov ebp, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
call fcn.00401b40
lea ecx, [esp + 0x2c]
mov byte [esp + 0xf34], 3
call fcn.00405350
cmp byte [esp + 0x17], 0
je 0x405ba3
mov eax, dword [ebx]
push eax
mov ecx, ebp
call fcn.004035b0
add ebx, 8
sub dword [esp + 0x18], 1
jne 0x405a15
lea ecx, [esp + 0x90]
call fcn.00401b40
lea ecx, [esp + 0x48]
mov byte [esp + 0xf34], 2
call fcn.00405350
lea ecx, [esp + 0x78]
mov byte [esp + 0xf34], 1
call fcn.00405350
lea ecx, [esp + 0x90]
mov dword [esp + 0xf34], 0xffffffff
call fcn.00405350
mov esi, dword [esp + 0x24]
jmp 0x405c15
mov ecx, dword [ebp + 4]
push ebx
call fcn.0044a070
jmp 0x405c15
push ebx
push str.File_does_not_exist:___s__Do_nothing_n
call fcn.004454c0
add esp, 8
inc esi
cmp esi, dword [ebp + 0x44c]
mov dword [esp + 0x24], esi
jl 0x405622
push 0
push 0x104
lea ecx, [esp + 0x710]
push ecx
mov ecx, dword [ebp + 4]
call fcn.0044a660
push str.Removing_Image_FOLDERS__n
call fcn.004454c0
xor ebx, ebx
add esp, 4
cmp dword [ebp + 0x464], ebx
jle 0x405d91
mov edx, dword [ebp + 0x460]
mov esi, dword [edx + ebx*8]
push esi
push str.____FOLDER___s__n
call fcn.004454c0
lea edx, [esp + 0x300]
add esp, 8
mov eax, esi
sub edx, esi
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x405c80
lea eax, [esp + 0x708]
push eax
lea ecx, [esp + 0x2fc]
push ecx
xor edi, edi
call fcn.00453ad3
add esp, 8
test eax, eax
je 0x405d84
lea eax, [esp + 0x2f8]
lea edx, [eax + 2]
jmp 0x405cc0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405cc0
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [esp + 0x708]
lea esi, [eax + 2]
jmp 0x405ce0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405ce0
sub eax, esi
sar eax, 1
cmp edx, eax
jb 0x405d84
lea edx, [esp + 0x2f8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x405d2e
lea eax, [esp + 0x2f8]
push eax
push str.___Not_empty_wszFolder__s__n
call fcn.004454c0
add esp, 8
lea ecx, [esp + 0x2f8]
push ecx
mov ecx, dword [ebp + 4]
call fcn.0044a130
lea edx, [esp + 0x2f8]
push 0x5c
push edx
call fcn.00453bad
add esp, 8
test eax, eax
je 0x405d84
lea edx, [esp + 0x2f8]
push edx
xor ecx, ecx
push str.___Next_FOLDER___s__n
mov word [eax], cx
call fcn.004454c0
inc edi
add esp, 8
cmp edi, 0xa
je 0x405d84
lea eax, [esp + 0x708]
push eax
lea ecx, [esp + 0x2fc]
push ecx
call fcn.00453ad3
add esp, 8
test eax, eax
jne 0x405cb1
inc ebx
cmp ebx, dword [ebp + 0x464]
jl 0x405c58
xor eax, eax
mov ecx, dword [esp + 0xf2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xf14]
xor ecx, esp
call fcn.00453432
add esp, 0xf24
ret 4