Function at 0x409690
Capabilities:
Copy file
Delete file
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1510
call fcn.00407f60
mov eax, dword [0x410020]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x1510], ecx
mov word [ebp - 0xea8], 0
push 0x206
push 0
lea eax, [ebp - 0xea6]
push eax
call fcn.004010a0
add esp, 0xc
mov word [ebp - 0x678], 0
push 0x206
push 0
lea ecx, [ebp - 0x676]
push ecx
call fcn.004010a0
add esp, 0xc
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x150c], 1
mov dword [ebp - 0x218], 1
mov word [ebp - 0xc98], 0
push 0x206
push 0
lea edx, [ebp - 0xc96]
push edx
call fcn.004010a0
add esp, 0xc
mov word [ebp - 0xa88], 0
push 0x206
push 0
lea eax, [ebp - 0xa86]
push eax
call fcn.004010a0
add esp, 0xc
mov word [ebp - 0x10b4], 0
xor ecx, ecx
mov dword [ebp - 0x10b2], ecx
mov word [ebp - 0x1508], 0
push 0x1fe
push 0
lea edx, [ebp - 0x1506]
push edx
call fcn.004010a0
add esp, 0xc
mov word [ebp - 0x208], 0
push 0x1fe
push 0
lea eax, [ebp - 0x206]
push eax
call fcn.004010a0
add esp, 0xc
mov word [ebp - 0x10a8], 0
push 0x1fe
push 0
lea ecx, [ebp - 0x10a6]
push ecx
call fcn.004010a0
add esp, 0xc
cmp dword [ebp + 8], 0
jne 0x4097cd
push 4
mov ecx, dword [ebp - 0x1510]
call fcn.00408190
jmp 0x409d4a
push str.DIFxAPI
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0xa90], eax
cmp dword [ebp - 0xa90], 0
jne 0x4097f9
push 2
mov ecx, dword [ebp - 0x1510]
call fcn.00408190
jmp 0x409d4a
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x1510]
call fcn.00408d00
test eax, eax
jne 0x409813
xor eax, eax
jmp 0x409d4a
push str.DriverPackageUninstallW
mov eax, dword [ebp - 0xa90]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x46c], eax
cmp dword [ebp - 0x46c], 0
jne 0x409855
push 3
mov ecx, dword [ebp - 0x1510]
call fcn.00408190
mov ecx, dword [ebp - 0xa90]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x409d4a
push 0x104
lea edx, [ebp - 0xea8]
push edx
mov eax, dword [ebp - 0x1510]
mov ecx, dword [eax + 0x10]
call ecx
test eax, eax
jne 0x409885
push 0x102
mov ecx, dword [ebp - 0x1510]
call fcn.00408190
jmp 0x409d4a
push 0x40eb1c
lea edx, [ebp - 0xea8]
push edx
call fcn.0040111a
add esp, 8
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xea8]
push ecx
call fcn.0040111a
add esp, 8
lea edx, [ebp - 0x10a8]
push edx
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x1508]
push ecx
lea edx, [ebp - 0x10b4]
push edx
lea eax, [ebp - 0xea8]
push eax
call fcn.0040197c
add esp, 0x14
push 0
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0x1508]
push edx
lea eax, [ebp - 0x10b4]
push eax
lea ecx, [ebp - 0xea8]
push ecx
call fcn.004019c6
add esp, 0x14
push 0x40eb44
lea edx, [ebp - 0xea8]
push edx
call fcn.0040111a
add esp, 8
lea eax, [ebp - 0x468]
push eax
lea ecx, [ebp - 0xea8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa8c], eax
jmp 0x409947
lea edx, [ebp - 0x468]
push edx
mov eax, dword [ebp - 0xa8c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x150c], eax
cmp dword [ebp - 0xa8c], 0xffffffff
je 0x409be3
cmp dword [ebp - 0x150c], 0
je 0x409be3
push 0x104
lea ecx, [ebp - 0xc98]
push ecx
mov edx, dword [ebp - 0x1510]
mov eax, dword [edx + 0x10]
call eax
push 0x40eb48
lea ecx, [ebp - 0xc98]
push ecx
call fcn.0040111a
add esp, 8
lea edx, [ebp - 0x43c]
push edx
lea eax, [ebp - 0xc98]
push eax
call fcn.0040111a
add esp, 8
push 0x40eb70
lea ecx, [ebp - 0xc98]
push ecx
call fcn.0040111a
add esp, 8
mov dword [ebp - 0x218], 1
lea edx, [ebp - 0x1308]
push edx
lea eax, [ebp - 0xc98]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xc9c], eax
jmp 0x4099f6
lea ecx, [ebp - 0x1308]
push ecx
mov edx, dword [ebp - 0xc9c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0xc9c], 0xffffffff
je 0x409aeb
cmp dword [ebp - 0x218], 0
je 0x409aeb
push 0x104
lea eax, [ebp - 0xa88]
push eax
mov ecx, dword [ebp - 0x1510]
mov edx, dword [ecx + 0x10]
call edx
push 0x40eb78
lea eax, [ebp - 0xa88]
push eax
call fcn.0040111a
add esp, 8
lea ecx, [ebp - 0x43c]
push ecx
lea edx, [ebp - 0xa88]
push edx
call fcn.0040111a
add esp, 8
push 0x40eba0
lea eax, [ebp - 0xa88]
push eax
call fcn.0040111a
add esp, 8
lea ecx, [ebp - 0x12dc]
push ecx
lea edx, [ebp - 0xa88]
push edx
call fcn.0040111a
add esp, 8
lea eax, [ebp - 0x678]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x678]
push ecx
call fcn.00401160
add esp, 4
mov word [ebp + eax*2 - 0x67a], 0
push 0x40eba4
lea edx, [ebp - 0x678]
push edx
call fcn.0040111a
add esp, 8
lea eax, [ebp - 0x12dc]
push eax
lea ecx, [ebp - 0x678]
push ecx
call fcn.0040111a
add esp, 8
push 0
lea edx, [ebp - 0x678]
push edx
lea eax, [ebp - 0xa88]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x4099dc
lea ecx, [ebp - 0x678]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [ebp - 0x678]
push edx
call fcn.00401160
add esp, 4
mov word [ebp + eax*2 - 0x67a], 0
push 0x40eba8
lea eax, [ebp - 0x678]
push eax
call fcn.0040111a
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x678]
push edx
call fcn.0040111a
add esp, 8
lea eax, [ebp - 0x210]
push eax
push 0
push 0x20
lea ecx, [ebp - 0x678]
push ecx
call dword [ebp - 0x46c]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 5
jne 0x409b88
mov edx, dword [ebp - 0xa90]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x504
mov ecx, dword [ebp - 0x1510]
call fcn.00408190
jmp 0x409d4a
cmp dword [ebp - 0x214], 0xe0000235
jne 0x409bb8
mov eax, dword [ebp - 0xa90]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x505
mov ecx, dword [ebp - 0x1510]
call fcn.00408190
jmp 0x409d4a
cmp dword [ebp - 0x214], 0x52
jne 0x409bc3
jmp 0x409bde
cmp dword [ebp - 0x214], 0
je 0x409bde
mov ecx, dword [ebp - 0x214]
push ecx
mov ecx, dword [ebp - 0x1510]
call fcn.00408190
jmp 0x40992d
mov edx, dword [ebp - 0xa90]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x1510]
mov ecx, dword [eax + 8]
or ecx, dword [ebp - 0x210]
mov edx, dword [ebp - 0x1510]
mov dword [edx + 8], ecx
mov dword [ebp - 0x20c], 0
push 0x40ebac
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x10ac], eax
push str.SetupUninstallOEMInfW
mov eax, dword [ebp - 0x10ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20c], eax
mov word [ebp - 0x880], 0
push 0x206
push 0
lea ecx, [ebp - 0x87e]
push ecx
call fcn.004010a0
add esp, 0xc
lea edx, [ebp - 0xea8]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1510]
call fcn.004083d0
test eax, eax
je 0x409d3b
cmp dword [ebp - 0x20c], 0
je 0x409ce9
lea ecx, [ebp - 0x10a8]
push ecx
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0x1508]
push eax
lea ecx, [ebp - 0x10b4]
push ecx
lea edx, [ebp - 0xea8]
push edx
call fcn.0040197c
add esp, 0x14
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x880]
push ecx
call fcn.0040111a
add esp, 8
lea edx, [ebp - 0x10a8]
push edx
lea eax, [ebp - 0x880]
push eax
call fcn.0040111a
add esp, 8
push 0
push 1
lea ecx, [ebp - 0x880]
push ecx
call dword [ebp - 0x20c]
lea edx, [ebp - 0xea8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x40ebe0
lea eax, [ebp - 0xea8]
push eax
call fcn.00401080
add esp, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov word [ecx], 0
push 0x40ebec
lea edx, [ebp - 0xea8]
push edx
call fcn.0040111a
add esp, 8
lea eax, [ebp - 0xea8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x409c5a
mov ecx, dword [ebp - 0x1510]
xor eax, eax
cmp dword [ecx + 0xc], 0
sete al
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004014e5
mov esp, ebp
pop ebp
ret 4