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

Disassembly:
push 0xffffffffffffffff
push 0x5119c8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53a1a4]
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 0x42f618
cmp dword [esi + 0x8c], ebx
jne 0x42f8eb
cmp dword [esi + 0x10], ebx
je 0x42f5ff
mov ecx, dword [esi + 0x18]
cmp dword [ecx - 0xc], ebx
je 0x42f5ff
mov ecx, esi
mov byte [0x54634d], bl
mov byte [0x54634c], bl
call fcn.0042f920
mov ecx, esi
call fcn.0042fe90
mov ecx, esi
call fcn.004304b0
mov eax, dword [esi + 0x18]
push ebx
push eax
call fcn.00416e10
add esp, 8
mov eax, dword [edi]
push eax
add esi, 0x34
call fcn.00418f50
cmp eax, ebx
jne 0x42f62e
mov dword [0x542984], 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 0x546884
push edx
mov ebx, edi
call fcn.00435480
push eax
lea eax, [esp + 0x20]
push eax
mov ebx, str.RootGenius.exe
mov dword [esp + 0x40], 0
call fcn.00417ae0
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 0x42f680
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
sub esp, 0x1c
mov eax, 0x51c464
mov ecx, esp
mov dword [esp + 0x40], esp
call fcn.004134d0
sub esp, 0x1c
mov byte [esp + 0x68], 3
mov eax, dword [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x58], esp
call fcn.004134d0
mov byte [esp + 0x68], bl
call fcn.00427070
add esp, 0x38
test al, al
jne 0x42f6d2
lea ecx, [esp + 0x14]
mov dword [0x542984], 0x3f8
call fcn.00406cf0
jmp 0x42f618
lea ecx, [esp + 0x24]
push edi
push ecx
mov ebx, 0x51c468
call fcn.00417ae0
mov esi, eax
lea edx, [esp + 0x28]
push 0x546884
push edx
mov ebx, edi
mov byte [esp + 0x40], 4
call fcn.00435480
push eax
lea eax, [esp + 0x30]
push eax
mov ebx, 0x51c480
mov byte [esp + 0x48], 5
call fcn.00417ae0
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.00406cf0
lea ecx, [esp + 0x20]
call fcn.00406cf0
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 2
call fcn.00406cf0
test bl, bl
je 0x42f82d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x51c498
push 0x51c4b0
mov ecx, 0x546980
call fcn.004df340
add esp, 0xc
lea ecx, [esp + 0x24]
push edi
push ecx
mov ebx, 0x51c4d4
call fcn.00417ae0
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.00406cf0
test bl, bl
jne 0x42f8bf
lea edx, [esp + 0x1c]
push edi
push edx
mov ebx, 0x51c4ec
call fcn.00417ae0
mov ebp, eax
lea eax, [esp + 0x28]
push 0x546884
push eax
mov ebx, edi
mov byte [esp + 0x40], 6
call fcn.00435480
push eax
lea ecx, [esp + 0x38]
push ecx
mov ebx, 0x51c50c
mov byte [esp + 0x48], 7
call fcn.00417ae0
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.00406cf0
lea ecx, [esp + 0x20]
call fcn.00406cf0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 2
call fcn.00406cf0
test bl, bl
je 0x42f8bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Shuame_new.exe
push 0x51c544
jmp 0x42f8b2
lea edx, [esp + 0x1c]
push edi
push edx
mov ebx, 0x51c568
call fcn.00417ae0
mov ebp, eax
lea eax, [esp + 0x28]
push 0x546884
push eax
mov ebx, edi
mov byte [esp + 0x40], 8
call fcn.00435480
push eax
lea ecx, [esp + 0x38]
push ecx
mov ebx, 0x51c580
mov byte [esp + 0x48], 9
call fcn.00417ae0
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.00406cf0
lea ecx, [esp + 0x20]
call fcn.00406cf0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 2
call fcn.00406cf0
test bl, bl
je 0x42f8c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x51c598
push str.copy__S_to_upper_folder_failed:__d
mov ecx, 0x546980
call fcn.004df340
add esp, 0xc
mov dword [0x542984], 0x3f6
lea ecx, [esp + 0x14]
call fcn.00406cf0
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.004348e0
test eax, eax
je 0x42f618
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