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

Disassembly:
push ebp
sub esp, 0x90
lea ebp, [esp - 4]
mov eax, dword [0x56a078]
xor eax, ebp
mov dword [ebp + 0x90], eax
push 0x30
mov eax, 0x51344a
call fcn.004d0cf3
mov esi, ecx
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0x14], ebx
cmp dword [esi + 0x64], ecx
jne 0x4bc1bd
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.004d635d
pop ecx
push eax
push edi
lea ecx, [ebp + 0x78]
call fcn.004087b1
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 0x4bc1c0
mov byte [ebp - 0xd], cl
mov dword [ebp - 4], ecx
test bl, 2
je 0x4bc1db
push ecx
and ebx, 0xfffffffd
lea ecx, [ebp + 0x48]
push 1
mov dword [ebp - 0x14], ebx
call fcn.00404a7e
xor ecx, ecx
or dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4bc1f5
push ecx
and ebx, 0xfffffffe
lea ecx, [ebp + 0x78]
push 1
mov dword [ebp - 0x14], ebx
call fcn.00404a7e
cmp byte [ebp - 0xd], 0
je 0x4bc643
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.004d635d
pop ecx
push eax
push edi
lea ecx, [ebp + 0x78]
call fcn.004087b1
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.00404a7e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x78]
push 0
push 1
call fcn.00404a7e
test bl, bl
je 0x4bc643
lea eax, [ebp + 0x30]
mov ecx, esi
push eax
call fcn.004bbf53
mov dword [ebp - 4], 4
lea ecx, [ebp + 0x78]
call fcn.00463270
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
call fcn.0046c470
mov byte [ebp - 4], 6
mov ecx, dword [esi + 0x68]
cmp dword [ecx + 0xf0], 0
je 0x4bc2fa
lea eax, [ebp + 0x48]
push eax
call fcn.004b2ce4
mov byte [ebp - 4], 7
lea ecx, [ebp + 0x78]
push eax
call fcn.00465250
mov byte [ebp - 4], 6
lea ecx, [ebp + 0x48]
push 0
push 1
call fcn.00404a7e
mov eax, dword [esi + 0x68]
lea ecx, [ebp + 0x78]
add eax, 0xe0
push eax
call fcn.004238fd
lea eax, [ebp + 0x78]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0046cee0
lea ecx, [ebp + 0x18]
call fcn.00463270
mov byte [ebp - 4], 0xa
cmp dword [ebp + 0x88], 0
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
je 0x4bc343
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp + 0x78]
call fcn.00464c00
mov byte [ebp - 4], 0xb
mov ebx, dword [ebp - 0x14]
or ebx, 4
mov dword [ebp - 0x14], ebx
cmp dword [eax + 0x14], 8
jb 0x4bc336
mov eax, dword [eax]
push eax
call esi
test eax, eax
je 0x4bc346
mov byte [ebp - 0xd], 0
jmp 0x4bc34a
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 0xa
test bl, 4
je 0x4bc368
push 0
and ebx, 0xfffffffb
lea ecx, [ebp + 0x48]
push 1
mov dword [ebp - 0x14], ebx
call fcn.00404a7e
cmp byte [ebp - 0xd], 0
je 0x4bc463
lea ecx, [ebp + 0x48]
call fcn.00463940
mov byte [ebp - 4], 0xc
lea ecx, [ebp + 0x78]
push eax
call fcn.00465250
mov byte [ebp - 4], 0xa
xor edi, edi
push edi
push 1
lea ecx, [ebp + 0x48]
call fcn.00404a7e
lea ecx, [ebp + 0x48]
call fcn.004637e0
mov byte [ebp - 4], 0xf
lea ecx, [ebp + 0x18]
push eax
call fcn.00465250
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 0x48]
push edi
push 1
call fcn.00404a7e
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.00409d72
mov byte [ebp - 4], 0x12
mov byte [ebp - 4], 0xa
lea ecx, [ebp]
call fcn.004632d0
mov byte [ebp - 4], 0x13
mov ecx, eax
call fcn.00464b90
mov byte [ebp - 4], 0x14
lea ecx, [ebp + 0x18]
push eax
call fcn.004238fd
mov byte [ebp - 4], 0x13
lea ecx, [ebp + 0x48]
push edi
push 1
call fcn.00404a7e
mov byte [ebp - 4], 0xa
lea ecx, [ebp]
push edi
push 1
call fcn.00404a7e
xor eax, eax
mov edi, 0x537fc4
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.004d635d
pop ecx
push eax
push edi
lea ecx, [ebp + 0x60]
call fcn.004087b1
mov byte [ebp - 4], 0x17
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp + 0x18]
call fcn.004634c0
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 0x60]
push 0
push 1
call fcn.00404a7e
cmp dword [ebp + 0x44], 8
lea eax, [ebp + 0x30]
lea ecx, [ebp - 0x18]
cmovae eax, dword [ebp + 0x30]
push eax
call fcn.004093f6
mov byte [ebp - 4], 0x18
xor dl, dl
push 0
lea ecx, [ebp - 0x18]
call fcn.00471b90
pop ecx
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x78]
call fcn.00464c00
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 0x4bc4ba
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.00404a7e
cmp dword [ebp + 0x28], 0
je 0x4bc505
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x18]
call fcn.00464c00
mov byte [ebp - 4], 0x1b
or ebx, 8
mov dword [ebp - 0x14], ebx
cmp dword [eax + 0x14], 8
jb 0x4bc4fa
mov eax, dword [eax]
push eax
call esi
mov byte [ebp - 0xd], 1
test eax, eax
jne 0x4bc509
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xa
test bl, 8
je 0x4bc52a
and ebx, 0xfffffff7
lea ecx, [ebp]
mov dword [ebp - 0x14], ebx
xor ebx, ebx
push ebx
push 1
call fcn.00404a7e
jmp 0x4bc52c
xor ebx, ebx
cmp byte [ebp - 0xd], 0
je 0x4bc60a
sub esp, 0x18
lea eax, [ebp + 0x30]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00409d72
mov byte [ebp - 4], 0x1c
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 0x48]
call fcn.004632d0
mov byte [ebp - 4], 0x1d
xor eax, eax
mov esi, 0x537fc4
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.004d635d
pop ecx
push eax
push esi
lea ecx, [ebp + 0x60]
call fcn.004087b1
mov byte [ebp - 4], 0x1e
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp + 0x48]
call fcn.004634c0
mov byte [ebp - 4], 0x1d
lea ecx, [ebp + 0x60]
push ebx
push 1
call fcn.00404a7e
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp + 0x48]
call fcn.00464c00
mov esi, eax
mov byte [ebp - 4], 0x1f
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x18]
call fcn.00464c00
mov byte [ebp - 4], 0x20
cmp dword [esi + 0x14], 8
jb 0x4bc5d0
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x4bc5d8
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.00404a7e
mov byte [ebp - 4], 0x1d
lea ecx, [ebp + 0x60]
push ebx
push 1
call fcn.00404a7e
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 0x48]
push ebx
push 1
call fcn.00404a7e
mov byte [ebp - 4], 6
lea ecx, [ebp + 0x18]
push ebx
push 1
call fcn.00404a7e
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
call fcn.0046c500
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x78]
push ebx
push 1
call fcn.00404a7e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
push ebx
push 1
call fcn.00404a7e
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.004d014c
lea esp, [ebp + 0x94]
pop ebp
ret