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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420cd8
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x42e024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push str.CStealthManager::checkAndUpdateNewBinary
push str._s_enter_
push str.stealth_manager
call fcn.00402620
push 0x423638
lea edx, [ebx + 0x58]
lea ecx, [ebp - 0x28]
call fcn.00404f90
push 0x42ea70
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00406350
push 0x423638
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00404f40
add esp, 0x18
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x412fe1
inc eax
push eax
push dword [ebp - 0x58]
call fcn.00404770
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x413009
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404770
push str.temp_
lea edx, [ebp - 0x70]
mov dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 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 0x413a74
test al, 0x10
je 0x413a74
push 0
push str.flag_delete_:__d
push str.stealth_manager
call fcn.00402620
push 0x42eba8
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x130]
call fcn.00406380
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x160]
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 0x41316b
push 0x42eba8
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x28]
call fcn.00406380
add esp, 4
push 0
sub esp, 0x18
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x164], 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 0x4130f6
mov eax, dword [ecx]
jmp 0x4130f8
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 0x41313a
mov eax, dword [ecx]
jmp 0x41313c
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.00404370
mov byte [ebp - 4], 7
call fcn.00413e00
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x41316b
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404770
push 0x42ea10
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x118]
call fcn.00406380
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x160]
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 0x41326a
push 0x42ea10
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x28]
call fcn.00406380
add esp, 4
push 0
sub esp, 0x18
mov byte [ebp - 4], 0xa
mov ecx, esp
mov dword [ebp - 0x168], 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 0x4131f5
mov eax, dword [ecx]
jmp 0x4131f7
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 0x413239
mov eax, dword [ecx]
jmp 0x41323b
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.00404370
mov byte [ebp - 4], 0xa
call fcn.00413e00
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x41326a
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404770
push 0x42ead0
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x100]
call fcn.00406380
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x160]
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 0x413369
push 0x42ead0
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x28]
call fcn.00406380
add esp, 4
push 0
sub esp, 0x18
mov byte [ebp - 4], 0xd
mov ecx, esp
mov dword [ebp - 0x168], 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 0x4132f4
mov eax, dword [ecx]
jmp 0x4132f6
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 0x413338
mov eax, dword [ecx]
jmp 0x41333a
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.00404370
mov byte [ebp - 4], 0xd
call fcn.00413e00
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x413369
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404770
push 0x42eb18
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0xe8]
call fcn.00406380
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x160]
cmp dword [ebp - 0xd4], 0x10
lea eax, [ebp - 0xe8]
push ecx
cmovae eax, dword [ebp - 0xe8]
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x413468
push 0x42eb18
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x28]
call fcn.00406380
add esp, 4
push 0
sub esp, 0x18
mov byte [ebp - 4], 0x10
mov ecx, esp
mov dword [ebp - 0x168], 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 0x4133f3
mov eax, dword [ecx]
jmp 0x4133f5
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0xe8]
push 0
push eax
call fcn.00404370
sub esp, 0x18
mov byte [ebp - 4], 0x11
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 0x413437
mov eax, dword [ecx]
jmp 0x413439
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.00404370
mov byte [ebp - 4], 0x10
call fcn.00413e00
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x413468
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404770
push 0x42ea40
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0xd0]
call fcn.00406380
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x160]
cmp dword [ebp - 0xbc], 0x10
lea eax, [ebp - 0xd0]
push ecx
cmovae eax, dword [ebp - 0xd0]
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x413567
push 0x42ea40
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x28]
call fcn.00406380
add esp, 4
push 0
sub esp, 0x18
mov byte [ebp - 4], 0x13
mov ecx, esp
mov dword [ebp - 0x168], 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 0x4134f2
mov eax, dword [ecx]
jmp 0x4134f4
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0xd0]
push 0
push eax
call fcn.00404370
sub esp, 0x18
mov byte [ebp - 4], 0x14
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 0x413536
mov eax, dword [ecx]
jmp 0x413538
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.00404370
mov byte [ebp - 4], 0x13
call fcn.00413e00
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x413567
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404770
push 0x42e9b0
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0xb8]
call fcn.00406380
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x160]
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 0x413666
push 0x42e9b0
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x28]
call fcn.00406380
add esp, 4
push 0
sub esp, 0x18
mov byte [ebp - 4], 0x16
mov ecx, esp
mov dword [ebp - 0x168], 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 0x4135f1
mov eax, dword [ecx]
jmp 0x4135f3
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0xb8]
push 0
push eax
call fcn.00404370
sub esp, 0x18
mov byte [ebp - 4], 0x17
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 0x413635
mov eax, dword [ecx]
jmp 0x413637
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.00404370
mov byte [ebp - 4], 0x16
call fcn.00413e00
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x413666
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404770
push 0x42ea58
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x88]
call fcn.00406380
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x160]
cmp dword [ebp - 0x74], 0x10
lea eax, [ebp - 0x88]
push ecx
cmovae eax, dword [ebp - 0x88]
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x41370e
push 0x42ea58
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x28]
call fcn.00406380
add esp, 4
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x88]
push 0
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x74], 0x10
push ecx
cmovae eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
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], 0x18
add esp, 0xc
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x41370e
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404770
cmp byte [ebx + 0xc], 0
je 0x4137c3
push 0x42eb90
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.00406380
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x160]
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 0x4137ad
push 0x42eb90
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x28]
call fcn.00406380
add esp, 4
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x58]
push 0
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x44], 0x10
push ecx
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
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 - 0x14]
add esp, 0xc
cmp eax, 0x10
jb 0x4137ad
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404770
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x4137c3
inc eax
push eax
push dword [ebp - 0x58]
call fcn.00404770
push 0x42ea88
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0xa0]
call fcn.00406380
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x160]
cmp dword [ebp - 0x8c], 0x10
lea eax, [ebp - 0xa0]
push ecx
cmovae eax, dword [ebp - 0xa0]
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x4138ce
push 0x42ea88
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x148]
call fcn.00406380
add esp, 4
push 0
sub esp, 0x18
mov byte [ebp - 4], 0x1d
mov ecx, esp
mov dword [ebp - 0x168], 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 0x413850
mov eax, dword [ecx]
jmp 0x413852
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.00404370
sub esp, 0x18
mov byte [ebp - 4], 0x1e
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 0x413894
mov eax, dword [ecx]
jmp 0x413896
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x148]
push 0
push eax
call fcn.00404370
mov byte [ebp - 4], 0x1d
call fcn.00413e00
mov byte [ebp - 4], 0x1c
mov eax, dword [ebp - 0x134]
cmp eax, 0x10
jb 0x4138ce
inc eax
push eax
push dword [ebp - 0x148]
call fcn.00404770
push str.CStealthManager::checkAndUpdateNewBinary
push str._s_exit_
push str.stealth_manager
call fcn.00402620
mov eax, dword [ebp - 0x8c]
add esp, 0xc
cmp eax, 0x10
jb 0x4138fd
inc eax
push eax
push dword [ebp - 0xa0]
call fcn.00404770
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], 0
mov byte [ebp - 0xa0], 0
cmp eax, 0x10
jb 0x41392d
inc eax
push eax
push dword [ebp - 0x88]
call fcn.00404770
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
cmp eax, 0x10
jb 0x41395a
inc eax
push eax
push dword [ebp - 0xb8]
call fcn.00404770
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xa4], 0xf
mov dword [ebp - 0xa8], 0
mov byte [ebp - 0xb8], 0
cmp eax, 0x10
jb 0x41398d
inc eax
push eax
push dword [ebp - 0xd0]
call fcn.00404770
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xbc], 0xf
mov dword [ebp - 0xc0], 0
mov byte [ebp - 0xd0], 0
cmp eax, 0x10
jb 0x4139c0
inc eax
push eax
push dword [ebp - 0xe8]
call fcn.00404770
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xd4], 0xf
mov dword [ebp - 0xd8], 0
mov byte [ebp - 0xe8], 0
cmp eax, 0x10
jb 0x4139f3
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 0x413a26
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 0x413a59
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 0x413a86
inc eax
push eax
push dword [ebp - 0x40]
call fcn.00404770
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp eax, 0x10
jb 0x413aaa
inc eax
push eax
push dword [ebp - 0x70]
call fcn.00404770
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e02b
mov esp, ebp
pop ebp
ret