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

Disassembly:
push 0xffffffffffffffff
push 0x5e3939
mov eax, dword fs:[0]
push eax
sub esp, 0x678
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0x674], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x704dd8]
xor eax, esp
push eax
lea eax, [esp + 0x68c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x69c]
xor edi, edi
mov esi, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x694], edi
cmp dword [esp + 0x6b4], edi
ja 0x41ff8f
cmp dword [esi + 0x8270c], edi
jge 0x41ff8f
push edi
mov ecx, ebx
call fcn.00401720
cmp dword [esp + 0x6b8], 8
jb 0x41ff88
mov eax, dword [esp + 0x6a4]
push eax
call fcn.004ca5d9
add esp, 4
mov eax, ebx
jmp 0x420214
mov eax, dword [esp + 0x6a4]
mov ebx, 8
cmp dword [esp + 0x6b8], ebx
jae 0x41ffab
lea eax, [esp + 0x6a4]
lea ecx, [esp + 0x278]
push ecx
push eax
call fcn.004a6a20
push 0x206
lea eax, [esp + 0x7e]
xor edx, edx
push edi
push eax
mov word [esp + 0x84], dx
call fcn.004e9ba0
mov ecx, dword [esi + 0x8270c]
push ecx
lea edx, [esp + 0x88]
push str._USER_d_
push edx
call fcn.00403b80
add esp, 0x20
push 0x104
lea eax, [esp + 0x484]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x480]
push 0x5c
push ecx
call fcn.004e9c3b
xor edx, edx
add esp, 8
mov word [eax + 2], dx
call fcn.00409730
mov ecx, eax
call fcn.004a3a40
xor ecx, ecx
mov word [esp + 0x58], cx
mov ebp, 7
mov ecx, eax
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], edi
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x420040
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x5c]
call fcn.00401c70
push 0x14
push str.RiLiSkinUserCenter_
lea ecx, [esp + 0x5c]
mov byte [esp + 0x69c], 1
call fcn.00402e80
lea eax, [esp + 0x70]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x420080
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x5c]
call fcn.00402e80
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], ebx
jae 0x4200ac
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4200ce
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], ebx
jae 0x4200c5
lea eax, [esp + 0x58]
push eax
call fcn.004a6000
add esp, 4
lea eax, [esp + 0x278]
lea edx, [eax + 2]
jmp 0x4200e0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4200e0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x27c]
push eax
lea ecx, [esp + 0x5c]
call fcn.00402e80
mov ecx, dword [esp + 0x58]
cmp dword [esp + 0x6c], ebx
jae 0x42010f
lea ecx, [esp + 0x58]
mov eax, dword [esp + 0x6a4]
cmp dword [esp + 0x6b8], ebx
jae 0x420126
lea eax, [esp + 0x6a4]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, edi
jne 0x42013a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
push 0x14
mov word [esp + 0x20], cx
push str.RiLiSkinUserCenter_
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], edi
call fcn.00401c70
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x40]
push ecx
mov byte [esp + 0x6a0], 2
call fcn.00403200
mov esi, dword [esp + 0x20]
lea edx, [esp + 0x284]
push edx
push eax
push esi
mov byte [esp + 0x6ac], 3
call fcn.00403200
add esp, 0x18
cmp dword [esp + 0x50], ebx
jb 0x4201a6
mov eax, dword [esp + 0x3c]
push eax
call fcn.004ca5d9
add esp, 4
xor ecx, ecx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], cx
cmp dword [esp + 0x30], ebx
jb 0x4201c8
mov edx, dword [esp + 0x1c]
push edx
call fcn.004ca5d9
add esp, 4
xor eax, eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], ax
cmp dword [esp + 0x6c], ebx
jb 0x4201ea
mov ecx, dword [esp + 0x58]
push ecx
call fcn.004ca5d9
add esp, 4
xor edx, edx
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], edi
mov word [esp + 0x58], dx
cmp dword [esp + 0x6b8], ebx
jb 0x420212
mov eax, dword [esp + 0x6a4]
push eax
call fcn.004ca5d9
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x68c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x674]
xor ecx, esp
call fcn.004e8c89
add esp, 0x684
ret 0x20