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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c58ab
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x502344]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x502344]
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 0x49436f
push str.AI_EXTERNALUIUNINSTALLERNAME
lea ecx, [esp + 0x6c]
call fcn.00401bf3
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 0x49436f
mov byte [esp + 0x13], 1
jmp 0x494376
xor esi, esi
mov byte [esp + 0x13], bl
inc esi
mov dword [esp + 0xe8], ebx
test byte [esp + 0x14], 2
je 0x494394
and dword [esp + 0x14], 0xfffffffd
push ebx
push esi
lea ecx, [esp + 0x24]
call fcn.0040115a
or dword [esp + 0xe8], 0xffffffff
test byte [esp + 0x14], 1
je 0x4943b3
and dword [esp + 0x14], 0xfffffffe
push ebx
push esi
lea ecx, [esp + 0x70]
call fcn.0040115a
cmp byte [esp + 0x13], bl
je 0x4947a6
push str.Installed
lea ecx, [esp + 0x6c]
call fcn.00401bf3
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.0040115a
or dword [esp + 0xe8], 0xffffffff
push ebx
push esi
lea ecx, [esp + 0x70]
call fcn.0040115a
cmp byte [esp + 0x13], bl
je 0x4947a6
lea eax, [esp + 0xbc]
push eax
mov ecx, edi
call fcn.0049413e
mov dword [esp + 0xe8], 4
lea eax, [esp + 0x84]
push eax
call fcn.0044b550
mov byte [esp + 0xe8], 5
lea eax, [esp + 0x38]
push eax
call fcn.0044a720
mov byte [esp + 0xe8], 6
mov eax, dword [edi + 0xc4]
cmp dword [eax + 0x138], ebx
je 0x4944d1
push eax
lea esi, [esp + 0x20]
call fcn.0048c794
mov byte [esp + 0xe8], 7
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x90]
call fcn.00401896
mov byte [esp + 0xe8], 6
mov eax, esi
push eax
call fcn.004131b5
mov eax, dword [edi + 0xc4]
add eax, 0x124
push eax
lea esi, [esp + 0x88]
call fcn.00413433
mov eax, esi
push eax
lea ebx, [esp + 0x3c]
call fcn.0044aa90
xor ebx, ebx
lea eax, [esp + 0xa0]
push eax
call fcn.0044b550
mov byte [esp + 0xe8], 8
mov edi, 0x4e4ea4
cmp dword [esp + 0x98], ebx
je 0x49451b
cmp dword [esp + 0x9c], 8
mov eax, dword [esp + 0x88]
jae 0x49450c
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49460c
lea esi, [esp + 0x1c]
call fcn.0044bb80
mov byte [esp + 0xe8], 9
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x90]
call fcn.00401896
mov byte [esp + 0xe8], 8
mov eax, esi
push eax
call fcn.004131b5
lea esi, [esp + 0x1c]
call fcn.0044ba00
mov byte [esp + 0xe8], 0xa
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xac]
call fcn.00401896
mov byte [esp + 0xe8], 8
mov eax, esi
push eax
call fcn.004131b5
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0xc0]
call fcn.0044b620
mov byte [esp + 0xe8], 0xb
lea edx, [esp + 0x1c]
mov ecx, eax
call fcn.0044c910
mov byte [esp + 0xe8], 0xc
push eax
lea esi, [esp + 0xa4]
call fcn.00413433
mov byte [esp + 0xe8], 0xb
push ebx
push 1
lea ecx, [esp + 0x24]
call fcn.0040115a
mov byte [esp + 0xe8], 8
lea eax, [esp + 0x68]
push eax
call fcn.004131b5
push edi
lea ecx, [esp + 0x6c]
call fcn.00401bf3
mov byte [esp + 0xe8], 0xd
lea eax, [esp + 0x68]
push eax
call fcn.0044b730
mov byte [esp + 0xe8], 8
push ebx
push 1
lea ecx, [esp + 0x70]
call fcn.0040115a
mov eax, dword [esp + 0xc0]
push 8
pop esi
cmp dword [esp + 0xd4], esi
jae 0x494626
lea eax, [esp + 0xc0]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00405d54
mov byte [esp + 0xe8], 0xe
push ebx
push ebx
lea ecx, [esp + 0x20]
call fcn.00450af0
pop ecx
pop ecx
mov byte [esp + 0xe8], 8
lea ecx, [esp + 0x18]
call fcn.004058e3
mov ecx, dword [esp + 0xc0]
cmp dword [esp + 0xd4], esi
jae 0x49466e
lea ecx, [esp + 0xc0]
mov eax, dword [esp + 0x88]
cmp dword [esp + 0x9c], esi
jae 0x494685
lea eax, [esp + 0x88]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [esp + 0xb4], ebx
je 0x494753
mov eax, dword [esp + 0xa4]
cmp dword [esp + 0xb8], esi
jae 0x4946b2
lea eax, [esp + 0xa4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x494753
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0xc0]
call fcn.0044b620
mov byte [esp + 0xe8], 0xf
push edi
lea ecx, [esp + 0x20]
call fcn.00401bf3
mov byte [esp + 0xe8], 0x10
lea eax, [esp + 0x1c]
push eax
lea esi, [esp + 0x6c]
call fcn.0044b730
mov byte [esp + 0xe8], 0xf
push ebx
push 1
lea ecx, [esp + 0x24]
call fcn.0040115a
cmp dword [esp + 0x80], 8
mov ecx, dword [esp + 0x6c]
jae 0x494720
lea ecx, [esp + 0x6c]
cmp dword [esp + 0xb8], 8
mov eax, dword [esp + 0xa4]
jae 0x494738
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.004131b5
mov byte [esp + 0xe8], 6
lea eax, [esp + 0xa0]
push eax
call fcn.004131b5
mov byte [esp + 0xe8], 5
lea eax, [esp + 0x38]
push eax
call fcn.0044a780
mov byte [esp + 0xe8], 4
lea eax, [esp + 0x84]
push eax
call fcn.004131b5
or dword [esp + 0xe8], 0xffffffff
push ebx
push 1
lea ecx, [esp + 0xc4]
call fcn.0040115a
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.0049cdcb
mov esp, ebp
pop ebp
ret