Function at 0x4c6015
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
sub esp, 0x60
mov eax, 0x725cbf
call fcn.006db31c
sub esp, 0x2c0
push ebx
push esi
push 0x20a
xor ebx, ebx
lea eax, [ebp - 0x2cc]
push ebx
push eax
call fcn.006dca70
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0x105
push eax
lea eax, [ebp - 0x2cc]
push eax
call fcn.004cd08f
mov esi, eax
add esp, 0x14
test esi, esi
jns 0x4c6079
push esi
push str.Error_getting_the_installation_directory
call fcn.004ca2ec
pop ecx
pop ecx
mov eax, esi
jmp 0x4c681d
xor eax, eax
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x54], ax
lea ecx, [ebp - 0x54]
push edi
lea eax, [ebp - 0x2cc]
mov dword [ebp - 0x44], ebx
push eax
mov dword [ebp - 0x40], 7
call fcn.004b6b96
lea eax, [ebp - 0x54]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp]
mov dword [ebp], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
call fcn.004b696f
mov esi, 0x7e102c
mov byte [ebp - 4], 1
push esi
lea ecx, [ebp + 0x30]
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], ebx
call fcn.004b696f
push 0x7e1044
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 2
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
call fcn.004b696f
mov eax, dword [ebp + 0x40]
lea edx, [ebp + 0x30]
push 8
pop ebx
cmp dword [ebp + 0x44], ebx
push 0x5c
cmovae edx, dword [ebp + 0x30]
mov byte [ebp - 4], 3
pop ecx
test eax, eax
je 0x4c640a
dec eax
or ecx, 0xffffffff
cmp eax, ecx
push 0x5c
cmovb ecx, eax
lea eax, [edx + ecx*2]
pop ecx
jmp 0x4c6124
cmp eax, edx
je 0x4c640a
sub eax, 2
cmp word [eax], cx
jne 0x4c6119
sub eax, edx
xor edi, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x4c61de
xor ecx, ecx
mov dword [ebp - 0x6c], edi
push 0xffffffffffffffff
inc eax
mov word [ebp - 0x6c], cx
push eax
lea eax, [ebp + 0x30]
mov dword [ebp - 0x5c], edi
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x58], 7
call fcn.004b6b59
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xc0]
push 0x72aa80
push eax
call fcn.004bdb2a
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], ebx
jb 0x4c6184
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x54]
call fcn.004b6afb
lea ecx, [ebp - 0xc0]
call fcn.004b6a96
mov eax, dword [ebp - 0x58]
mov byte [ebp - 4], 3
cmp eax, ebx
jb 0x4c61db
mov ecx, dword [ebp - 0x6c]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x58], eax
mov dword [ebp + 0x60], ecx
cmp eax, 0x1000
jb 0x4c61d2
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.00450606
mov eax, dword [ebp + 0x58]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x60]
push eax
push ecx
call fcn.006db2db
pop ecx
pop ecx
push 0x5c
pop ecx
cmp dword [ebp + 0x28], 0
je 0x4c62b3
cmp dword [0x7e1040], ebx
push ecx
cmovae esi, dword [0x7e102c]
push 0xffffffffffffffff
push dword [0x7e103c]
push esi
call fcn.004bdef9
add esp, 0x10
cmp eax, 0xffffffff
je 0x4c62b3
xor ecx, ecx
mov dword [ebp - 0x6c], edi
push 0xffffffffffffffff
inc eax
mov word [ebp - 0x6c], cx
push eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x5c], edi
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x58], 7
call fcn.004b6b59
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0xc0]
push 0x72aa80
push eax
call fcn.004bdb2a
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], ebx
jb 0x4c625c
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp]
call fcn.004b6afb
lea ecx, [ebp - 0xc0]
call fcn.004b6a96
mov eax, dword [ebp - 0x58]
mov byte [ebp - 4], 3
cmp eax, ebx
jb 0x4c62b3
mov ecx, dword [ebp - 0x6c]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x58], ecx
cmp eax, 0x1000
jb 0x4c62aa
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x58]
push eax
call fcn.00450606
mov eax, dword [ebp + 0x60]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x58]
push eax
push ecx
call fcn.006db2db
pop ecx
pop ecx
lea eax, [ebp - 0x54]
mov dword [ebp - 0x3c], edi
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
call fcn.004b696f
lea eax, [ebp]
mov byte [ebp - 4], bl
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
call fcn.004b696f
push 1
mov byte [ebp - 4], 0xa
call fcn.006da872
mov dword [ebp + 0x4c], eax
lea eax, [ebp + 0x48]
mov byte [ebp - 4], 0xb
push eax
mov edi, str..dl_
lea eax, [ebp - 0x3c]
push edi
mov esi, str..dll
push esi
push eax
call fcn.004be19a
add esp, 0x14
lea ecx, [ebp + 0x48]
call fcn.004b676d
push 1
mov byte [ebp - 4], 0xc
call fcn.006da872
mov dword [ebp + 0x4c], eax
lea eax, [ebp + 0x48]
mov byte [ebp - 4], 0xd
push eax
push edi
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.004be19a
add esp, 0x14
lea ecx, [ebp + 0x48]
call fcn.004b676d
xor ecx, ecx
xorps xmm0, xmm0
push 7
pop edx
xor eax, eax
mov dword [ebp - 0x9c], ecx
movlpd qword [ebp + 0x48], xmm0
mov bh, cl
movlpd qword [ebp - 0xa8], xmm0
movlpd qword [ebp + 0x54], xmm0
movlpd qword [ebp + 0x5c], xmm0
mov byte [ebp + 0x53], cl
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x88], edx
mov word [ebp - 0x9c], ax
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], edx
mov word [ebp - 0x84], ax
push 8
pop edi
cmp dword [ebp - 0x40], edi
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 0xf
lea ecx, [ebp + 0x54]
cmovae eax, dword [ebp - 0x54]
push ecx
push eax
call fcn.004c6f80
pop ecx
pop ecx
test al, al
je 0x4c642a
cmp dword [ebp - 0x28], edi
lea ecx, [ebp + 0x5c]
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push ecx
push eax
call fcn.004c6f80
cmp dword [ebp + 0x44], edi
mov bl, al
pop ecx
pop ecx
lea ecx, [ebp + 0x30]
cmovae ecx, dword [ebp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4c642a
mov bh, 1
test bl, bl
je 0x4c6411
mov eax, dword [ebp + 0x60]
cmp eax, dword [ebp + 0x58]
jb 0x4c6411
ja 0x4c63fb
mov eax, dword [ebp + 0x5c]
cmp eax, dword [ebp + 0x54]
jbe 0x4c6411
cmp dword [ebp - 0x28], edi
lea eax, [ebp - 0x3c]
push dword [ebp - 0x2c]
cmovae eax, dword [ebp - 0x3c]
jmp 0x4c641e
xor edi, edi
jmp 0x4c61de
cmp dword [ebp - 0x40], edi
lea eax, [ebp - 0x54]
push dword [ebp - 0x44]
cmovae eax, dword [ebp - 0x54]
push eax
lea ecx, [ebp - 0x9c]
call fcn.004b6bbb
cmp dword [ebp + 0x28], 0
je 0x4c64ab
cmp dword [ebp + 0x14], edi
lea ecx, [ebp + 0x48]
lea eax, [ebp]
cmovae eax, dword [ebp]
push ecx
push eax
call fcn.004c6f80
pop ecx
pop ecx
test al, al
je 0x4c64ab
cmp dword [ebp - 0x10], edi
lea ecx, [ebp - 0xa8]
lea eax, [ebp - 0x24]
mov byte [ebp + 0x53], 1
cmovae eax, dword [ebp - 0x24]
push ecx
push eax
call fcn.004c6f80
pop ecx
pop ecx
test al, al
je 0x4c6492
mov eax, dword [ebp - 0xa4]
cmp eax, dword [ebp + 0x4c]
jb 0x4c6492
ja 0x4c6483
mov eax, dword [ebp - 0xa8]
cmp eax, dword [ebp + 0x48]
jbe 0x4c6492
cmp dword [ebp - 0x10], edi
lea eax, [ebp - 0x24]
push dword [ebp - 0x14]
cmovae eax, dword [ebp - 0x24]
jmp 0x4c649f
cmp dword [ebp + 0x14], edi
lea eax, [ebp]
push dword [ebp + 0x10]
cmovae eax, dword [ebp]
push eax
lea ecx, [ebp - 0x84]
call fcn.004b6bbb
test bh, bh
je 0x4c64e5
cmp dword [ebp + 0x44], edi
lea ecx, [ebp + 0x30]
push 0
cmovae ecx, dword [ebp + 0x30]
lea eax, [ebp - 0x9c]
cmp dword [ebp - 0x88], edi
push ecx
cmovae eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4c64e5
push str.Unable_to_copy_32_bit_hook_dll
call fcn.004ca291
pop ecx
cmp dword [ebp + 0x28], 0
je 0x4c65ac
and dword [ebp + 0x60], 0
xor ebx, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.Wow64DisableWow64FsRedirection
push str.kernel32
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.Wow64RevertWow64FsRedirection
push str.kernel32
mov dword [ebp + 0x58], eax
call edi
push eax
call esi
mov esi, eax
mov eax, dword [ebp + 0x58]
test eax, eax
je 0x4c6533
lea ecx, [ebp + 0x60]
push ecx
call eax
mov ebx, eax
cmp byte [ebp + 0x53], 0
push 8
pop edi
je 0x4c6585
cmp dword [ebp + 0x2c], edi
lea ecx, [ebp + 0x18]
cmovae ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4c6585
cmp dword [ebp + 0x2c], edi
lea ecx, [ebp + 0x18]
push 0
cmovae ecx, dword [ebp + 0x18]
lea eax, [ebp - 0x84]
cmp dword [ebp - 0x70], edi
push ecx
cmovae eax, dword [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4c6585
push str.Unable_to_copy_64_bit_hook_dll
call fcn.004ca291
pop ecx
call fcn.004d78e8
test al, al
je 0x4c659f
cmp dword [ebp + 0x2c], edi
lea eax, [ebp + 0x18]
cmovae eax, dword [ebp + 0x18]
push eax
call fcn.004cb64c
pop ecx
test ebx, ebx
je 0x4c65ac
test esi, esi
je 0x4c65ac
push dword [ebp + 0x60]
call esi
call fcn.004d78e8
test al, al
je 0x4c65c6
cmp dword [ebp + 0x44], edi
lea eax, [ebp + 0x30]
cmovae eax, dword [ebp + 0x30]
push eax
call fcn.004cb64c
pop ecx
mov eax, dword [ebp - 0x70]
mov esi, 0x1000
cmp eax, edi
jb 0x4c6607
mov ecx, dword [ebp - 0x84]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x58], ecx
cmp eax, esi
jb 0x4c65fe
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x58]
push eax
call fcn.00450606
mov eax, dword [ebp + 0x60]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x58]
push eax
push ecx
call fcn.006db2db
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x70], 7
xor ebx, ebx
mov word [ebp - 0x84], ax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x74], ebx
cmp eax, edi
jb 0x4c665b
mov ecx, dword [ebp - 0x9c]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x58], ecx
cmp eax, esi
jb 0x4c6652
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x58]
push eax
call fcn.00450606
mov eax, dword [ebp + 0x60]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x58]
push eax
push ecx
call fcn.006db2db
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], ax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x88], 7
cmp eax, edi
jb 0x4c66ad
mov ecx, dword [ebp - 0x24]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x58], ecx
cmp eax, esi
jb 0x4c66a4
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x58]
push eax
call fcn.00450606
mov eax, dword [ebp + 0x60]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x58]
push eax
push ecx
call fcn.006db2db
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x24], ax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 7
cmp eax, edi
jb 0x4c66f6
mov ecx, dword [ebp - 0x3c]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x58], ecx
cmp eax, esi
jb 0x4c66ed
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x58]
push eax
call fcn.00450606
mov eax, dword [ebp + 0x60]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x58]
push eax
push ecx
call fcn.006db2db
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x3c], ax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x28], 7
cmp eax, edi
jb 0x4c673f
mov ecx, dword [ebp + 0x18]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x58], ecx
cmp eax, esi
jb 0x4c6736
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x58]
push eax
call fcn.00450606
mov eax, dword [ebp + 0x60]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x58]
push eax
push ecx
call fcn.006db2db
pop ecx
pop ecx
xor eax, eax
mov dword [ebp + 0x28], ebx
mov word [ebp + 0x18], ax
mov eax, dword [ebp + 0x44]
mov dword [ebp + 0x2c], 7
cmp eax, edi
jb 0x4c6788
mov ecx, dword [ebp + 0x30]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x58], ecx
cmp eax, esi
jb 0x4c677f
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x58]
push eax
call fcn.00450606
mov eax, dword [ebp + 0x60]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x58]
push eax
push ecx
call fcn.006db2db
pop ecx
pop ecx
xor eax, eax
mov dword [ebp + 0x40], ebx
mov word [ebp + 0x30], ax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x44], 7
cmp eax, edi
jb 0x4c67d1
mov ecx, dword [ebp]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x58], ecx
cmp eax, esi
jb 0x4c67c8
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x58]
push eax
call fcn.00450606
mov eax, dword [ebp + 0x60]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x58]
push eax
push ecx
call fcn.006db2db
pop ecx
pop ecx
xor eax, eax
mov dword [ebp + 0x10], ebx
mov word [ebp], ax
mov eax, dword [ebp - 0x40]
cmp eax, edi
mov dword [ebp + 0x14], 7
pop edi
jb 0x4c681b
mov ecx, dword [ebp - 0x54]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x58], ecx
cmp eax, esi
jb 0x4c6812
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x58]
push eax
call fcn.00450606
mov eax, dword [ebp + 0x60]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x58]
push eax
push ecx
call fcn.006db2db
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
add ebp, 0x64
leave
ret