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

Disassembly:
push 0xffffffffffffffff
push 0x45e9ac
mov eax, dword fs:[0]
push eax
sub esp, 0xf18
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0xf14], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47b038]
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.0043e2c0
mov eax, dword [ebp + 0x444]
xor esi, esi
add esp, 4
mov dword [esp + 0x24], esi
test eax, eax
jle 0x405466
mov eax, dword [ebp + 0x440]
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.0043e2c0
add esp, 0xc
cmp dword [ebx + 0x208], 0
jne 0x405455
push ebx
push str.Removing___s__n
call fcn.0043e2c0
mov ecx, dword [ebp + 4]
add esp, 8
push 0
push ebx
call fcn.004421d0
test al, al
je 0x405447
cmp byte [ebx + 0x20c], 1
jne 0x40543c
mov eax, dword [ebp + 4]
cmp dword [eax], 0x15
jl 0x40543c
push 0x4fc8
call fcn.0044ad7f
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0xf34], 0
test eax, eax
je 0x404ef9
push 0
push ebx
mov ecx, eax
call fcn.0043f710
mov esi, eax
jmp 0x404efb
xor esi, esi
lea ecx, [esp + 0x90]
call fcn.004031d0
lea ecx, [esp + 0x78]
mov dword [esp + 0xf34], 1
call fcn.004031d0
lea ecx, [esp + 0x48]
call fcn.004031d0
mov byte [esp + 0xf34], 3
test esi, esi
je 0x404f66
lea edx, [esp + 0x78]
push edx
mov ecx, esi
call fcn.0043f920
cmp dword [esp + 0x7c], 0
je 0x404f56
mov eax, dword [esp + 0x78]
mov eax, dword [eax]
lea ecx, [esp + 0x48]
push ecx
push eax
mov ecx, esi
call fcn.0043fa10
mov ecx, esi
call fcn.00440470
push esi
call fcn.0044ad0a
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.0043e2c0
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 0x405221
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 0x4051ff
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.00442290
test al, al
je 0x405171
lea ecx, [esp + 0x500]
push ecx
push ebx
call fcn.0044b362
add esp, 8
test eax, eax
je 0x405171
lea ecx, [esp + 0x2c]
mov byte [esp + 0x17], 0
call fcn.004031d0
lea ecx, [esp + 0x60]
call fcn.004031d0
push 0x4fc8
mov byte [esp + 0xf38], 5
call fcn.0044ad7f
add esp, 4
mov dword [esp + 0x44], eax
mov byte [esp + 0xf34], 6
test eax, eax
je 0x40508b
push 0
lea edx, [esp + 0x504]
push edx
mov ecx, eax
call fcn.0043f710
mov ebx, eax
jmp 0x40508d
xor ebx, ebx
lea eax, [esp + 0x2c]
push eax
mov ecx, ebx
mov byte [esp + 0xf38], 5
call fcn.0043f920
test eax, eax
je 0x40511a
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
lea edx, [esp + 0x60]
push edx
push eax
mov ecx, ebx
call fcn.0043fa10
mov ebp, eax
mov eax, dword [esp + 0x48]
mov eax, dword [eax + edi*8]
push eax
push str.Current_Model____s__n
call fcn.0043e2c0
add esp, 8
xor esi, esi
test ebp, ebp
jle 0x40511a
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx + esi*8]
push eax
push str.___Model_in_INF_file___s__n
call fcn.0043e2c0
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.0044b362
add esp, 0x10
test eax, eax
jne 0x405115
push str.______Found_n
call fcn.0043e2c0
add esp, 4
mov byte [esp + 0x17], 1
inc esi
cmp esi, ebp
jl 0x4050d5
lea ecx, [esp + 0x60]
call fcn.004031f0
lea ecx, [esp + 0x2c]
call fcn.004031f0
test ebx, ebx
je 0x405140
mov ecx, ebx
call fcn.00440470
push ebx
call fcn.0044ad0a
add esp, 4
cmp byte [esp + 0x17], 0
jne 0x405181
lea ecx, [esp + 0x60]
mov byte [esp + 0xf34], 4
call fcn.00404b90
lea ecx, [esp + 0x2c]
mov byte [esp + 0xf34], 3
call fcn.00404b90
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
inc edi
cmp edi, dword [esp + 0x20]
jl 0x405001
jmp 0x4051ff
push 0x200
call fcn.0044b473
lea ecx, [esp + 0x504]
mov esi, eax
mov edx, ecx
add esp, 4
sub esi, edx
jmp 0x4051a0
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x4051a0
push 0xffffffffffffffff
push 1
push eax
lea ecx, [esp + 0x9c]
call fcn.004075d0
lea eax, [esp + 0x500]
push eax
push str.__Other_INF___s__n
call fcn.0043e2c0
add esp, 8
lea ecx, [esp + 0x60]
mov byte [esp + 0xf34], 4
call fcn.00404b90
lea ecx, [esp + 0x2c]
mov byte [esp + 0xf34], 3
call fcn.00404b90
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 0x404fcf
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x78]
call fcn.004031f0
lea ecx, [esp + 0x48]
call fcn.004031f0
push ebx
mov ecx, ebp
call fcn.00403030
mov eax, dword [esp + 0x94]
test eax, eax
jle 0x4053f1
mov ebx, dword [esp + 0x90]
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
push eax
push str.__Other_INF___s__n
call fcn.0043e2c0
push 0x4fc8
call fcn.0044ad7f
add esp, 0xc
mov dword [esp + 0x44], eax
mov byte [esp + 0xf34], 7
test eax, eax
je 0x40528f
mov ecx, dword [ebx]
push 0
push ecx
mov ecx, eax
call fcn.0043f710
mov esi, eax
jmp 0x405291
xor esi, esi
mov ecx, esi
mov byte [esp + 0xf34], 3
call fcn.0043eae0
mov edi, eax
test esi, esi
je 0x4052b6
mov ecx, esi
call fcn.00440470
push esi
call fcn.0044ad0a
add esp, 4
mov byte [esp + 0x17], 1
test edi, edi
je 0x4053d9
lea ecx, [esp + 0x2c]
call fcn.004031d0
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.00403290
mov edi, dword [esp + 0x30]
xor esi, esi
test edi, edi
jle 0x4053b8
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.0044ac90
mov eax, dword [ebp + esi*8]
lea ecx, [eax + 0x860]
add esp, 0xc
test ecx, ecx
je 0x40534f
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 0x405340
cmp word [esp + 0x2f8], 0
je 0x4053ab
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.0044b362
add esp, 0x18
test eax, eax
jne 0x4053ab
mov byte [esp + 0x17], al
inc esi
cmp esi, edi
jl 0x405300
mov ebp, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
call fcn.004031f0
lea ecx, [esp + 0x2c]
mov byte [esp + 0xf34], 3
call fcn.00404b90
cmp byte [esp + 0x17], 0
je 0x4053e3
mov eax, dword [ebx]
push eax
mov ecx, ebp
call fcn.00403030
add ebx, 8
sub dword [esp + 0x18], 1
jne 0x405255
lea ecx, [esp + 0x90]
call fcn.004031f0
lea ecx, [esp + 0x48]
mov byte [esp + 0xf34], 2
call fcn.00404b90
lea ecx, [esp + 0x78]
mov byte [esp + 0xf34], 1
call fcn.00404b90
lea ecx, [esp + 0x90]
mov dword [esp + 0xf34], 0xffffffff
call fcn.00404b90
mov esi, dword [esp + 0x24]
jmp 0x405455
mov ecx, dword [ebp + 4]
push ebx
call fcn.00442ba0
jmp 0x405455
push ebx
push str.File_does_not_exist:___s__Do_nothing_n
call fcn.0043e2c0
add esp, 8
inc esi
cmp esi, dword [ebp + 0x444]
mov dword [esp + 0x24], esi
jl 0x404e62
push 0
push 0x104
lea ecx, [esp + 0x710]
push ecx
mov ecx, dword [ebp + 4]
call fcn.00443190
push str.Removing_Image_FOLDERS__n
call fcn.0043e2c0
xor ebx, ebx
add esp, 4
cmp dword [ebp + 0x45c], ebx
jle 0x4055d1
mov edx, dword [ebp + 0x458]
mov esi, dword [edx + ebx*8]
push esi
push str.____FOLDER___s__n
call fcn.0043e2c0
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 0x4054c0
lea eax, [esp + 0x708]
push eax
lea ecx, [esp + 0x2fc]
push ecx
xor edi, edi
call fcn.0044b362
add esp, 8
test eax, eax
je 0x4055c4
lea eax, [esp + 0x2f8]
lea edx, [eax + 2]
jmp 0x405500
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405500
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [esp + 0x708]
lea esi, [eax + 2]
jmp 0x405520
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405520
sub eax, esi
sar eax, 1
cmp edx, eax
jb 0x4055c4
lea edx, [esp + 0x2f8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40556e
lea eax, [esp + 0x2f8]
push eax
push str.___Not_empty_wszFolder__s__n
call fcn.0043e2c0
add esp, 8
lea ecx, [esp + 0x2f8]
push ecx
mov ecx, dword [ebp + 4]
call fcn.00442c60
lea edx, [esp + 0x2f8]
push 0x5c
push edx
call fcn.0044b43c
add esp, 8
test eax, eax
je 0x4055c4
lea edx, [esp + 0x2f8]
push edx
xor ecx, ecx
push str.___Next_FOLDER___s__n
mov word [eax], cx
call fcn.0043e2c0
inc edi
add esp, 8
cmp edi, 0xa
je 0x4055c4
lea eax, [esp + 0x708]
push eax
lea ecx, [esp + 0x2fc]
push ecx
call fcn.0044b362
add esp, 8
test eax, eax
jne 0x4054f1
inc ebx
cmp ebx, dword [ebp + 0x45c]
jl 0x405498
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.0044ac80
add esp, 0xf24
ret 4