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

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x94
push 0xffffffffffffffff
push 0x520f4d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x57c080]
xor eax, ebp
mov dword [ebp + 0x90], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x14], ebx
inc ecx
mov dword [ebp - 0x1c], ecx
cmp dword [edi + 0x64], ebx
jne 0x4c4905
push str.AI_EXTERNALUIUNINSTALLERNAME
lea ecx, [ebp + 0x60]
call fcn.00404285
and dword [ebp - 4], ebx
lea edx, [ebp + 0x60]
mov ecx, dword [edi + 0x6c]
push edx
lea edx, [ebp + 0x78]
mov dword [ebp - 0x14], 1
push edx
mov eax, dword [ecx]
call dword [eax]
xor ecx, ecx
inc ecx
mov dword [ebp - 4], ecx
push 3
pop ebx
mov dword [ebp - 0x14], ebx
cmp dword [eax + 0x10], 0
mov byte [ebp - 0xd], cl
jne 0x4c4909
mov byte [ebp - 0xd], 0
and dword [ebp - 4], 0
test bl, 2
je 0x4c4920
and ebx, 0xfffffffd
lea ecx, [ebp + 0x78]
mov dword [ebp - 0x14], ebx
call fcn.0040569b
or dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4c4937
and ebx, 0xfffffffe
lea ecx, [ebp + 0x60]
mov dword [ebp - 0x14], ebx
call fcn.0040569b
cmp byte [ebp - 0xd], 0
je 0x4c4d08
push str.Installed
lea ecx, [ebp + 0x60]
call fcn.00404285
mov dword [ebp - 4], 2
lea edx, [ebp + 0x60]
mov ecx, dword [edi + 0x6c]
push edx
lea edx, [ebp + 0x78]
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 + 0x78]
call fcn.0040569b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x60]
call fcn.0040569b
test esi, esi
jne 0x4c4d08
lea eax, [ebp + 0x18]
mov ecx, edi
push eax
call fcn.004c4709
mov dword [ebp - 4], 4
xor eax, eax
and dword [ebp + 0x58], esi
and dword [ebp + 0x5c], esi
and dword [ebp + 0x58], esi
mov dword [ebp + 0x5c], 7
mov word [ebp + 0x48], ax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x40]
call fcn.0046e8f0
mov byte [ebp - 4], 8
mov ecx, dword [edi + 0x68]
cmp dword [ecx + 0x10c], esi
je 0x4c4a24
lea eax, [ebp + 0x78]
push eax
call fcn.004bb321
mov byte [ebp - 4], 9
lea ecx, [ebp + 0x48]
push eax
call fcn.00404232
mov byte [ebp - 4], 8
lea ecx, [ebp + 0x78]
call fcn.0040569b
mov eax, dword [edi + 0x68]
lea ecx, [ebp + 0x48]
add eax, 0xfc
push eax
call fcn.0043047c
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp + 0x48]
push ecx
cmp dword [ebp - 0x38], eax
je 0x4c4a1b
mov edx, eax
call fcn.0046f430
add dword [ebp - 0x3c], 0x18
pop ecx
jmp 0x4c4a24
push eax
lea ecx, [ebp - 0x40]
call fcn.0046f530
and dword [ebp + 0x40], 0
xor eax, eax
and dword [ebp + 0x44], 0
and dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 7
mov word [ebp + 0x30], ax
mov byte [ebp - 4], 0xe
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [ebp + 0x58], eax
je 0x4c4a75
lea eax, [ebp + 0x78]
push eax
lea ecx, [ebp + 0x48]
call fcn.0046d470
mov byte [ebp - 4], 0xf
or ebx, 4
mov dword [ebp - 0x14], ebx
cmp dword [eax + 0x14], 8
jb 0x4c4a6a
mov eax, dword [eax]
push eax
call esi
mov byte [ebp - 0xd], 0
test eax, eax
jne 0x4c4a79
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 0xe
test bl, 4
je 0x4c4a93
and ebx, 0xfffffffb
lea ecx, [ebp + 0x78]
mov dword [ebp - 0x14], ebx
call fcn.0040569b
cmp byte [ebp - 0xd], 0
je 0x4c4b65
lea ecx, [ebp + 0x78]
call fcn.0046b760
mov byte [ebp - 4], 0x10
lea ecx, [ebp + 0x48]
push eax
call fcn.00404232
mov byte [ebp - 4], 0xe
lea ecx, [ebp + 0x78]
call fcn.0040569b
lea ecx, [ebp + 0x78]
call fcn.0046b4d0
mov byte [ebp - 4], 0x13
lea ecx, [ebp + 0x30]
push eax
call fcn.00404232
mov byte [ebp - 4], 0xe
lea ecx, [ebp + 0x78]
call fcn.0040569b
lea eax, [ebp + 0x78]
push eax
sub esp, 0x18
lea eax, [ebp + 0x18]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
call fcn.00404b8e
mov byte [ebp - 4], 0x16
mov byte [ebp - 4], 0xe
lea ecx, [ebp + 0x60]
call fcn.0046aad0
mov byte [ebp - 4], 0x17
mov ecx, eax
call fcn.0046d400
mov byte [ebp - 4], 0x18
lea ecx, [ebp + 0x30]
push eax
call fcn.0043047c
mov byte [ebp - 4], 0x17
lea ecx, [ebp + 0x78]
call fcn.0040569b
mov byte [ebp - 4], 0xe
lea ecx, [ebp + 0x60]
call fcn.0040569b
push 0x5481fc
lea ecx, [ebp + 0x60]
call fcn.00404285
mov byte [ebp - 4], 0x1b
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp + 0x30]
call fcn.0046adc0
mov byte [ebp - 4], 0xe
lea ecx, [ebp + 0x60]
call fcn.0040569b
cmp dword [ebp + 0x2c], 8
lea eax, [ebp + 0x18]
lea ecx, [ebp - 0x18]
cmovae eax, dword [ebp + 0x18]
push eax
call fcn.0040d91c
mov byte [ebp - 4], 0x1c
xor dl, dl
push 0
lea ecx, [ebp - 0x18]
call fcn.0047abd0
pop ecx
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040d635
lea eax, [ebp + 0x78]
push eax
lea ecx, [ebp + 0x48]
call fcn.0046d470
mov byte [ebp - 4], 0x1e
lea ecx, [ebp + 0x18]
cmp dword [ebp + 0x2c], 8
cmovae ecx, dword [ebp + 0x18]
cmp dword [eax + 0x14], 8
jb 0x4c4bbc
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push ecx
push eax
call edi
mov byte [ebp - 4], 0xe
lea ecx, [ebp + 0x78]
call fcn.0040569b
cmp dword [ebp + 0x40], 0
je 0x4c4bff
lea eax, [ebp + 0x78]
push eax
lea ecx, [ebp + 0x30]
call fcn.0046d470
mov byte [ebp - 4], 0x1f
or ebx, 8
mov dword [ebp - 0x14], ebx
cmp dword [eax + 0x14], 8
jb 0x4c4bf8
mov eax, dword [eax]
push eax
call esi
test eax, eax
jne 0x4c4c03
mov byte [ebp - 0x1c], 0
mov dword [ebp - 4], 0xe
test bl, 8
je 0x4c4c1d
and ebx, 0xfffffff7
lea ecx, [ebp + 0x78]
mov dword [ebp - 0x14], ebx
call fcn.0040569b
cmp byte [ebp - 0x1c], 0
je 0x4c4cd8
sub esp, 0x18
lea eax, [ebp + 0x18]
mov ecx, esp
mov dword [ebp - 0x1c], esp
xor ebx, ebx
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00404b8e
mov byte [ebp - 4], 0x20
mov byte [ebp - 4], 0xe
lea ecx, [ebp + 0x60]
call fcn.0046aad0
mov byte [ebp - 4], 0x21
lea ecx, [ebp + 0x78]
push 0x5481fc
call fcn.00404285
mov byte [ebp - 4], 0x22
lea eax, [ebp + 0x78]
push eax
lea ecx, [ebp + 0x60]
call fcn.0046adc0
mov byte [ebp - 4], 0x21
lea ecx, [ebp + 0x78]
call fcn.0040569b
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x60]
call fcn.0046d470
mov esi, eax
mov byte [ebp - 4], 0x23
lea eax, [ebp + 0x78]
push eax
lea ecx, [ebp + 0x30]
call fcn.0046d470
mov byte [ebp - 4], 0x24
cmp dword [esi + 0x14], 8
jb 0x4c4ca7
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x4c4caf
mov eax, dword [eax]
push ebx
push esi
push eax
call edi
mov byte [ebp - 4], 0x23
lea ecx, [ebp + 0x78]
call fcn.0040569b
mov byte [ebp - 4], 0x21
lea ecx, [ebp]
call fcn.0040569b
mov byte [ebp - 4], 0xe
lea ecx, [ebp + 0x60]
call fcn.0040569b
mov byte [ebp - 4], 8
lea ecx, [ebp + 0x30]
call fcn.0040569b
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x40]
call fcn.0046e980
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x48]
call fcn.0040569b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.0040569b
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.004dab44
add ebp, 0x94
leave
ret