Function at 0x4a7dd8
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e1580
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x52472c]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x52472c]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x14], ebx
cmp dword [edi + 0xc0], ebx
jne 0x4a7e73
push str.AI_EXTERNALUIUNINSTALLERNAME
lea ecx, [esp + 0x6c]
call fcn.00404342
mov dword [esp + 0xe8], ebx
mov ecx, dword [edi + 0xc8]
mov eax, dword [ecx]
lea edx, [esp + 0x68]
push edx
xor esi, esi
lea edx, [esp + 0x20]
inc esi
push edx
mov dword [esp + 0x1c], esi
call dword [eax]
mov dword [esp + 0xe8], esi
mov dword [esp + 0x14], 3
cmp dword [eax + 0x14], ebx
je 0x4a7e73
mov byte [esp + 0x13], 1
jmp 0x4a7e7a
xor esi, esi
mov byte [esp + 0x13], bl
inc esi
mov dword [esp + 0xe8], ebx
test byte [esp + 0x14], 2
je 0x4a7e98
and dword [esp + 0x14], 0xfffffffd
push ebx
push esi
lea ecx, [esp + 0x24]
call fcn.004035c5
or dword [esp + 0xe8], 0xffffffff
test byte [esp + 0x14], 1
je 0x4a7eb7
and dword [esp + 0x14], 0xfffffffe
push ebx
push esi
lea ecx, [esp + 0x70]
call fcn.004035c5
cmp byte [esp + 0x13], bl
je 0x4a82aa
push str.Installed
lea ecx, [esp + 0x6c]
call fcn.00404342
mov dword [esp + 0xe8], 2
mov ecx, dword [edi + 0xc8]
mov eax, dword [ecx]
lea edx, [esp + 0x68]
push edx
lea edx, [esp + 0x20]
push edx
call dword [eax]
mov byte [esp + 0xe8], 3
cmp dword [eax + 0x14], ebx
sete byte [esp + 0x13]
mov byte [esp + 0xe8], 2
push ebx
push esi
lea ecx, [esp + 0x24]
call fcn.004035c5
or dword [esp + 0xe8], 0xffffffff
push ebx
push esi
lea ecx, [esp + 0x70]
call fcn.004035c5
cmp byte [esp + 0x13], bl
je 0x4a82aa
lea eax, [esp + 0xbc]
push eax
mov ecx, edi
call fcn.004a7c42
mov dword [esp + 0xe8], 4
lea eax, [esp + 0x84]
push eax
call fcn.0045a7c0
mov byte [esp + 0xe8], 5
lea eax, [esp + 0x38]
push eax
call fcn.004592d0
mov byte [esp + 0xe8], 6
mov eax, dword [edi + 0xc4]
cmp dword [eax + 0x138], ebx
je 0x4a7fd5
push eax
lea esi, [esp + 0x20]
call fcn.0049f54d
mov byte [esp + 0xe8], 7
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x90]
call fcn.00403fe5
mov byte [esp + 0xe8], 6
mov eax, esi
push eax
call fcn.00403669
mov eax, dword [edi + 0xc4]
add eax, 0x124
push eax
lea esi, [esp + 0x88]
call fcn.0041a83a
mov eax, esi
push eax
lea ebx, [esp + 0x3c]
call fcn.004597c0
xor ebx, ebx
lea eax, [esp + 0xa0]
push eax
call fcn.0045a7c0
mov byte [esp + 0xe8], 8
mov edi, 0x502c14
cmp dword [esp + 0x98], ebx
je 0x4a801f
cmp dword [esp + 0x9c], 8
mov eax, dword [esp + 0x88]
jae 0x4a8010
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a8110
lea esi, [esp + 0x1c]
call fcn.0045adf0
mov byte [esp + 0xe8], 9
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x90]
call fcn.00403fe5
mov byte [esp + 0xe8], 8
mov eax, esi
push eax
call fcn.00403669
lea esi, [esp + 0x1c]
call fcn.0045ac70
mov byte [esp + 0xe8], 0xa
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xac]
call fcn.00403fe5
mov byte [esp + 0xe8], 8
mov eax, esi
push eax
call fcn.00403669
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0xc0]
call fcn.0045a890
mov byte [esp + 0xe8], 0xb
lea edx, [esp + 0x1c]
mov ecx, eax
call fcn.0045bb90
mov byte [esp + 0xe8], 0xc
push eax
lea esi, [esp + 0xa4]
call fcn.0041a83a
mov byte [esp + 0xe8], 0xb
push ebx
push 1
lea ecx, [esp + 0x24]
call fcn.004035c5
mov byte [esp + 0xe8], 8
lea eax, [esp + 0x68]
push eax
call fcn.00403669
push edi
lea ecx, [esp + 0x6c]
call fcn.00404342
mov byte [esp + 0xe8], 0xd
lea eax, [esp + 0x68]
push eax
call fcn.0045a9a0
mov byte [esp + 0xe8], 8
push ebx
push 1
lea ecx, [esp + 0x70]
call fcn.004035c5
mov eax, dword [esp + 0xc0]
push 8
pop esi
cmp dword [esp + 0xd4], esi
jae 0x4a812a
lea eax, [esp + 0xc0]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004054bc
mov byte [esp + 0xe8], 0xe
push ebx
push ebx
lea ecx, [esp + 0x20]
call fcn.00460c40
pop ecx
pop ecx
mov byte [esp + 0xe8], 8
lea ecx, [esp + 0x18]
call fcn.004029ae
mov ecx, dword [esp + 0xc0]
cmp dword [esp + 0xd4], esi
jae 0x4a8172
lea ecx, [esp + 0xc0]
mov eax, dword [esp + 0x88]
cmp dword [esp + 0x9c], esi
jae 0x4a8189
lea eax, [esp + 0x88]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [esp + 0xb4], ebx
je 0x4a8257
mov eax, dword [esp + 0xa4]
cmp dword [esp + 0xb8], esi
jae 0x4a81b6
lea eax, [esp + 0xa4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a8257
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0xc0]
call fcn.0045a890
mov byte [esp + 0xe8], 0xf
push edi
lea ecx, [esp + 0x20]
call fcn.00404342
mov byte [esp + 0xe8], 0x10
lea eax, [esp + 0x1c]
push eax
lea esi, [esp + 0x6c]
call fcn.0045a9a0
mov byte [esp + 0xe8], 0xf
push ebx
push 1
lea ecx, [esp + 0x24]
call fcn.004035c5
cmp dword [esp + 0x80], 8
mov ecx, dword [esp + 0x6c]
jae 0x4a8224
lea ecx, [esp + 0x6c]
cmp dword [esp + 0xb8], 8
mov eax, dword [esp + 0xa4]
jae 0x4a823c
lea eax, [esp + 0xa4]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov byte [esp + 0xe8], 8
lea eax, [esp + 0x68]
push eax
call fcn.00403669
mov byte [esp + 0xe8], 6
lea eax, [esp + 0xa0]
push eax
call fcn.00403669
mov byte [esp + 0xe8], 5
lea eax, [esp + 0x38]
push eax
call fcn.00459330
mov byte [esp + 0xe8], 4
lea eax, [esp + 0x84]
push eax
call fcn.00403669
or dword [esp + 0xe8], 0xffffffff
push ebx
push 1
lea ecx, [esp + 0xc4]
call fcn.004035c5
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.004b1fae
mov esp, ebp
pop ebp
ret