Function at 0x4a60b0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54561e
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x596c60]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x34], esi
mov eax, dword [0x59f554]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], ebx
test al, 1
jne 0x4a611f
or eax, 1
mov dword [0x59f554], eax
mov dword [ebp - 4], 0
call fcn.004a1290
push 0x54f080
call fcn.00507cdd
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x597f88]
test byte [eax + 0x1c], 2
je 0x4a6134
cmp byte [eax + 0x19], 6
jb 0x4a6134
mov al, 1
jmp 0x4a6136
xor al, al
cmp byte [0x59f560], 0
jne 0x4a6150
cmp byte [0x59f561], 0
jne 0x4a6150
test al, al
je 0x4a6299
sub esp, 8
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xdc]
call fcn.0047b4d0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004a1680
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xdc]
call fcn.0047ee50
mov edx, str..InstallHelper.cpp
mov ecx, eax
call fcn.0047f0b0
mov edx, 0x56b378
mov ecx, eax
call fcn.0047f0b0
push 0xb5
mov ecx, eax
call fcn.0047b130
mov edx, 0x56b378
mov ecx, eax
call fcn.0047f0b0
mov edx, 0x56b46c
mov ecx, eax
call fcn.0047f0b0
mov edx, str.CopyAndReplaceFile
mov ecx, eax
call fcn.0047f0b0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 0x10
jb 0x4a61e4
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4a61e4
push eax
call fcn.00507b54
add esp, 4
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xdc]
call fcn.0047b620
mov esi, eax
mov byte [ebp - 4], 4
cmp dword [esi + 0x14], 0x10
jb 0x4a6201
mov esi, dword [esi]
mov eax, dword [0x59f554]
test al, 1
jne 0x4a622c
or eax, 1
mov dword [0x59f554], eax
mov byte [ebp - 4], 5
call fcn.004a1290
push 0x54f080
call fcn.00507cdd
add esp, 4
mov byte [ebp - 4], 4
push esi
push 6
mov ecx, 0x59f560
call fcn.004a1510
cmp dword [ebp - 0x18], 0x10
jb 0x4a624f
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4a624f
push eax
call fcn.00507b54
add esp, 4
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 1
call fcn.0047b5a0
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0x56b700
push eax
call fcn.00528f2f
mov esi, dword [ebp - 0x34]
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x4a6299
xor edi, edi
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x30], edi
jb 0x4a62a6
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 8
jb 0x4a62b1
mov esi, dword [esi]
mov dword [ebp - 0x34], esi
push 0x104
push ebx
lea ecx, [ebp - 0x44]
call fcn.00483c80
push 0x104
push dword [ebp - 0x34]
lea ecx, [ebp - 0x3c]
mov esi, dword [eax]
call fcn.00483c80
push 0
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x38]
mov esi, eax
test ecx, ecx
je 0x4a62ee
push ecx
call fcn.00507b54
add esp, 4
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x4a62fe
push eax
call fcn.00507b54
add esp, 4
test esi, esi
jne 0x4a630d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x30], eax
mov ecx, dword [0x59f554]
test cl, 1
jne 0x4a6341
or ecx, 1
mov dword [0x59f554], ecx
mov dword [ebp - 4], 7
call fcn.004a1290
push 0x54f080
call fcn.00507cdd
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x597f88]
test byte [eax + 0x1c], 2
je 0x4a6356
cmp byte [eax + 0x19], 6
jb 0x4a6356
mov al, 1
jmp 0x4a6358
xor al, al
cmp byte [0x59f560], 0
jne 0x4a6372
cmp byte [0x59f561], 0
jne 0x4a6372
test al, al
je 0x4a64b6
sub esp, 8
mov dword [ebp - 4], 8
lea ecx, [ebp - 0x174]
call fcn.0047b4d0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call fcn.004a1680
mov edx, eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x174]
call fcn.0047ee50
mov edx, str..InstallHelper.cpp
mov ecx, eax
call fcn.0047f0b0
mov edx, 0x56b378
mov ecx, eax
call fcn.0047f0b0
push 0xba
mov ecx, eax
call fcn.0047b130
mov edx, 0x56b378
mov ecx, eax
call fcn.0047f0b0
mov edx, 0x56b498
mov ecx, eax
call fcn.0047f0b0
mov edx, str.CopyAndReplaceFile
mov ecx, eax
call fcn.0047f0b0
mov byte [ebp - 4], 9
cmp dword [ebp - 0x18], 0x10
jb 0x4a6406
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4a6406
push eax
call fcn.00507b54
add esp, 4
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x174]
call fcn.0047b620
mov esi, eax
mov byte [ebp - 4], 0xb
cmp dword [esi + 0x14], 0x10
jb 0x4a6423
mov esi, dword [esi]
mov eax, dword [0x59f554]
test al, 1
jne 0x4a644e
or eax, 1
mov dword [0x59f554], eax
mov byte [ebp - 4], 0xc
call fcn.004a1290
push 0x54f080
call fcn.00507cdd
add esp, 4
mov byte [ebp - 4], 0xb
push esi
push 6
mov ecx, 0x59f560
call fcn.004a1510
cmp dword [ebp - 0x18], 0x10
jb 0x4a6471
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4a6471
push eax
call fcn.00507b54
add esp, 4
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 8
call fcn.0047b5a0
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], 0x56b700
push eax
call fcn.00528f2f
add esp, 4
jmp 0x4a64b6
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005072fd
mov esp, ebp
pop ebp
ret