Function at 0x405e00
Capabilities:
Check if file exists
Copy file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450a48
mov eax, dword fs:[0]
push eax
sub esp, 0x364
mov eax, dword [0x461194]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x54]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x35c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x370], eax
mov dword [ebp - 0x368], ecx
mov dword [ebp - 0x360], edx
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x358], eax
mov dword [ebp - 0xd0], 7
mov dword [ebp - 0xd4], eax
mov word [ebp - 0xe4], ax
push 1
mov byte [ebp - 4], 2
call fcn.00406b50
cmp eax, 0xffffffff
je 0x405ebb
lea ecx, [eax + 1]
push ebx
xor edx, edx
lea esi, [ebp - 0x78]
call fcn.00404dc0
push 0xffffffffffffffff
xor edi, edi
push edi
push eax
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 3
call fcn.004030b0
cmp dword [ebp - 0x60], 8
jb 0x405ecd
mov ecx, dword [ebp - 0x74]
push ecx
call fcn.00431205
add esp, 4
jmp 0x405ecd
push 0xffffffffffffffff
push 0
push ebx
lea eax, [ebp - 0xe8]
call fcn.004030b0
xor edi, edi
mov esi, 8
cmp dword [ebx + 0x18], esi
jb 0x405edc
mov ebx, dword [ebx + 4]
jmp 0x405edf
add ebx, 4
lea edx, [ebp - 0x354]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, 7
xor ecx, ecx
mov dword [ebp - 0x364], eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], edi
mov word [ebp - 0x58], cx
xor edx, edx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
mov word [ebp - 0x3c], dx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb8], edi
mov word [ebp - 0xc8], cx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], edi
mov word [ebp - 0x90], dx
mov byte [ebp - 4], bl
cmp eax, 0xffffffff
je 0x4061f5
lea esp, [esp]
mov eax, dword [ebp - 0x370]
push 0xffffffffffffffff
push edi
push eax
lea eax, [ebp - 0x40]
call fcn.004030b0
mov ecx, dword [ebp - 0x35c]
mov eax, dword [ecx + 0x58]
cmp eax, edi
jne 0x405f8c
lea eax, [ebp - 0x328]
lea edx, [eax + 2]
jmp 0x405f70
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x405f70
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x328]
push edx
jmp 0x40602d
cmp eax, 1
jne 0x406035
mov eax, dword [ebp - 0x2c]
lea esi, [eax - 1]
cmp esi, eax
jbe 0x405fa4
call fcn.004311f5
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x3c]
mov eax, edx
cmp ecx, 8
jae 0x405fb4
lea eax, [ebp - 0x3c]
cmp word [eax + esi*2], 0x5c
jne 0x405fdd
lea eax, [ebp - 0x328]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x405fc4
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x328]
push eax
jmp 0x40602d
mov eax, dword [ebp - 0x35c]
cmp dword [eax + 0x58], 1
jne 0x406035
mov eax, edx
cmp ecx, 8
jae 0x405ff3
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x406035
push 1
push 0x45b61c
lea eax, [ebp - 0x40]
call fcn.00406a20
lea eax, [ebp - 0x328]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406016
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x328]
push ecx
lea eax, [ebp - 0x40]
call fcn.00406a20
push 0xffffffffffffffff
push edi
lea edx, [ebp - 0xe8]
push edx
lea eax, [ebp - 0x94]
call fcn.004030b0
lea eax, [ebp - 0x328]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406053
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x94]
call fcn.00406a20
mov ecx, 0x45b658
lea eax, [ebp - 0x328]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4060a6
cmp dx, di
je 0x4060a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4060a6
add eax, 4
add ecx, 4
cmp dx, di
jne 0x406080
xor eax, eax
jmp 0x4060ab
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x4061c2
mov ecx, 0x45b65c
lea eax, [ebp - 0x328]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4060e6
cmp dx, di
je 0x4060e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4060e6
add eax, 4
add ecx, 4
cmp dx, di
jne 0x4060c0
xor eax, eax
jmp 0x4060eb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x4061c2
mov eax, dword [ebp - 0x90]
mov esi, 8
cmp dword [ebp - 0x7c], esi
jae 0x406109
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x406326
mov ebx, dword [ebp - 0x35c]
cmp dword [ebx + 0x70], edi
je 0x4061c2
push 4
push str..
lea eax, [ebp - 0x94]
call fcn.00406a20
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x28], esi
jae 0x406144
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40615f
mov ecx, dword [ebp - 0x3c]
cmp dword [ebp - 0x28], esi
jae 0x40615a
lea ecx, [ebp - 0x3c]
call fcn.0040a000
push 1
push 0x45b61c
lea eax, [ebp - 0x40]
call fcn.00406a20
mov ecx, dword [ebp - 0x360]
push ecx
sub esp, 0x20
lea ecx, [ebp + 0x34]
mov esi, esp
mov dword [ebp - 0x358], esp
call fcn.00404df0
sub esp, 0x20
mov byte [ebp - 4], 8
lea ecx, [ebp + 0x14]
mov esi, esp
mov dword [ebp - 0x36c], esp
call fcn.00404df0
mov edx, dword [ebp - 0x368]
push edx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x94]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 7
call fcn.00405e00
mov dword [ebp - 0x358], eax
cmp dword [ebp - 0x358], 2
je 0x4061e7
mov edx, dword [ebp - 0x364]
lea ecx, [ebp - 0x354]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405f40
mov eax, dword [ebp - 0x364]
mov esi, 8
lea ebx, [esi - 1]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x7c], esi
jb 0x406210
mov eax, dword [ebp - 0x90]
push eax
call fcn.00431205
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], edi
mov word [ebp - 0x90], cx
cmp dword [ebp - 0xb4], esi
jb 0x406236
mov edx, dword [ebp - 0xc8]
push edx
call fcn.00431205
add esp, 4
xor eax, eax
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb8], edi
mov word [ebp - 0xc8], ax
cmp dword [ebp - 0x28], esi
jb 0x40625c
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00431205
add esp, 4
xor edx, edx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
mov word [ebp - 0x3c], dx
cmp dword [ebp - 0x44], esi
jb 0x406279
mov eax, dword [ebp - 0x58]
push eax
call fcn.00431205
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], edi
mov word [ebp - 0x58], cx
cmp dword [ebp - 0xd0], esi
jb 0x40629c
mov edx, dword [ebp - 0xe4]
push edx
call fcn.00431205
add esp, 4
xor eax, eax
mov word [ebp - 0xe4], ax
mov byte [ebp - 4], al
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0xd4], edi
cmp eax, edi
je 0x4062d9
test al, 1
jne 0x4062d6
and eax, 0xfffffffe
mov eax, dword [eax]
cmp eax, edi
je 0x4062d6
lea ecx, [ebp + 0x1c]
push 2
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov dword [ebp + 0x14], edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x34]
cmp eax, edi
je 0x406302
test al, 1
jne 0x406302
and eax, 0xfffffffe
mov eax, dword [eax]
cmp eax, edi
je 0x406302
lea ecx, [ebp + 0x3c]
push 2
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov eax, dword [ebp - 0x358]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00430e4c
mov esp, ebp
pop ebp
ret 0x50
push esi
mov eax, str.Copying
lea esi, [ebp - 0xcc]
call fcn.00402fb0
lea eax, [ebp - 0x328]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406340
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x328]
push edx
lea eax, [ebp - 0xcc]
call fcn.00406a20
mov eax, dword [ebp - 0xc8]
mov ebx, 8
cmp dword [ebp - 0xb4], ebx
jae 0x40637b
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp + 0x14]
call fcn.00408490
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x5c]
call fcn.004030b0
lea eax, [ebp - 0x328]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4063a0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x328]
push ecx
lea eax, [ebp - 0x5c]
call fcn.00406a20
mov eax, dword [ebp - 0x35c]
cmp dword [eax + 0x64], edi
je 0x40649a
mov edx, dword [eax + 0x5c]
mov esi, dword [ebp - 0x360]
push edx
mov ecx, esi
lea edx, [ebp - 0x5c]
call fcn.0040a540
add esp, 4
sub eax, edi
je 0x40649a
sub eax, 1
je 0x406426
sub eax, 1
jne 0x4061c2
mov eax, 0x45b7bc
lea ecx, [ebp - 0x78]
call fcn.00404d80
lea eax, [ebp - 0x78]
push eax
lea edx, [ebp - 0x328]
mov byte [ebp - 4], 0xa
call fcn.004069f0
lea ecx, [ebp - 0x78]
push ecx
mov edx, 0x45b7c0
jmp 0x40644f
mov eax, str.It_has_not_been_possible_to_validate_the_integrity_of_
lea ecx, [ebp - 0x78]
call fcn.00404d80
lea edx, [ebp - 0x78]
push edx
lea edx, [ebp - 0x328]
mov byte [ebp - 4], 9
call fcn.004069f0
lea eax, [ebp - 0x78]
push eax
mov edx, str._needed_to_install_or_update_a_plugin.__Do_you_want_to_copy_this_file_anyway__not_recommended__
call fcn.004069f0
mov ecx, dword [ebp - 0x74]
cmp dword [ebp - 0x60], ebx
jae 0x40645f
lea ecx, [ebp - 0x74]
mov eax, dword [esi + 4]
push 0x34
push 0x45b260
push ecx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x40647a
mov bl, 1
jmp 0x406486
mov dword [ebp - 0x358], 2
xor bl, bl
lea esi, [ebp - 0x78]
mov byte [ebp - 4], 7
call fcn.00402110
test bl, bl
je 0x4061c2
mov ecx, dword [ebp - 0x35c]
cmp dword [ecx + 0x68], edi
je 0x406627
cmp dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x3c]
jae 0x4064b5
lea eax, [ebp - 0x3c]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
test eax, eax
je 0x406627
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x40]
xor edx, edx
push eax
mov esi, 7
lea eax, [ebp - 0x104]
mov dword [ebp - 0xec], esi
mov dword [ebp - 0xf0], edi
mov word [ebp - 0x100], dx
call fcn.004030b0
lea ecx, [ebp - 0x104]
push ecx
mov edx, str..backup
mov byte [ebp - 4], 0xb
call fcn.004069f0
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x104]
xor edx, edx
push eax
lea eax, [ebp - 0xb0]
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x9c], edi
mov word [ebp - 0xac], dx
call fcn.004030b0
mov byte [ebp - 4], 0xc
mov esi, 1
lea ebx, [ebx]
cmp dword [ebp - 0x98], 8
mov eax, dword [ebp - 0xac]
jae 0x406555
lea eax, [ebp - 0xac]
push eax
call ebx
test eax, eax
je 0x4065b2
cmp esi, 0x1f4
jge 0x4065ba
push 0xa
push 0xa
lea ecx, [ebp - 0x24]
push ecx
inc esi
push esi
call fcn.00431808
add esp, 0x10
push 0xffffffffffffffff
push edi
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0xb0]
call fcn.004030b0
lea eax, [ebp - 0x24]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406591
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xb0]
call fcn.00406a20
jmp 0x406540
cmp esi, 0x1f4
jl 0x4065e0
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x104]
push ecx
lea eax, [ebp - 0xb0]
call fcn.004030b0
lea edx, [ebp - 0xb0]
push edx
mov edx, str._too_many_backups
call fcn.004069f0
mov ecx, dword [ebp - 0xac]
mov eax, 8
cmp dword [ebp - 0x98], eax
jae 0x4065f9
lea ecx, [ebp - 0xac]
cmp dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x3c]
jae 0x406604
lea eax, [ebp - 0x3c]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea esi, [ebp - 0xb0]
call fcn.00402110
lea esi, [ebp - 0x104]
mov byte [ebp - 4], 7
call fcn.00402110
mov ecx, dword [ebp - 0x3c]
mov eax, 8
cmp dword [ebp - 0x28], eax
jae 0x406637
lea ecx, [ebp - 0x3c]
cmp dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x58]
jae 0x406642
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 0x35c]
mov edx, dword [edx + 0x60]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4061c2
push 0x94
mov dword [ebp - 0x358], 1
call fcn.004312a8
add esp, 4
mov dword [ebp - 0x36c], eax
mov byte [ebp - 4], 0xd
cmp eax, edi
je 0x406690
push str.copy
push eax
call fcn.00410a80
mov esi, eax
jmp 0x406692
xor esi, esi
mov byte [ebp - 4], 7
cmp dword [ebp - 0x44], 8
mov eax, dword [ebp - 0x58]
jae 0x4066a2
lea eax, [ebp - 0x58]
push eax
mov ecx, str.from
mov edx, esi
call fcn.00410c30
mov ebx, dword [ebp - 0x35c]
mov eax, dword [ebx + 0x58]
cmp eax, edi
jne 0x4066d6
cmp dword [ebx + 0x38], 8
jb 0x4066cc
mov eax, dword [ebx + 0x24]
mov ecx, 0x45b3a8
jmp 0x4066ee
lea eax, [ebx + 0x24]
mov ecx, 0x45b3a8
jmp 0x4066ee
cmp eax, 1
jne 0x4066f6
cmp dword [ebx + 0x54], 8
jb 0x4066e6
mov eax, dword [ebx + 0x40]
jmp 0x4066e9
lea eax, [ebx + 0x40]
mov ecx, str.toFile
push eax
mov edx, esi
call fcn.00410c30
push str.true
mov ecx, str.replace
mov edx, esi
call fcn.00410c30
cmp dword [ebx + 0x68], edi
je 0x40671d
push str.true
mov ecx, str.backup
mov edx, esi
call fcn.00410c30
mov ecx, dword [ebp - 0x368]
mov dword [esi + 0xc], ecx
mov eax, dword [ecx + 0x18]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edi
mov eax, dword [ecx + 0x18]
cmp eax, edi
je 0x406741
mov dword [eax + 0x3c], esi
mov dword [ecx + 0x18], esi
jmp 0x4061cb
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x18], esi
jmp 0x4061cb