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

Disassembly:
push ebp
sub esp, 0x6c
mov eax, 0x426676
call fcn.0041362c
sub esp, 0x4f8
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], ebx
mov dword [ebp - 4], ebx
mov dword [ebp + 0x58], ebx
lea eax, [ebp + 0x58]
push eax
mov byte [ebp - 4], 1
call fcn.0040cbeb
mov esi, eax
pop ecx
cmp esi, ebx
je 0x40851a
push esi
push str.FindConfigPath_failed
call fcn.004055ec
pop ecx
mov ebx, esi
pop ecx
push dword [ebp + 0x58]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp + 0x40]
call fcn.004015a3
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add ebp, 0x70
leave
ret
push str.Config
lea ecx, [ebp + 0x58]
call fcn.004029c3
push 0x20219
push dword [ebp + 0x58]
lea ecx, [ebp + 0x40]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004015be
test eax, eax
je 0x40854c
push str.FindConfigPath_failed
call fcn.0040563e
jmp 0x4084f4
xor eax, eax
push 0x208
mov word [ebp - 0x2f8], ax
lea eax, [ebp - 0x2f6]
push ebx
push eax
call fcn.00413a00
add esp, 0xc
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x2f8]
push eax
mov esi, 0x105
push str.HK_Path
lea ecx, [ebp + 0x40]
mov dword [ebp + 0x5c], esi
call fcn.00401637
cmp eax, ebx
je 0x408595
push str.QueryStringValue_of_HK_Path_failed
jmp 0x408545
lea eax, [ebp - 0x2f8]
push eax
lea ecx, [ebp]
call fcn.004057c9
or edi, 0xffffffff
push edi
push ebx
lea eax, [ebp]
push eax
mov ecx, 0x43209c
mov byte [ebp - 4], 2
call fcn.00404b08
push ebx
lea ecx, [ebp + 0x24]
mov dword [ebp + 0x3c], 7
call fcn.00402f02
mov byte [ebp - 4], 3
call fcn.0040da29
test eax, eax
je 0x408634
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x2f8]
push eax
push str.HK64_Path
lea ecx, [ebp + 0x40]
mov dword [ebp + 0x5c], esi
call fcn.00401637
cmp eax, ebx
mov dword [ebp + 0x68], eax
jge 0x408625
push eax
push str.QueryStringValue_of_HK64_Path_failed
call fcn.004055ec
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp + 0x24]
call fcn.004038ff
push ebx
push 1
lea ecx, [ebp]
call fcn.004038ff
mov ebx, dword [ebp + 0x68]
jmp 0x4084f5
lea eax, [ebp - 0x2f8]
push eax
lea ecx, [ebp + 0x24]
call fcn.00404c0f
xor eax, eax
push 0x208
mov word [ebp - 0x504], ax
lea eax, [ebp - 0x502]
push ebx
push eax
call fcn.00413a00
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x504]
push eax
mov dword [ebp + 0x5c], esi
call fcn.0040d45a
mov esi, eax
add esp, 0x14
cmp esi, ebx
jge 0x408695
push esi
push str.Error_getting_the_installation_directory
call fcn.004055ec
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp + 0x24]
call fcn.004038ff
push ebx
push 1
lea ecx, [ebp]
call fcn.004038ff
mov ebx, esi
jmp 0x4084f5
lea eax, [ebp - 0x504]
push eax
lea ecx, [ebp - 0x28]
call fcn.004057c9
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.004057eb
push 1
push edi
lea eax, [ebp + 0x68]
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 5
mov dword [ebp + 0x68], 0x5c
call fcn.00402d95
mov esi, 0x4283ec
cmp eax, edi
je 0x40872d
push edi
inc eax
push eax
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp]
call fcn.00405e58
push eax
lea eax, [ebp - 0xec]
push esi
push eax
mov byte [ebp - 4], 6
call fcn.00406001
add esp, 0xc
push edi
push ebx
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00404c74
push ebx
push 1
lea ecx, [ebp - 0xec]
call fcn.004038ff
push ebx
push 1
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 5
call fcn.004038ff
cmp dword [ebp + 0x38], ebx
je 0x4087a2
push 1
push edi
lea eax, [ebp + 0x68]
push eax
lea ecx, [ebp]
mov dword [ebp + 0x68], 0x5c
call fcn.00402d95
cmp eax, edi
je 0x4087a2
push edi
inc eax
push eax
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp + 0x24]
call fcn.00405e58
push eax
lea eax, [ebp - 0xd0]
push esi
push eax
mov byte [ebp - 4], 8
call fcn.00406001
add esp, 0xc
push edi
push ebx
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 9
call fcn.00404c74
push ebx
push 1
lea ecx, [ebp - 0xd0]
call fcn.004038ff
push ebx
push 1
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 5
call fcn.004038ff
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x98]
call fcn.004057eb
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 0xa
call fcn.004057eb
lea ecx, [ebp + 0x68]
call fcn.00401d00
push eax
mov edi, str..dl_
push edi
mov esi, str..dll
lea eax, [ebp - 0x98]
push esi
push eax
mov byte [ebp - 4], 0xc
call fcn.00408249
add esp, 0x10
lea ecx, [ebp + 0x68]
call fcn.00401d46
lea ecx, [ebp + 0x68]
call fcn.00401d00
push eax
push edi
lea eax, [ebp - 0xb4]
push esi
push eax
mov byte [ebp - 4], 0xd
call fcn.00408249
add esp, 0x10
lea ecx, [ebp + 0x68]
call fcn.00401d46
push 7
pop esi
push ebx
lea ecx, [ebp - 0x60]
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x64], ebx
mov dword [ebp + 0x68], ebx
mov byte [ebp + 0x6f], bl
mov byte [ebp + 0x6e], bl
mov dword [ebp - 0x48], esi
call fcn.00402f02
push ebx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x64], esi
call fcn.00402f02
mov eax, dword [ebp - 0x24]
push 8
pop esi
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0x10], esi
jae 0x408865
lea eax, [ebp - 0x24]
lea ecx, [ebp + 0x48]
push ecx
push eax
call fcn.00401843
pop ecx
pop ecx
test al, al
je 0x4088de
mov eax, dword [ebp - 0x94]
cmp dword [ebp - 0x80], esi
jae 0x408886
lea eax, [ebp - 0x94]
lea ecx, [ebp + 0x64]
push ecx
push eax
call fcn.00401843
pop ecx
mov byte [ebp + 0x63], al
mov eax, dword [ebp + 4]
pop ecx
cmp dword [ebp + 0x18], esi
jae 0x4088a0
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4088de
mov byte [ebp + 0x6e], 1
cmp byte [ebp + 0x63], bl
je 0x4088cf
mov eax, dword [ebp + 0x68]
cmp eax, dword [ebp + 0x4c]
jb 0x4088cf
ja 0x4088c7
mov eax, dword [ebp + 0x64]
cmp eax, dword [ebp + 0x48]
jbe 0x4088cf
lea eax, [ebp - 0x98]
jmp 0x4088d2
lea eax, [ebp - 0x28]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x60]
call fcn.00404b08
cmp dword [ebp + 0x38], ebx
je 0x40894f
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x2c], esi
jae 0x4088ee
lea eax, [ebp - 0x40]
lea ecx, [ebp + 0x1c]
push ecx
push eax
call fcn.00401843
pop ecx
pop ecx
test al, al
je 0x40894f
mov eax, dword [ebp - 0xb0]
cmp dword [ebp - 0x9c], esi
jae 0x408912
lea eax, [ebp - 0xb0]
lea ecx, [ebp + 0x50]
push ecx
push eax
mov byte [ebp + 0x6f], 1
call fcn.00401843
pop ecx
pop ecx
test al, al
je 0x408940
mov eax, dword [ebp + 0x54]
cmp eax, dword [ebp + 0x20]
jb 0x408940
ja 0x408938
mov eax, dword [ebp + 0x50]
cmp eax, dword [ebp + 0x1c]
jbe 0x408940
lea eax, [ebp - 0xb4]
jmp 0x408943
lea eax, [ebp - 0x44]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x7c]
call fcn.00404b08
cmp byte [ebp + 0x6e], bl
je 0x408982
mov ecx, dword [ebp + 4]
cmp dword [ebp + 0x18], esi
jae 0x40895f
lea ecx, [ebp + 4]
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x48], esi
jae 0x40896a
lea eax, [ebp - 0x5c]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x408982
push str.Unable_to_copy_32_bit_hook_dll
call fcn.0040563e
pop ecx
cmp dword [ebp + 0x38], ebx
je 0x408a45
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.Wow64DisableWow64FsRedirection
push str.kernel32
mov dword [ebp + 0x68], ebx
mov dword [ebp + 0x4c], ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.Wow64RevertWow64FsRedirection
push str.kernel32
mov dword [ebp + 0x54], eax
call esi
push eax
call edi
mov esi, eax
cmp dword [ebp + 0x54], ebx
je 0x4089cf
lea eax, [ebp + 0x68]
push eax
call dword [ebp + 0x54]
mov dword [ebp + 0x4c], eax
cmp byte [ebp + 0x6f], bl
je 0x408a1c
cmp dword [ebp + 0x3c], 8
mov eax, dword [ebp + 0x28]
jae 0x4089e0
lea eax, [ebp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x408a1c
cmp dword [ebp + 0x3c], 8
mov ecx, dword [ebp + 0x28]
jae 0x4089f8
lea ecx, [ebp + 0x28]
cmp dword [ebp - 0x64], 8
mov eax, dword [ebp - 0x78]
jae 0x408a04
lea eax, [ebp - 0x78]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x408a1c
push str.Unable_to_copy_64_bit_hook_dll
call fcn.0040563e
pop ecx
cmp byte [0x434044], bl
je 0x408a37
cmp dword [ebp + 0x3c], 8
mov eax, dword [ebp + 0x28]
jae 0x408a30
lea eax, [ebp + 0x28]
push eax
call fcn.004056aa
pop ecx
cmp dword [ebp + 0x4c], ebx
je 0x408a45
cmp esi, ebx
je 0x408a45
push dword [ebp + 0x68]
call esi
cmp byte [0x434044], bl
je 0x408a60
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x408a59
lea eax, [ebp + 4]
push eax
call fcn.004056aa
pop ecx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x7c]
call fcn.004038ff
push ebx
push esi
lea ecx, [ebp - 0x60]
call fcn.004038ff
push ebx
push esi
lea ecx, [ebp - 0xb4]
call fcn.004038ff
push ebx
push esi
lea ecx, [ebp - 0x98]
call fcn.004038ff
push ebx
push esi
lea ecx, [ebp - 0x44]
call fcn.004038ff
push ebx
push esi
lea ecx, [ebp - 0x28]
call fcn.004038ff
push ebx
push esi
lea ecx, [ebp + 0x24]
call fcn.004038ff
push ebx
push esi
lea ecx, [ebp]
call fcn.004038ff
jmp 0x4084f5