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

Disassembly:
push ebp
sub esp, 0x90
lea ebp, [esp - 4]
mov eax, dword [0x5651c0]
xor eax, ebp
mov dword [ebp + 0x90], eax
push 0x30
mov eax, 0x5108b5
call fcn.004d2c19
mov esi, ecx
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0x14], ebx
cmp dword [esi + 0x64], ecx
jne 0x4bb242
xor eax, eax
mov dword [ebp + 0x88], ecx
mov edi, str.AI_EXTERNALUIUNINSTALLERNAME
mov dword [ebp + 0x8c], ecx
push edi
mov dword [ebp + 0x8c], 7
mov dword [ebp + 0x88], ecx
mov word [ebp + 0x78], ax
call fcn.004d828d
pop ecx
push eax
push edi
lea ecx, [ebp + 0x78]
call fcn.004087d4
and dword [ebp - 4], ebx
lea edx, [ebp + 0x78]
mov ecx, dword [esi + 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 0x4bb245
mov byte [ebp - 0xd], cl
mov dword [ebp - 4], ecx
test bl, 2
je 0x4bb260
push ecx
and ebx, 0xfffffffd
lea ecx, [ebp + 0x48]
push 1
mov dword [ebp - 0x14], ebx
call fcn.00404a9e
xor ecx, ecx
or dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4bb27a
push ecx
and ebx, 0xfffffffe
lea ecx, [ebp + 0x78]
push 1
mov dword [ebp - 0x14], ebx
call fcn.00404a9e
cmp byte [ebp - 0xd], 0
je 0x4bb6c8
xor ebx, ebx
xor eax, eax
mov edi, str.Installed
mov dword [ebp + 0x88], ebx
mov dword [ebp + 0x8c], ebx
push edi
mov dword [ebp + 0x8c], 7
mov dword [ebp + 0x88], ebx
mov word [ebp + 0x78], ax
call fcn.004d828d
pop ecx
push eax
push edi
lea ecx, [ebp + 0x78]
call fcn.004087d4
mov dword [ebp - 4], 2
lea edx, [ebp + 0x78]
mov ecx, dword [esi + 0x6c]
push edx
lea edx, [ebp + 0x48]
push edx
mov eax, dword [ecx]
call dword [eax]
mov byte [ebp - 4], 3
cmp dword [eax + 0x10], ebx
sete bl
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp + 0x48]
call fcn.00404a9e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x78]
push 0
push 1
call fcn.00404a9e
test bl, bl
je 0x4bb6c8
lea eax, [ebp + 0x30]
mov ecx, esi
push eax
call fcn.004bafd8
mov dword [ebp - 4], 4
lea ecx, [ebp + 0x78]
call fcn.00462f50
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
call fcn.0046bc10
mov byte [ebp - 4], 6
mov ecx, dword [esi + 0x68]
cmp dword [ecx + 0xf0], 0
je 0x4bb37f
lea eax, [ebp + 0x48]
push eax
call fcn.004b2076
mov byte [ebp - 4], 7
lea ecx, [ebp + 0x78]
push eax
call fcn.00464f40
mov byte [ebp - 4], 6
lea ecx, [ebp + 0x48]
push 0
push 1
call fcn.00404a9e
mov eax, dword [esi + 0x68]
lea ecx, [ebp + 0x78]
add eax, 0xe0
push eax
call fcn.0042384b
lea eax, [ebp + 0x78]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0046c680
lea ecx, [ebp + 0x18]
call fcn.00462f50
mov byte [ebp - 4], 0xa
cmp dword [ebp + 0x88], 0
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
je 0x4bb3c8
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp + 0x78]
call fcn.004648e0
mov byte [ebp - 4], 0xb
mov ebx, dword [ebp - 0x14]
or ebx, 4
mov dword [ebp - 0x14], ebx
cmp dword [eax + 0x14], 8
jb 0x4bb3bb
mov eax, dword [eax]
push eax
call esi
test eax, eax
je 0x4bb3cb
mov byte [ebp - 0xd], 0
jmp 0x4bb3cf
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 0xa
test bl, 4
je 0x4bb3ed
push 0
and ebx, 0xfffffffb
lea ecx, [ebp + 0x48]
push 1
mov dword [ebp - 0x14], ebx
call fcn.00404a9e
cmp byte [ebp - 0xd], 0
je 0x4bb4e8
lea ecx, [ebp + 0x48]
call fcn.00463620
mov byte [ebp - 4], 0xc
lea ecx, [ebp + 0x78]
push eax
call fcn.00464f40
mov byte [ebp - 4], 0xa
xor edi, edi
push edi
push 1
lea ecx, [ebp + 0x48]
call fcn.00404a9e
lea ecx, [ebp + 0x48]
call fcn.004634c0
mov byte [ebp - 4], 0xf
lea ecx, [ebp + 0x18]
push eax
call fcn.00464f40
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 0x48]
push edi
push 1
call fcn.00404a9e
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.00409d95
mov byte [ebp - 4], 0x12
mov byte [ebp - 4], 0xa
lea ecx, [ebp]
call fcn.00462fb0
mov byte [ebp - 4], 0x13
mov ecx, eax
call fcn.00464870
mov byte [ebp - 4], 0x14
lea ecx, [ebp + 0x18]
push eax
call fcn.0042384b
mov byte [ebp - 4], 0x13
lea ecx, [ebp + 0x48]
push edi
push 1
call fcn.00404a9e
mov byte [ebp - 4], 0xa
lea ecx, [ebp]
push edi
push 1
call fcn.00404a9e
xor eax, eax
mov edi, 0x532640
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.004d828d
pop ecx
push eax
push edi
lea ecx, [ebp + 0x60]
call fcn.004087d4
mov byte [ebp - 4], 0x17
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp + 0x18]
call fcn.004631a0
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 0x60]
push 0
push 1
call fcn.00404a9e
cmp dword [ebp + 0x44], 8
lea eax, [ebp + 0x30]
lea ecx, [ebp - 0x18]
cmovae eax, dword [ebp + 0x30]
push eax
call fcn.00409419
mov byte [ebp - 4], 0x18
xor dl, dl
push 0
lea ecx, [ebp - 0x18]
call fcn.00471150
pop ecx
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00406df6
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x78]
call fcn.004648e0
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 0x4bb53f
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.00404a9e
cmp dword [ebp + 0x28], 0
je 0x4bb58a
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x18]
call fcn.004648e0
mov byte [ebp - 4], 0x1b
or ebx, 8
mov dword [ebp - 0x14], ebx
cmp dword [eax + 0x14], 8
jb 0x4bb57f
mov eax, dword [eax]
push eax
call esi
mov byte [ebp - 0xd], 1
test eax, eax
jne 0x4bb58e
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xa
test bl, 8
je 0x4bb5af
and ebx, 0xfffffff7
lea ecx, [ebp]
mov dword [ebp - 0x14], ebx
xor ebx, ebx
push ebx
push 1
call fcn.00404a9e
jmp 0x4bb5b1
xor ebx, ebx
cmp byte [ebp - 0xd], 0
je 0x4bb68f
sub esp, 0x18
lea eax, [ebp + 0x30]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00409d95
mov byte [ebp - 4], 0x1c
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 0x48]
call fcn.00462fb0
mov byte [ebp - 4], 0x1d
xor eax, eax
mov esi, 0x532640
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.004d828d
pop ecx
push eax
push esi
lea ecx, [ebp + 0x60]
call fcn.004087d4
mov byte [ebp - 4], 0x1e
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp + 0x48]
call fcn.004631a0
mov byte [ebp - 4], 0x1d
lea ecx, [ebp + 0x60]
push ebx
push 1
call fcn.00404a9e
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp + 0x48]
call fcn.004648e0
mov esi, eax
mov byte [ebp - 4], 0x1f
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x18]
call fcn.004648e0
mov byte [ebp - 4], 0x20
cmp dword [esi + 0x14], 8
jb 0x4bb655
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x4bb65d
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.00404a9e
mov byte [ebp - 4], 0x1d
lea ecx, [ebp + 0x60]
push ebx
push 1
call fcn.00404a9e
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 0x48]
push ebx
push 1
call fcn.00404a9e
mov byte [ebp - 4], 6
lea ecx, [ebp + 0x18]
push ebx
push 1
call fcn.00404a9e
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
call fcn.0046bca0
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x78]
push ebx
push 1
call fcn.00404a9e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
push ebx
push 1
call fcn.00404a9e
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.004d207d
lea esp, [ebp + 0x94]
pop ebp
ret