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

Disassembly:
push ebp
sub esp, 0x8c
lea ebp, [esp - 4]
mov eax, dword [0x4d7488]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push 0x44
mov eax, 0x4a55f8
call fcn.00486f5e
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x14], ebx
cmp dword [esi + 0xbc], ebx
jne 0x47ba5a
push str.AI_ExternalUiUninstallerName
lea ecx, [ebp + 0x70]
call fcn.00403b1e
mov dword [ebp - 4], ebx
mov ecx, dword [esi + 0xc4]
mov eax, dword [ecx]
lea edx, [ebp + 0x70]
push edx
xor edi, edi
lea edx, [ebp - 0x50]
inc edi
push edx
mov dword [ebp - 0x14], edi
call dword [eax]
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], 3
cmp dword [eax + 0x14], ebx
je 0x47ba5d
mov byte [ebp - 0xd], 1
jmp 0x47ba60
xor edi, edi
inc edi
mov byte [ebp - 0xd], bl
mov dword [ebp - 4], ebx
test byte [ebp - 0x14], 2
je 0x47ba77
and dword [ebp - 0x14], 0xfffffffd
push ebx
push edi
lea ecx, [ebp - 0x50]
call fcn.00403ecf
or dword [ebp - 4], 0xffffffff
test byte [ebp - 0x14], 1
je 0x47ba8f
and dword [ebp - 0x14], 0xfffffffe
push ebx
push edi
lea ecx, [ebp + 0x70]
call fcn.00403ecf
cmp byte [ebp - 0xd], bl
je 0x47bdb3
push str.Installed
lea ecx, [ebp + 0x70]
call fcn.00403b1e
mov dword [ebp - 4], 2
mov ecx, dword [esi + 0xc4]
mov eax, dword [ecx]
lea edx, [ebp + 0x70]
push edx
lea edx, [ebp - 0x50]
push edx
call dword [eax]
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], ebx
sete byte [ebp - 0xd]
mov byte [ebp - 4], 2
push ebx
push edi
lea ecx, [ebp - 0x50]
call fcn.00403ecf
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp + 0x70]
call fcn.00403ecf
cmp byte [ebp - 0xd], bl
je 0x47bdb3
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.0047b856
mov dword [ebp - 4], 4
lea eax, [ebp + 0x54]
push eax
call fcn.0043f790
mov byte [ebp - 4], 5
push edi
lea eax, [ebp - 0x50]
push eax
call fcn.0043eaa0
mov byte [ebp - 4], 6
mov eax, dword [esi + 0xc0]
cmp dword [eax + 0x130], ebx
je 0x47bbbe
cmp dword [eax + 0x34], ebx
jne 0x47bb37
add eax, 4
jmp 0x47bb3a
add eax, 0x20
lea ecx, [ebp + 0x1c]
push ecx
mov ecx, eax
call fcn.0043f7f0
mov byte [ebp - 4], 7
lea edx, [ebp - 0x34]
lea ecx, [ebp + 0x1c]
call fcn.00440500
mov byte [ebp - 4], 8
lea ecx, [ebp + 0x70]
push ecx
mov ecx, eax
call fcn.0043f7f0
mov byte [ebp - 4], 9
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x70]
push eax
lea ecx, [ebp + 0x54]
call fcn.00403dd9
mov byte [ebp - 4], 8
lea eax, [ebp + 0x70]
push eax
call fcn.0040c1a7
mov byte [ebp - 4], 7
lea eax, [ebp - 0x34]
push eax
call fcn.00473181
mov eax, dword [esi + 0xc0]
add eax, 0x11c
push eax
lea ebx, [ebp + 0x54]
call fcn.0040c427
mov eax, ebx
push eax
lea ebx, [ebp - 0x50]
call fcn.0043ed90
mov byte [ebp - 4], 6
lea eax, [ebp + 0x1c]
push eax
call fcn.0040c1a7
xor ebx, ebx
lea eax, [ebp + 0x38]
push eax
call fcn.0043f790
mov byte [ebp - 4], 0xa
mov edi, 0x4bdc3c
cmp dword [ebp + 0x68], ebx
je 0x47bbf0
cmp dword [ebp + 0x6c], 8
mov eax, dword [ebp + 0x58]
jae 0x47bbe1
lea eax, [ebp + 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47bca6
lea esi, [ebp - 0x34]
call fcn.0043fc90
mov byte [ebp - 4], 0xb
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x54]
call fcn.00403dd9
mov byte [ebp - 4], 0xa
mov eax, esi
push eax
call fcn.0040c1a7
lea esi, [ebp - 0x34]
call fcn.0043fb10
mov byte [ebp - 4], 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x38]
call fcn.00403dd9
mov byte [ebp - 4], 0xa
mov eax, esi
push eax
call fcn.0040c1a7
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.0043f7f0
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x34]
mov ecx, eax
call fcn.004403c0
mov byte [ebp - 4], 0xe
push eax
lea ebx, [ebp + 0x38]
call fcn.0040c427
mov byte [ebp - 4], 0xd
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00403ecf
mov byte [ebp - 4], 0xa
lea eax, [ebp + 0x1c]
push eax
call fcn.0040c1a7
push edi
lea ecx, [ebp + 0x1c]
call fcn.00403b1e
mov byte [ebp - 4], 0xf
lea eax, [ebp + 0x1c]
push eax
mov esi, ebx
call fcn.0043f870
mov byte [ebp - 4], 0xa
push 0
push 1
lea ecx, [ebp + 0x1c]
call fcn.00403ecf
xor ebx, ebx
mov eax, dword [ebp + 4]
push 8
pop esi
cmp dword [ebp + 0x18], esi
jae 0x47bcb4
lea eax, [ebp + 4]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00411bf8
mov byte [ebp - 4], 0x10
push ebx
push ebx
lea ecx, [ebp - 0x18]
call fcn.00444860
pop ecx
pop ecx
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x18]
call fcn.00403833
mov ecx, dword [ebp + 4]
cmp dword [ebp + 0x18], esi
jae 0x47bce5
lea ecx, [ebp + 4]
mov eax, dword [ebp + 0x58]
cmp dword [ebp + 0x6c], esi
jae 0x47bcf0
lea eax, [ebp + 0x58]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [ebp + 0x4c], ebx
je 0x47bd7d
mov eax, dword [ebp + 0x3c]
cmp dword [ebp + 0x50], esi
jae 0x47bd09
lea eax, [ebp + 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47bd7d
lea eax, [ebp + 0x70]
push eax
lea ecx, [ebp]
call fcn.0043f7f0
mov byte [ebp - 4], 0x11
push edi
lea ecx, [ebp + 0x1c]
call fcn.00403b1e
mov byte [ebp - 4], 0x12
lea eax, [ebp + 0x1c]
push eax
lea esi, [ebp + 0x70]
call fcn.0043f870
mov byte [ebp - 4], 0x11
push ebx
push 1
lea ecx, [ebp + 0x1c]
call fcn.00403ecf
cmp dword [ebp + 0x88], 8
mov ecx, dword [ebp + 0x74]
jae 0x47bd5b
lea ecx, [ebp + 0x74]
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
jae 0x47bd67
lea eax, [ebp + 0x3c]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov byte [ebp - 4], 0xa
lea eax, [ebp + 0x70]
push eax
call fcn.0040c1a7
mov byte [ebp - 4], 6
lea eax, [ebp + 0x38]
push eax
call fcn.0040c1a7
mov byte [ebp - 4], 5
lea eax, [ebp - 0x50]
push eax
call fcn.0043eb00
mov byte [ebp - 4], 4
lea eax, [ebp + 0x54]
push eax
call fcn.0040c1a7
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp]
call fcn.00403ecf
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0048297b
add ebp, 0x90
leave
ret