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

Disassembly:
push ebp
sub esp, 0x90
lea ebp, [esp - 4]
mov eax, dword [0x569078]
xor eax, ebp
mov dword [ebp + 0x90], eax
push 0x30
mov eax, 0x50fca7
call fcn.004cc273
mov edi, ecx
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0x14], ebx
cmp dword [edi + 0x64], ecx
jne 0x4b6598
xor eax, eax
mov dword [ebp + 0x88], ecx
mov esi, str.AI_EXTERNALUIUNINSTALLERNAME
mov dword [ebp + 0x8c], ecx
push esi
mov dword [ebp + 0x8c], 7
mov dword [ebp + 0x88], ecx
mov word [ebp + 0x78], ax
call fcn.004d163d
pop ecx
push eax
push esi
lea ecx, [ebp + 0x78]
call fcn.00407b30
and dword [ebp - 4], ebx
lea edx, [ebp + 0x78]
mov ecx, dword [edi + 0x6c]
inc ebx
push edx
lea edx, [ebp + 0x48]
mov dword [ebp - 0x14], ebx
push edx
mov eax, dword [ecx]
call dword [eax]
mov dword [ebp - 4], ebx
xor ecx, ecx
push 3
pop ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0xd], 1
cmp dword [eax + 0x10], ecx
jne 0x4b659b
mov byte [ebp - 0xd], cl
mov dword [ebp - 4], ecx
test bl, 2
je 0x4b65b6
push ecx
and ebx, 0xfffffffd
lea ecx, [ebp + 0x48]
push 1
mov dword [ebp - 0x14], ebx
call fcn.0040487e
xor ecx, ecx
or dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4b65d0
push ecx
and ebx, 0xfffffffe
lea ecx, [ebp + 0x78]
push 1
mov dword [ebp - 0x14], ebx
call fcn.0040487e
cmp byte [ebp - 0xd], 0
je 0x4b6a0f
xor eax, eax
mov esi, str.Installed
mov dword [ebp + 0x88], eax
mov dword [ebp + 0x8c], eax
push esi
mov dword [ebp + 0x8c], 7
mov dword [ebp + 0x88], eax
mov word [ebp + 0x78], ax
call fcn.004d163d
pop ecx
push eax
push esi
lea ecx, [ebp + 0x78]
call fcn.00407b30
mov dword [ebp - 4], 2
lea edx, [ebp + 0x78]
mov ecx, dword [edi + 0x6c]
push edx
lea edx, [ebp + 0x48]
push edx
mov eax, dword [ecx]
call dword [eax]
mov byte [ebp - 4], 3
mov esi, dword [eax + 0x10]
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x48]
push 0
push 1
call fcn.0040487e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x78]
push 0
push 1
call fcn.0040487e
test esi, esi
jne 0x4b6a0f
lea eax, [ebp + 0x30]
mov ecx, edi
push eax
call fcn.004b6336
mov dword [ebp - 4], 4
lea ecx, [ebp + 0x78]
call fcn.00465660
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
call fcn.0046f960
mov byte [ebp - 4], 6
mov ecx, dword [edi + 0x68]
cmp dword [ecx + 0x108], esi
je 0x4b66ce
lea eax, [ebp + 0x48]
push eax
call fcn.004ac1ee
mov byte [ebp - 4], 7
lea ecx, [ebp + 0x78]
push eax
call fcn.0045d0d0
mov byte [ebp - 4], 6
lea ecx, [ebp + 0x48]
push esi
push 1
call fcn.0040487e
mov eax, dword [edi + 0x68]
lea ecx, [ebp + 0x78]
add eax, 0xf8
push eax
call fcn.00425c19
lea eax, [ebp + 0x78]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004703a0
lea ecx, [ebp + 0x18]
call fcn.00465660
mov byte [ebp - 4], 0xa
cmp dword [ebp + 0x88], 0
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
je 0x4b6712
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp + 0x78]
call fcn.00467040
mov byte [ebp - 4], 0xb
or ebx, 4
mov dword [ebp - 0x14], ebx
cmp dword [eax + 0x14], 8
jb 0x4b6707
mov eax, dword [eax]
push eax
call esi
mov byte [ebp - 0xd], 0
test eax, eax
jne 0x4b6716
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 0xa
test bl, 4
je 0x4b6734
push 0
and ebx, 0xfffffffb
lea ecx, [ebp + 0x48]
push 1
mov dword [ebp - 0x14], ebx
call fcn.0040487e
cmp byte [ebp - 0xd], 0
je 0x4b682f
lea ecx, [ebp + 0x48]
call fcn.00465d30
mov byte [ebp - 4], 0xc
lea ecx, [ebp + 0x78]
push eax
call fcn.0045d0d0
mov byte [ebp - 4], 0xa
xor edi, edi
push edi
push 1
lea ecx, [ebp + 0x48]
call fcn.0040487e
lea ecx, [ebp + 0x48]
call fcn.00465bd0
mov byte [ebp - 4], 0xf
lea ecx, [ebp + 0x18]
push eax
call fcn.0045d0d0
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 0x48]
push edi
push 1
call fcn.0040487e
lea eax, [ebp + 0x48]
push eax
sub esp, 0x18
lea eax, [ebp + 0x30]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.0040a3c1
mov byte [ebp - 4], 0x12
mov byte [ebp - 4], 0xa
lea ecx, [ebp]
call fcn.004656c0
mov byte [ebp - 4], 0x13
mov ecx, eax
call fcn.00466fd0
mov byte [ebp - 4], 0x14
lea ecx, [ebp + 0x18]
push eax
call fcn.00425c19
mov byte [ebp - 4], 0x13
lea ecx, [ebp + 0x48]
push edi
push 1
call fcn.0040487e
mov byte [ebp - 4], 0xa
lea ecx, [ebp]
push edi
push 1
call fcn.0040487e
xor eax, eax
mov edi, 0x534f74
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x74], eax
push edi
mov dword [ebp + 0x74], 7
mov dword [ebp + 0x70], eax
mov word [ebp + 0x60], ax
call fcn.004d163d
pop ecx
push eax
push edi
lea ecx, [ebp + 0x60]
call fcn.00407b30
mov byte [ebp - 4], 0x17
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp + 0x18]
call fcn.004658b0
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 0x60]
push 0
push 1
call fcn.0040487e
cmp dword [ebp + 0x44], 8
lea eax, [ebp + 0x30]
lea ecx, [ebp - 0x18]
cmovae eax, dword [ebp + 0x30]
push eax
call fcn.00409a3c
mov byte [ebp - 4], 0x18
xor dl, dl
push 0
lea ecx, [ebp - 0x18]
call fcn.00475160
pop ecx
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00406ba9
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x78]
call fcn.00467040
mov byte [ebp - 4], 0x1a
lea ecx, [ebp + 0x30]
cmp dword [ebp + 0x44], 8
cmovae ecx, dword [ebp + 0x30]
cmp dword [eax + 0x14], 8
jb 0x4b6886
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push ecx
push eax
call edi
mov byte [ebp - 4], 0xa
lea ecx, [ebp]
push 0
push 1
call fcn.0040487e
cmp dword [ebp + 0x28], 0
je 0x4b68d1
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x18]
call fcn.00467040
mov byte [ebp - 4], 0x1b
or ebx, 8
mov dword [ebp - 0x14], ebx
cmp dword [eax + 0x14], 8
jb 0x4b68c6
mov eax, dword [eax]
push eax
call esi
mov byte [ebp - 0xd], 1
test eax, eax
jne 0x4b68d5
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xa
test bl, 8
je 0x4b68f6
and ebx, 0xfffffff7
lea ecx, [ebp]
mov dword [ebp - 0x14], ebx
xor ebx, ebx
push ebx
push 1
call fcn.0040487e
jmp 0x4b68f8
xor ebx, ebx
cmp byte [ebp - 0xd], 0
je 0x4b69d6
sub esp, 0x18
lea eax, [ebp + 0x30]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.0040a3c1
mov byte [ebp - 4], 0x1c
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 0x48]
call fcn.004656c0
mov byte [ebp - 4], 0x1d
xor eax, eax
mov esi, 0x534f74
mov dword [ebp + 0x70], ebx
mov dword [ebp + 0x74], ebx
push esi
mov dword [ebp + 0x74], 7
mov dword [ebp + 0x70], ebx
mov word [ebp + 0x60], ax
call fcn.004d163d
pop ecx
push eax
push esi
lea ecx, [ebp + 0x60]
call fcn.00407b30
mov byte [ebp - 4], 0x1e
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp + 0x48]
call fcn.004658b0
mov byte [ebp - 4], 0x1d
lea ecx, [ebp + 0x60]
push ebx
push 1
call fcn.0040487e
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp + 0x48]
call fcn.00467040
mov esi, eax
mov byte [ebp - 4], 0x1f
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x18]
call fcn.00467040
mov byte [ebp - 4], 0x20
cmp dword [esi + 0x14], 8
jb 0x4b699c
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x4b69a4
mov eax, dword [eax]
push ebx
push esi
push eax
call edi
mov byte [ebp - 4], 0x1f
lea ecx, [ebp]
push ebx
push 1
call fcn.0040487e
mov byte [ebp - 4], 0x1d
lea ecx, [ebp + 0x60]
push ebx
push 1
call fcn.0040487e
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 0x48]
push ebx
push 1
call fcn.0040487e
mov byte [ebp - 4], 6
lea ecx, [ebp + 0x18]
push ebx
push 1
call fcn.0040487e
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
call fcn.0046f9f0
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x78]
push ebx
push 1
call fcn.0040487e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
push ebx
push 1
call fcn.0040487e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x90]
xor ecx, ebp
call fcn.004cb6da
lea esp, [ebp + 0x94]
pop ebp
ret