Function at 0x4291c0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588ce8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x60940c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [edi + 0x178]
call fcn.004241a0
mov dword [ebp - 4], 0
push str..old
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040d890
add esp, 0xc
mov byte [ebp - 4], 1
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
push 0
push eax
call fcn.0040bf60
mov byte [ebp - 4], 3
lea eax, [ebp - 0x80]
push eax
lea ecx, [edi + 0x178]
call fcn.00412ce0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
mov ecx, eax
call fcn.00407490
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x4292b9
push dword [ebp - 0x44]
lea ecx, [ebp - 0x7c]
push ecx
push dword [ebp - 0x78]
push eax
call fcn.00405980
mov ecx, dword [ebp - 0x74]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x7c]
add esp, 0x10
sub ecx, esi
imul ecx
lea ecx, [ebp - 0x7c]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.0040b140
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov byte [ebp - 4], 8
mov esi, dword [ebp - 0x54]
test esi, esi
je 0x42930c
push dword [ebp - 0x44]
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x50]
push esi
call fcn.00405980
mov ecx, dword [ebp - 0x4c]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 0x10
imul ecx
lea ecx, [ebp - 0x54]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.0040b140
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x429325
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040b090
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x429350
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0040b090
cmp byte [edi + 0x174], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
je 0x42940c
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [edi + 0x178]
call fcn.0047c0f0
mov esi, eax
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x40]
push 0
push eax
lea ecx, [ebp - 0x6c]
call fcn.0047c0f0
mov byte [ebp - 4], 0xd
cmp dword [esi + 0x14], 8
jb 0x4293a0
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x4293a8
mov eax, dword [eax]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4293cb
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0040b0e0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4293f8
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040b0e0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x68]
test ecx, ecx
je 0x429465
push dword [ebp - 0x44]
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x64]
push ecx
call fcn.00405980
mov ecx, dword [ebp - 0x60]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x68]
add esp, 0x10
sub ecx, esi
imul ecx
lea ecx, [ebp - 0x68]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.0040b140
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052b33d
mov esp, ebp
pop ebp
ret