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

Disassembly:
sub esp, 0xce4
mov eax, dword [0x40f020]
xor eax, esp
mov dword [esp + 0xcdc], eax
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x206
lea eax, [esp + 0x8de]
mov edi, ecx
mov esi, edx
push ebp
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], esi
mov word [esp + 0x8e4], bp
call fcn.00407250
add esp, 0xc
push 0x206
lea ecx, [esp + 0x4ce]
push ebp
push ecx
mov word [esp + 0x4d4], bp
call fcn.00407250
add esp, 0xc
push 0x206
lea edx, [esp + 0xae6]
push ebp
push edx
mov dword [esp + 0x28], ebp
lea ebx, [ebp + 1]
mov word [esp + 0xaec], bp
call fcn.00407250
add esp, 0xc
push 0x206
lea eax, [esp + 0x6d6]
push ebp
push eax
mov word [esp + 0x6dc], bp
call fcn.00407250
add esp, 0xc
cmp esi, ebp
jne 0x402317
mov dword [edi + 0xc], 4
xor eax, eax
jmp 0x4027f0
push str.DIFxAPI
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebp
mov dword [esp + 0x14], eax
jne 0x402338
mov dword [edi + 0xc], 2
xor eax, eax
jmp 0x4027f0
push esi
mov ecx, edi
call fcn.00402f80
test eax, eax
je 0x402310
mov esi, dword [esp + 0x14]
push str.DriverPackageUninstallW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
mov dword [esp + 0x24], eax
jne 0x402371
push esi
mov dword [edi + 0xc], 3
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x4027f0
mov edx, dword [edi + 0x10]
push 0x104
lea ecx, [esp + 0x8dc]
push ecx
call edx
test eax, eax
jne 0x402393
mov dword [edi + 0xc], 0x102
jmp 0x4027f0
lea edi, [esp + 0x8d8]
add edi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x4023a0
mov eax, dword [esp + 0x18]
mov ecx, 0x13
mov esi, str.System32DriverStoreFileRepository_
rep movsd dword es:[edi], dword [esi]
mov edx, eax
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4023c0
lea edi, [esp + 0x8d8]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4023e0
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x4023e0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x8d8]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x402406
mov eax, dword [0x40dbd4]
lea ecx, [esp + 0x278]
push ecx
lea edx, [esp + 0x8dc]
push edx
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
je 0x4027d5
lea esp, [esp]
cmp ebx, ebp
je 0x4027d5
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x10]
push 0x104
lea eax, [esp + 0xae4]
push eax
call edx
lea edi, [esp + 0xae0]
add edi, 0xfffffffe
jmp 0x402470
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x402470
mov ecx, 0x13
mov esi, str.System32DriverStoreFileRepository_
lea eax, [esp + 0x2a4]
rep movsd dword es:[edi], dword [esi]
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x402491
lea edi, [esp + 0xae0]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4024b0
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x4024b0
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 + 0xae0]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x4024d6
mov ecx, dword [0x40da80]
mov dx, word [0x40da84]
mov dword [eax], ecx
mov word [eax + 4], dx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0xae4]
push ecx
mov esi, 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4026c4
cmp esi, ebp
je 0x4026c4
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x10]
push 0x104
lea edx, [esp + 0x6d4]
push edx
call ecx
lea edi, [esp + 0x6d0]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x402540
mov ecx, 0x13
mov esi, str.System32DriverStoreFileRepository_
lea eax, [esp + 0x2a4]
rep movsd dword es:[edi], dword [esi]
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x402561
lea edi, [esp + 0x6d0]
sub eax, edx
add edi, 0xfffffffe
jmp 0x402580
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x402580
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x6d0]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x4025a6
mov edx, dword [0x40da24]
lea eax, [esp + 0x54]
mov dword [edi], edx
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4025c0
lea edi, [esp + 0x6d0]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4025e0
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x4025e0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x4c8]
push eax
and ecx, 3
push 0x104
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x4c8]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x402620
sub eax, edx
sar eax, 1
lea edi, [esp + 0x4c8]
mov word [esp + eax*2 + 0x4c6], bp
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x402641
mov ecx, dword [0x40da24]
lea eax, [esp + 0x54]
mov dword [edi], ecx
mov esi, eax
jmp 0x402660
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x402660
lea edi, [esp + 0x4c8]
sub eax, esi
add edi, 0xfffffffe
jmp 0x402680
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x402680
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push ebp
mov ecx, eax
lea edx, [esp + 0x4cc]
push edx
lea eax, [esp + 0x6d8]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esp + 0x28]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
jmp 0x402518
lea edx, [esp + 0x4c8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x4c8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4026e1
sub eax, edx
sar eax, 1
lea edi, [esp + 0x4c8]
mov word [esp + eax*2 + 0x4c6], bp
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x402702
mov eax, dword [0x40da24]
mov dword [edi], eax
mov eax, dword [esp + 0x18]
mov edx, eax
jmp 0x402720
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x402720
lea edi, [esp + 0x4c8]
sub eax, edx
add edi, 0xfffffffe
jmp 0x402740
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x402740
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
push ebp
push 0x20
lea edx, [esp + 0x4d4]
push edx
call dword [esp + 0x34]
cmp eax, 5
je 0x4027a1
cmp eax, 0xe0000235
je 0x4027bb
cmp eax, ebp
je 0x402787
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x278]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
jmp 0x402440
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [esp + 0x10]
mov dword [edx + 0xc], 0x504
xor eax, eax
jmp 0x4027f0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0xc], 0x505
xor eax, eax
jmp 0x4027f0
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
or dword [eax + 8], ecx
mov eax, 1
mov ecx, dword [esp + 0xcec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004034bc
add esp, 0xce4
ret