Function at 0x46fb80
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f1e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov eax, dword [0x58becc]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
push 0xffffffffffffffff
xor edi, edi
mov esi, ecx
push edi
push esi
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], edi
mov byte [ebp - 0x58], 0
call fcn.0041ad80
lea eax, [ebp - 0x78]
push esi
push eax
mov dword [ebp - 4], edi
call fcn.004810a0
push str._screensaver.dat
push eax
lea ecx, [ebp - 0x40]
push ecx
mov byte [ebp - 4], 1
call fcn.004412b0
mov eax, dword [ebp - 0x60]
mov edi, 0x10
add esp, 0x14
cmp eax, edi
jb 0x46fc02
mov edx, dword [ebp - 0x74]
push edx
call fcn.00527b8e
add esp, 4
cmp dword [ebp - 0x44], edi
mov eax, dword [ebp - 0x58]
jae 0x46fc0d
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0046d500
mov bl, al
mov eax, dword [ebp - 0x28]
add esp, 4
cmp eax, edi
mov eax, dword [ebp - 0x3c]
jae 0x46fc28
lea eax, [ebp - 0x3c]
lea edx, [ebp - 0x24]
push edx
call fcn.0046d500
add esp, 4
test al, al
sete cl
test bl, bl
je 0x46fc54
test al, al
je 0x46fc54
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
setne cl
test cl, cl
mov eax, dword [ebp - 0x28]
jne 0x46fc99
cmp eax, edi
jb 0x46fc6b
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00527b8e
add esp, 4
cmp dword [ebp - 0x44], edi
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
jb 0x46fd4e
mov eax, dword [ebp - 0x58]
push eax
call fcn.00527b8e
add esp, 4
mov al, 1
jmp 0x46fd84
cmp eax, edi
mov ecx, dword [ebp - 0x3c]
jae 0x46fca3
lea ecx, [ebp - 0x3c]
cmp dword [ebp - 0x44], edi
mov eax, dword [ebp - 0x58]
jae 0x46fcae
lea eax, [ebp - 0x58]
xor ebx, ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x46fd52
cmp dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x3c]
jae 0x46fccc
lea eax, [ebp - 0x3c]
push 0x557350
push eax
call fcn.00528841
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x46fd52
push ebx
push ebx
push esi
call fcn.00529ebc
push esi
push 1
lea ecx, [ebp - 0x11]
push 1
push ecx
mov byte [ebp - 0x11], 0x4e
call fcn.00528527
push esi
call fcn.0052829a
mov eax, dword [ebp - 0x28]
add esp, 0x20
cmp eax, edi
mov eax, dword [ebp - 0x3c]
jae 0x46fd10
lea eax, [ebp - 0x3c]
lea edx, [ebp - 0x1c]
push edx
call fcn.0046d550
mov eax, dword [ebp - 0x28]
add esp, 4
cmp eax, edi
jb 0x46fd2f
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00527b8e
add esp, 4
cmp dword [ebp - 0x44], edi
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x3c], 0
jb 0x46fd4e
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.00527b8e
add esp, 4
mov al, 1
jmp 0x46fd84
cmp dword [ebp - 0x28], edi
jb 0x46fd63
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00527b8e
add esp, 4
cmp dword [ebp - 0x44], edi
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x3c], 0
jb 0x46fd82
mov eax, dword [ebp - 0x58]
push eax
call fcn.00527b8e
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.00528d83
mov esp, ebp
pop ebp
ret