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

Disassembly:
push ebp
sub esp, 0x5c
mov eax, 0x425000
call fcn.004121ac
sub esp, 0x2ec
push ebx
push esi
xor eax, eax
push 0x208
mov word [ebp - 0x2f8], ax
xor ebx, ebx
lea eax, [ebp - 0x2f6]
push ebx
push eax
call fcn.00412380
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x2f8]
push eax
mov dword [ebp + 0x1c], 0x105
call fcn.0040bbb3
mov esi, eax
add esp, 0x14
cmp esi, ebx
jge 0x40754e
push esi
push str.Error_getting_the_installation_directory
call fcn.00404cf7
pop ecx
pop ecx
mov eax, esi
jmp 0x40799c
push edi
lea eax, [ebp - 0x2f8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404ed4
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], ebx
call fcn.00404ef6
push 0x43009c
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.00404ef6
push 0x4300b8
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 2
call fcn.00404ef6
push 1
or edi, 0xffffffff
push edi
lea eax, [ebp + 0x58]
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 3
mov dword [ebp + 0x58], 0x5c
call fcn.004029ea
mov esi, 0x4263c8
cmp eax, edi
je 0x40760b
push edi
inc eax
push eax
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp]
call fcn.00405607
push eax
lea eax, [ebp - 0xd0]
push esi
push eax
mov byte [ebp - 4], 4
call fcn.00405823
add esp, 0xc
push edi
push ebx
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.004044c8
push ebx
push 1
lea ecx, [ebp - 0xd0]
call fcn.00403537
push ebx
push 1
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 3
call fcn.00403537
cmp dword [ebp + 0x34], ebx
je 0x407682
push 1
push edi
lea eax, [ebp + 0x58]
push eax
mov ecx, 0x43009c
mov dword [ebp + 0x58], 0x5c
call fcn.004029ea
cmp eax, edi
je 0x407682
push edi
inc eax
push eax
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp + 0x20]
call fcn.00405607
push eax
lea eax, [ebp - 0xec]
push esi
push eax
mov byte [ebp - 4], 6
call fcn.00405823
add esp, 0xc
push edi
push ebx
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 7
call fcn.004044c8
push ebx
push 1
lea ecx, [ebp - 0xec]
call fcn.00403537
push ebx
push 1
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 3
call fcn.00403537
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xb4]
call fcn.00404ef6
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 8
call fcn.00404ef6
lea ecx, [ebp + 0x58]
call fcn.00401bd0
push eax
mov edi, str..dl_
push edi
mov esi, str..dll
lea eax, [ebp - 0xb4]
push esi
push eax
mov byte [ebp - 4], 0xa
call fcn.0040743f
add esp, 0x10
lea ecx, [ebp + 0x58]
call fcn.00401c00
lea ecx, [ebp + 0x58]
call fcn.00401bd0
push eax
push edi
lea eax, [ebp - 0x98]
push esi
push eax
mov byte [ebp - 4], 0xb
call fcn.0040743f
add esp, 0x10
lea ecx, [ebp + 0x58]
call fcn.00401c00
push 7
pop esi
push ebx
lea ecx, [ebp - 0x60]
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x58], ebx
mov byte [ebp + 0x5f], bl
mov byte [ebp + 0x5e], bl
mov dword [ebp - 0x48], esi
call fcn.00402ce6
push ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x2c], esi
call fcn.00402ce6
mov eax, dword [ebp - 0x24]
push 8
pop esi
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x10], esi
jae 0x407745
lea eax, [ebp - 0x24]
lea ecx, [ebp + 0x4c]
push ecx
push eax
call fcn.00401625
pop ecx
pop ecx
test al, al
je 0x4077c1
mov eax, dword [ebp - 0xb0]
cmp dword [ebp - 0x9c], esi
jae 0x407769
lea eax, [ebp - 0xb0]
lea ecx, [ebp + 0x54]
push ecx
push eax
call fcn.00401625
pop ecx
mov byte [ebp + 0x5d], al
mov eax, dword [ebp + 4]
pop ecx
cmp dword [ebp + 0x18], esi
jae 0x407783
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4077c1
mov byte [ebp + 0x5e], 1
cmp byte [ebp + 0x5d], bl
je 0x4077b2
mov eax, dword [ebp + 0x58]
cmp eax, dword [ebp + 0x50]
jb 0x4077b2
ja 0x4077aa
mov eax, dword [ebp + 0x54]
cmp eax, dword [ebp + 0x4c]
jbe 0x4077b2
lea eax, [ebp - 0xb4]
jmp 0x4077b5
lea eax, [ebp - 0x28]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x60]
call fcn.0040435c
cmp dword [ebp + 0x34], ebx
je 0x40782f
mov eax, dword [ebp - 0x78]
cmp dword [ebp - 0x64], esi
jae 0x4077d1
lea eax, [ebp - 0x78]
lea ecx, [ebp + 0x3c]
push ecx
push eax
call fcn.00401625
pop ecx
pop ecx
test al, al
je 0x40782f
mov eax, dword [ebp - 0x94]
cmp dword [ebp - 0x80], esi
jae 0x4077f2
lea eax, [ebp - 0x94]
lea ecx, [ebp + 0x44]
push ecx
push eax
mov byte [ebp + 0x5f], 1
call fcn.00401625
pop ecx
pop ecx
test al, al
je 0x407820
mov eax, dword [ebp + 0x48]
cmp eax, dword [ebp + 0x40]
jb 0x407820
ja 0x407818
mov eax, dword [ebp + 0x44]
cmp eax, dword [ebp + 0x3c]
jbe 0x407820
lea eax, [ebp - 0x98]
jmp 0x407823
lea eax, [ebp - 0x7c]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x44]
call fcn.0040435c
cmp byte [ebp + 0x5e], bl
je 0x407862
mov ecx, dword [ebp + 4]
cmp dword [ebp + 0x18], esi
jae 0x40783f
lea ecx, [ebp + 4]
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x48], esi
jae 0x40784a
lea eax, [ebp - 0x5c]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x407862
push str.Unable_to_copy_32_bit_hook_dll
call fcn.00404d49
pop ecx
cmp dword [ebp + 0x34], ebx
je 0x407925
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.Wow64DisableWow64FsRedirection
push str.kernel32
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x50], ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.Wow64RevertWow64FsRedirection
push str.kernel32
mov dword [ebp + 0x48], eax
call esi
push eax
call edi
mov esi, eax
cmp dword [ebp + 0x48], ebx
je 0x4078af
lea eax, [ebp + 0x58]
push eax
call dword [ebp + 0x48]
mov dword [ebp + 0x50], eax
cmp byte [ebp + 0x5f], bl
je 0x4078fc
cmp dword [ebp + 0x38], 8
mov eax, dword [ebp + 0x24]
jae 0x4078c0
lea eax, [ebp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4078fc
cmp dword [ebp + 0x38], 8
mov ecx, dword [ebp + 0x24]
jae 0x4078d8
lea ecx, [ebp + 0x24]
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x4078e4
lea eax, [ebp - 0x40]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4078fc
push str.Unable_to_copy_64_bit_hook_dll
call fcn.00404d49
pop ecx
cmp byte [0x432064], bl
je 0x407917
cmp dword [ebp + 0x38], 8
mov eax, dword [ebp + 0x24]
jae 0x407910
lea eax, [ebp + 0x24]
push eax
call fcn.00404db5
pop ecx
cmp dword [ebp + 0x50], ebx
je 0x407925
cmp esi, ebx
je 0x407925
push dword [ebp + 0x58]
call esi
pop edi
cmp byte [0x432064], bl
je 0x407941
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x40793a
lea eax, [ebp + 4]
push eax
call fcn.00404db5
pop ecx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x44]
call fcn.00403537
push ebx
push esi
lea ecx, [ebp - 0x60]
call fcn.00403537
push ebx
push esi
lea ecx, [ebp - 0x98]
call fcn.00403537
push ebx
push esi
lea ecx, [ebp - 0xb4]
call fcn.00403537
push ebx
push esi
lea ecx, [ebp + 0x20]
call fcn.00403537
push ebx
push esi
lea ecx, [ebp]
call fcn.00403537
push ebx
push esi
lea ecx, [ebp - 0x7c]
call fcn.00403537
push ebx
push esi
lea ecx, [ebp - 0x28]
call fcn.00403537
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
add ebp, 0x60
leave
ret