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

Disassembly:
push ebp
sub esp, 0x8c
lea ebp, [esp - 4]
mov eax, dword [0x4e52f4]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push 0x44
mov eax, 0x4b054c
call fcn.0048e4de
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x14], ebx
cmp dword [esi + 0xbc], ebx
jne 0x48193e
push str.AI_EXTERNALUIUNINSTALLERNAME
lea ecx, [ebp + 0x70]
call fcn.0040432c
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 0x481941
mov byte [ebp - 0xd], 1
jmp 0x481944
xor edi, edi
inc edi
mov byte [ebp - 0xd], bl
mov dword [ebp - 4], ebx
test byte [ebp - 0x14], 2
je 0x48195b
and dword [ebp - 0x14], 0xfffffffd
push ebx
push edi
lea ecx, [ebp - 0x50]
call fcn.004043a7
or dword [ebp - 4], 0xffffffff
test byte [ebp - 0x14], 1
je 0x481973
and dword [ebp - 0x14], 0xfffffffe
push ebx
push edi
lea ecx, [ebp + 0x70]
call fcn.004043a7
cmp byte [ebp - 0xd], bl
je 0x481c92
push str.Installed
lea ecx, [ebp + 0x70]
call fcn.0040432c
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.004043a7
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp + 0x70]
call fcn.004043a7
cmp byte [ebp - 0xd], bl
je 0x481c92
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.0048173a
mov dword [ebp - 4], 4
lea eax, [ebp + 0x54]
push eax
call fcn.00442400
mov byte [ebp - 4], 5
push edi
lea eax, [ebp - 0x50]
push eax
call fcn.004416e0
mov byte [ebp - 4], 6
mov eax, dword [esi + 0xc0]
cmp dword [eax + 0x130], ebx
je 0x481a9d
lea ecx, [eax + 4]
cmp dword [eax + 0x34], ebx
je 0x481a1c
lea ecx, [eax + 0x20]
lea eax, [ebp + 0x1c]
push eax
call fcn.004424d0
mov byte [ebp - 4], 7
lea edi, [ebp - 0x34]
lea ecx, [ebp + 0x1c]
call fcn.00443230
mov byte [ebp - 4], 8
lea ecx, [ebp + 0x70]
push ecx
mov ecx, eax
call fcn.00442460
mov byte [ebp - 4], 9
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x70]
push eax
lea ecx, [ebp + 0x54]
call fcn.00404072
mov byte [ebp - 4], 8
lea eax, [ebp + 0x70]
push eax
call fcn.0040ca60
mov byte [ebp - 4], 7
mov eax, edi
push eax
call fcn.0047ed56
mov eax, dword [esi + 0xc0]
add eax, 0x11c
push eax
lea ebx, [ebp + 0x54]
call fcn.0040ccde
mov eax, ebx
push eax
lea ebx, [ebp - 0x50]
call fcn.004419f0
mov byte [ebp - 4], 6
lea eax, [ebp + 0x1c]
push eax
call fcn.0040ca60
xor ebx, ebx
lea eax, [ebp + 0x38]
push eax
call fcn.00442400
mov byte [ebp - 4], 0xa
mov edi, 0x4ca5c4
cmp dword [ebp + 0x68], ebx
je 0x481acf
cmp dword [ebp + 0x6c], 8
mov eax, dword [ebp + 0x58]
jae 0x481ac0
lea eax, [ebp + 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x481b85
lea esi, [ebp - 0x34]
call fcn.00442970
mov byte [ebp - 4], 0xb
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x54]
call fcn.00404072
mov byte [ebp - 4], 0xa
mov eax, esi
push eax
call fcn.0040ca60
lea esi, [ebp - 0x34]
call fcn.004427f0
mov byte [ebp - 4], 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x38]
call fcn.00404072
mov byte [ebp - 4], 0xa
mov eax, esi
push eax
call fcn.0040ca60
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.004424d0
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x34]
mov ecx, eax
call fcn.00443090
mov byte [ebp - 4], 0xe
push eax
lea ebx, [ebp + 0x38]
call fcn.0040ccde
mov byte [ebp - 4], 0xd
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.004043a7
mov byte [ebp - 4], 0xa
lea eax, [ebp + 0x1c]
push eax
call fcn.0040ca60
push edi
lea ecx, [ebp + 0x1c]
call fcn.0040432c
mov byte [ebp - 4], 0xf
lea eax, [ebp + 0x1c]
push eax
mov esi, ebx
call fcn.00442550
mov byte [ebp - 4], 0xa
push 0
push 1
lea ecx, [ebp + 0x1c]
call fcn.004043a7
xor ebx, ebx
mov eax, dword [ebp + 4]
push 8
pop esi
cmp dword [ebp + 0x18], esi
jae 0x481b93
lea eax, [ebp + 4]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00412ade
mov byte [ebp - 4], 0x10
push ebx
push ebx
lea ecx, [ebp - 0x18]
call fcn.00446c10
pop ecx
pop ecx
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x18]
call fcn.00403d84
mov ecx, dword [ebp + 4]
cmp dword [ebp + 0x18], esi
jae 0x481bc4
lea ecx, [ebp + 4]
mov eax, dword [ebp + 0x58]
cmp dword [ebp + 0x6c], esi
jae 0x481bcf
lea eax, [ebp + 0x58]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [ebp + 0x4c], ebx
je 0x481c5c
mov eax, dword [ebp + 0x3c]
cmp dword [ebp + 0x50], esi
jae 0x481be8
lea eax, [ebp + 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x481c5c
lea eax, [ebp + 0x70]
push eax
lea ecx, [ebp]
call fcn.004424d0
mov byte [ebp - 4], 0x11
push edi
lea ecx, [ebp + 0x1c]
call fcn.0040432c
mov byte [ebp - 4], 0x12
lea eax, [ebp + 0x1c]
push eax
lea esi, [ebp + 0x70]
call fcn.00442550
mov byte [ebp - 4], 0x11
push ebx
push 1
lea ecx, [ebp + 0x1c]
call fcn.004043a7
cmp dword [ebp + 0x88], 8
mov ecx, dword [ebp + 0x74]
jae 0x481c3a
lea ecx, [ebp + 0x74]
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
jae 0x481c46
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.0040ca60
mov byte [ebp - 4], 6
lea eax, [ebp + 0x38]
push eax
call fcn.0040ca60
mov byte [ebp - 4], 5
lea eax, [ebp - 0x50]
push eax
call fcn.00441740
mov byte [ebp - 4], 4
lea eax, [ebp + 0x54]
push eax
call fcn.0040ca60
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp]
call fcn.004043a7
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.00489b1b
add ebp, 0x90
leave
ret