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

Disassembly:
push ebp
sub esp, 0x90
lea ebp, [esp - 4]
mov eax, dword [0x56d078]
xor eax, ebp
mov dword [ebp + 0x90], eax
push 0x30
mov eax, 0x5128d3
call fcn.004cea03
mov edi, ecx
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0x14], ebx
cmp dword [edi + 0x64], ecx
jne 0x4b8119
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.004d3ded
pop ecx
push eax
push esi
lea ecx, [ebp + 0x78]
call fcn.00407ba8
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 0x4b811c
mov byte [ebp - 0xd], cl
mov dword [ebp - 4], ecx
test bl, 2
je 0x4b8137
push ecx
and ebx, 0xfffffffd
lea ecx, [ebp + 0x48]
push 1
mov dword [ebp - 0x14], ebx
call fcn.004048ce
xor ecx, ecx
or dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4b8151
push ecx
and ebx, 0xfffffffe
lea ecx, [ebp + 0x78]
push 1
mov dword [ebp - 0x14], ebx
call fcn.004048ce
cmp byte [ebp - 0xd], 0
je 0x4b8590
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.004d3ded
pop ecx
push eax
push esi
lea ecx, [ebp + 0x78]
call fcn.00407ba8
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.004048ce
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x78]
push 0
push 1
call fcn.004048ce
test esi, esi
jne 0x4b8590
lea eax, [ebp + 0x30]
mov ecx, edi
push eax
call fcn.004b7eb7
mov dword [ebp - 4], 4
lea ecx, [ebp + 0x78]
call fcn.00465210
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
call fcn.0046fc70
mov byte [ebp - 4], 6
mov ecx, dword [edi + 0x68]
cmp dword [ecx + 0x108], esi
je 0x4b824f
lea eax, [ebp + 0x48]
push eax
call fcn.004ada41
mov byte [ebp - 4], 7
lea ecx, [ebp + 0x78]
push eax
call fcn.0045cc80
mov byte [ebp - 4], 6
lea ecx, [ebp + 0x48]
push esi
push 1
call fcn.004048ce
mov eax, dword [edi + 0x68]
lea ecx, [ebp + 0x78]
add eax, 0xf8
push eax
call fcn.00425d47
lea eax, [ebp + 0x78]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004706b0
lea ecx, [ebp + 0x18]
call fcn.00465210
mov byte [ebp - 4], 0xa
cmp dword [ebp + 0x88], 0
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
je 0x4b8293
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp + 0x78]
call fcn.00466ec0
mov byte [ebp - 4], 0xb
or ebx, 4
mov dword [ebp - 0x14], ebx
cmp dword [eax + 0x14], 8
jb 0x4b8288
mov eax, dword [eax]
push eax
call esi
mov byte [ebp - 0xd], 0
test eax, eax
jne 0x4b8297
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 0xa
test bl, 4
je 0x4b82b5
push 0
and ebx, 0xfffffffb
lea ecx, [ebp + 0x48]
push 1
mov dword [ebp - 0x14], ebx
call fcn.004048ce
cmp byte [ebp - 0xd], 0
je 0x4b83b0
lea ecx, [ebp + 0x48]
call fcn.00465ac0
mov byte [ebp - 4], 0xc
lea ecx, [ebp + 0x78]
push eax
call fcn.0045cc80
mov byte [ebp - 4], 0xa
xor edi, edi
push edi
push 1
lea ecx, [ebp + 0x48]
call fcn.004048ce
lea ecx, [ebp + 0x48]
call fcn.00465960
mov byte [ebp - 4], 0xf
lea ecx, [ebp + 0x18]
push eax
call fcn.0045cc80
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 0x48]
push edi
push 1
call fcn.004048ce
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.0040a832
mov byte [ebp - 4], 0x12
mov byte [ebp - 4], 0xa
lea ecx, [ebp]
call fcn.00465390
mov byte [ebp - 4], 0x13
mov ecx, eax
call fcn.00466e50
mov byte [ebp - 4], 0x14
lea ecx, [ebp + 0x18]
push eax
call fcn.00425d47
mov byte [ebp - 4], 0x13
lea ecx, [ebp + 0x48]
push edi
push 1
call fcn.004048ce
mov byte [ebp - 4], 0xa
lea ecx, [ebp]
push edi
push 1
call fcn.004048ce
xor eax, eax
mov edi, 0x538a9c
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.004d3ded
pop ecx
push eax
push edi
lea ecx, [ebp + 0x60]
call fcn.00407ba8
mov byte [ebp - 4], 0x17
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp + 0x18]
call fcn.00465640
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 0x60]
push 0
push 1
call fcn.004048ce
cmp dword [ebp + 0x44], 8
lea eax, [ebp + 0x30]
lea ecx, [ebp - 0x18]
cmovae eax, dword [ebp + 0x30]
push eax
call fcn.00409ea5
mov byte [ebp - 4], 0x18
xor dl, dl
push 0
lea ecx, [ebp - 0x18]
call fcn.00475740
pop ecx
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00406bb0
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x78]
call fcn.00466ec0
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 0x4b8407
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.004048ce
cmp dword [ebp + 0x28], 0
je 0x4b8452
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x18]
call fcn.00466ec0
mov byte [ebp - 4], 0x1b
or ebx, 8
mov dword [ebp - 0x14], ebx
cmp dword [eax + 0x14], 8
jb 0x4b8447
mov eax, dword [eax]
push eax
call esi
mov byte [ebp - 0xd], 1
test eax, eax
jne 0x4b8456
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xa
test bl, 8
je 0x4b8477
and ebx, 0xfffffff7
lea ecx, [ebp]
mov dword [ebp - 0x14], ebx
xor ebx, ebx
push ebx
push 1
call fcn.004048ce
jmp 0x4b8479
xor ebx, ebx
cmp byte [ebp - 0xd], 0
je 0x4b8557
sub esp, 0x18
lea eax, [ebp + 0x30]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.0040a832
mov byte [ebp - 4], 0x1c
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 0x48]
call fcn.00465390
mov byte [ebp - 4], 0x1d
xor eax, eax
mov esi, 0x538a9c
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.004d3ded
pop ecx
push eax
push esi
lea ecx, [ebp + 0x60]
call fcn.00407ba8
mov byte [ebp - 4], 0x1e
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp + 0x48]
call fcn.00465640
mov byte [ebp - 4], 0x1d
lea ecx, [ebp + 0x60]
push ebx
push 1
call fcn.004048ce
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp + 0x48]
call fcn.00466ec0
mov esi, eax
mov byte [ebp - 4], 0x1f
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x18]
call fcn.00466ec0
mov byte [ebp - 4], 0x20
cmp dword [esi + 0x14], 8
jb 0x4b851d
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x4b8525
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.004048ce
mov byte [ebp - 4], 0x1d
lea ecx, [ebp + 0x60]
push ebx
push 1
call fcn.004048ce
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 0x48]
push ebx
push 1
call fcn.004048ce
mov byte [ebp - 4], 6
lea ecx, [ebp + 0x18]
push ebx
push 1
call fcn.004048ce
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
call fcn.0046fd00
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x78]
push ebx
push 1
call fcn.004048ce
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
push ebx
push 1
call fcn.004048ce
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.004cde67
lea esp, [ebp + 0x94]
pop ebp
ret