Function at 0x42fb70
Capabilities:
Check if file exists
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x512218
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x28]
lea edi, [esi + 0x28]
xor ebx, ebx
xor ebp, ebp
cmp dword [eax - 0xc], ebx
je 0x42fc08
cmp dword [esi + 0x8c], ebx
jne 0x42fedb
cmp dword [esi + 0x10], ebx
je 0x42fbef
mov ecx, dword [esi + 0x18]
cmp dword [ecx - 0xc], ebx
je 0x42fbef
mov ecx, esi
mov byte [0x54834d], bl
mov byte [0x54834c], bl
call fcn.0042ff10
mov ecx, esi
call fcn.00430480
mov ecx, esi
call fcn.00430aa0
mov eax, dword [esi + 0x18]
push ebx
push eax
call fcn.00417370
add esp, 8
mov eax, dword [edi]
push eax
add esi, 0x34
call fcn.00419430
cmp eax, ebx
jne 0x42fc1e
mov dword [0x544984], 0x3f5
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
lea edx, [esp + 0x18]
push 0x548884
push edx
mov ebx, edi
call fcn.00435bd0
push eax
lea eax, [esp + 0x20]
push eax
mov ebx, str.RootGenius.exe
mov dword [esp + 0x40], 0
call fcn.00418040
add esp, 0x10
mov bl, 2
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42fc70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
sub esp, 0x1c
mov eax, 0x51d464
mov ecx, esp
mov dword [esp + 0x40], esp
call fcn.00408b00
sub esp, 0x1c
mov byte [esp + 0x68], 3
mov eax, dword [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x58], esp
call fcn.00408b00
mov byte [esp + 0x68], bl
call fcn.00427560
add esp, 0x38
test al, al
jne 0x42fcc2
lea ecx, [esp + 0x14]
mov dword [0x544984], 0x3f8
call fcn.00406e40
jmp 0x42fc08
lea ecx, [esp + 0x24]
push edi
push ecx
mov ebx, 0x51d468
call fcn.00418040
mov esi, eax
lea edx, [esp + 0x28]
push 0x548884
push edx
mov ebx, edi
mov byte [esp + 0x40], 4
call fcn.00435bd0
push eax
lea eax, [esp + 0x30]
push eax
mov ebx, 0x51d480
mov byte [esp + 0x48], 5
call fcn.00418040
mov esi, dword [esi]
mov eax, dword [eax]
add esp, 0x18
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push eax
call esi
test eax, eax
lea ecx, [esp + 0x1c]
sete bl
call fcn.00406e40
lea ecx, [esp + 0x20]
call fcn.00406e40
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 2
call fcn.00406e40
test bl, bl
je 0x42fe1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x51d498
push 0x51d4b0
mov ecx, 0x548980
call fcn.004dfa90
add esp, 0xc
lea ecx, [esp + 0x24]
push edi
push ecx
mov ebx, 0x51d4d4
call fcn.00418040
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea ecx, [esp + 0x24]
sete bl
call fcn.00406e40
test bl, bl
jne 0x42feaf
lea edx, [esp + 0x1c]
push edi
push edx
mov ebx, 0x51d4ec
call fcn.00418040
mov ebp, eax
lea eax, [esp + 0x28]
push 0x548884
push eax
mov ebx, edi
mov byte [esp + 0x40], 6
call fcn.00435bd0
push eax
lea ecx, [esp + 0x38]
push ecx
mov ebx, 0x51d50c
mov byte [esp + 0x48], 7
call fcn.00418040
mov ebp, dword [ebp]
mov eax, dword [eax]
add esp, 0x18
push 0
push ebp
push eax
call esi
test eax, eax
lea ecx, [esp + 0x24]
sete bl
call fcn.00406e40
lea ecx, [esp + 0x20]
call fcn.00406e40
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 2
call fcn.00406e40
test bl, bl
je 0x42feaf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Shuame_new.exe
push 0x51d544
jmp 0x42fea2
lea edx, [esp + 0x1c]
push edi
push edx
mov ebx, 0x51d568
call fcn.00418040
mov ebp, eax
lea eax, [esp + 0x28]
push 0x548884
push eax
mov ebx, edi
mov byte [esp + 0x40], 8
call fcn.00435bd0
push eax
lea ecx, [esp + 0x38]
push ecx
mov ebx, 0x51d580
mov byte [esp + 0x48], 9
call fcn.00418040
mov ebp, dword [ebp]
mov eax, dword [eax]
add esp, 0x18
push 0
push ebp
push eax
call esi
test eax, eax
lea ecx, [esp + 0x24]
sete bl
call fcn.00406e40
lea ecx, [esp + 0x20]
call fcn.00406e40
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 2
call fcn.00406e40
test bl, bl
je 0x42feb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x51d598
push str.copy__S_to_upper_folder_failed:__d
mov ecx, 0x548980
call fcn.004dfa90
add esp, 0xc
mov dword [0x544984], 0x3f6
lea ecx, [esp + 0x14]
call fcn.00406e40
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
call fcn.00435030
test eax, eax
je 0x42fc08
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret