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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x602851
mov eax, dword fs:[0]
push eax
sub esp, 0x900
mov eax, dword [0x69001c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x8dc], eax
xor ecx, ecx
mov dword [ebp - 0x8d8], ecx
cmp dword [eax + 0x64], ecx
jne 0x56ed4c
mov edi, dword [eax + 0x6c]
push 0x1c
push str.AI_EXTERNALUIUNINSTALLERNAME
mov eax, dword [edi]
mov dword [ebp - 0x818], ecx
mov dword [ebp - 0x828], ecx
mov dword [ebp - 0x814], ecx
mov esi, dword [eax]
xor eax, eax
mov dword [ebp - 0x818], ecx
lea ecx, [ebp - 0x828]
mov dword [ebp - 0x814], 7
mov word [ebp - 0x828], ax
call fcn.00406e80
mov dword [ebp - 4], 0
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x840]
mov dword [ebp - 0x8d8], 1
push eax
mov ecx, edi
call esi
mov dword [ebp - 4], 1
mov ecx, 3
mov dword [ebp - 0x8d8], ecx
cmp dword [eax + 0x10], 0
mov byte [ebp - 0x8d1], 1
jne 0x56ed53
mov byte [ebp - 0x8d1], 0
mov dword [ebp - 4], 0
test cl, 2
je 0x56ed79
and ecx, 0xfffffffd
mov dword [ebp - 0x8d8], ecx
lea ecx, [ebp - 0x840]
call fcn.004075e0
mov ecx, dword [ebp - 0x8d8]
mov dword [ebp - 4], 0xffffffff
test cl, 1
je 0x56ed99
and ecx, 0xfffffffe
mov dword [ebp - 0x8d8], ecx
lea ecx, [ebp - 0x828]
call fcn.004075e0
cmp byte [ebp - 0x8d1], 0
je 0x56f697
mov edi, dword [ebp - 0x8dc]
lea ecx, [ebp - 0x828]
push 9
push str.Installed
mov edi, dword [edi + 0x6c]
mov eax, dword [edi]
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 0
mov esi, dword [eax]
xor eax, eax
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 7
mov word [ebp - 0x828], ax
call fcn.00406e80
mov dword [ebp - 4], 2
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x840]
mov ecx, edi
push eax
call esi
mov byte [ebp - 4], 3
mov esi, dword [eax + 0x10]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x840]
call fcn.004075e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.004075e0
test esi, esi
jne 0x56f697
mov edi, dword [ebp - 0x8dc]
lea eax, [ebp - 0x828]
push eax
mov ecx, edi
call fcn.0056eae0
mov dword [ebp - 4], 4
xor eax, eax
mov dword [ebp - 0x858], esi
mov dword [ebp - 0x848], esi
mov dword [ebp - 0x844], esi
mov dword [ebp - 0x848], esi
mov dword [ebp - 0x844], 7
mov word [ebp - 0x858], ax
mov byte [ebp - 4], 7
mov dword [ebp - 0x908], eax
mov dword [ebp - 0x904], eax
mov dword [ebp - 0x900], eax
mov byte [ebp - 4], 8
mov dword [ebp - 0x8fc], eax
mov dword [ebp - 0x8f8], eax
mov dword [ebp - 0x8f4], eax
mov byte [ebp - 4], 9
mov dword [ebp - 0x8f0], eax
mov dword [ebp - 0x8ec], eax
mov dword [ebp - 0x8e8], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [edi + 0x68]
cmp dword [ecx + 0x100], eax
je 0x56ef8f
lea eax, [ebp - 0x840]
push eax
call fcn.0055ed10
mov esi, eax
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x858]
cmp eax, esi
je 0x56ef31
mov ecx, eax
call fcn.004075e0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x858], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x848], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x840]
call fcn.004075e0
mov eax, dword [edi + 0x68]
lea ecx, [ebp - 0x858]
add eax, 0xf0
push eax
call fcn.004b0d10
mov eax, dword [ebp - 0x904]
lea ecx, [ebp - 0x858]
push ecx
cmp eax, dword [ebp - 0x900]
je 0x56ef83
mov ecx, eax
mov dword [ebp - 0x8dc], eax
call fcn.00406350
mov byte [ebp - 4], 0xb
add dword [ebp - 0x904], 0x18
jmp 0x56ef8f
push eax
lea ecx, [ebp - 0x908]
call fcn.004e5630
xor eax, eax
mov dword [ebp - 0x888], 0
mov dword [ebp - 0x878], 0
mov dword [ebp - 0x874], 0
mov dword [ebp - 0x878], 0
mov dword [ebp - 0x874], 7
mov word [ebp - 0x888], ax
mov byte [ebp - 4], 0x15
cmp dword [ebp - 0x848], eax
je 0x56f015
lea eax, [ebp - 0x840]
push eax
lea ecx, [ebp - 0x858]
call fcn.004f1640
mov byte [ebp - 4], 0x16
mov edi, dword [ebp - 0x8d8]
or edi, 4
mov dword [ebp - 0x8d8], edi
cmp dword [eax + 0x14], 8
jb 0x56f003
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 0x8d1], 0
test eax, eax
jne 0x56f01c
mov byte [ebp - 0x8d1], 1
mov dword [ebp - 4], 0x15
mov eax, dword [ebp - 0x8d8]
test al, 4
je 0x56f041
and eax, 0xfffffffb
lea ecx, [ebp - 0x840]
mov dword [ebp - 0x8d8], eax
call fcn.004075e0
cmp byte [ebp - 0x8d1], 0
je 0x56f3d3
lea ecx, [ebp - 0x840]
call fcn.004f0e00
mov esi, eax
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x858]
cmp eax, esi
je 0x56f0a0
mov ecx, eax
call fcn.004075e0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x858], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x848], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
nop word [eax + eax]
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x840]
call fcn.004075e0
mov byte [ebp - 4], 0x1a
lea eax, [ebp - 0x810]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x8d0], 0
lea ecx, [ebp - 0x810]
mov dword [ebp - 0x8c0], 0
mov dword [ebp - 0x8bc], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x8c0], 0
mov dword [ebp - 0x8bc], 7
mov word [ebp - 0x8d0], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x56f110
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x8d0]
call fcn.00406e80
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0x8d0]
push 1
sub esp, 0x18
mov dword [ebp - 0x8dc], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x90c], esp
push eax
call fcn.00406350
mov byte [ebp - 4], 0x1c
mov byte [ebp - 4], 0x1b
mov ecx, esi
call fcn.004f1920
add esp, 0x18
mov byte [ebp - 4], 0x1d
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x840]
call fcn.004f1d70
mov byte [ebp - 4], 0x20
xor eax, eax
mov dword [ebp - 0x8a0], 0
mov dword [ebp - 0x890], 0
mov dword [ebp - 0x88c], 0
mov dword [ebp - 0x890], 0
mov dword [ebp - 0x88c], 7
mov word [ebp - 0x8a0], ax
mov dword [ebp - 4], 0x20
lea eax, [ebp - 0x8a0]
mov edi, dword [ebp - 0x8d8]
lea ecx, [ebp - 0x840]
or edi, 0x20
push eax
mov dword [ebp - 0x8d8], edi
call fcn.004f0670
mov eax, edi
and eax, 0xffffffdf
mov dword [ebp - 0x8d8], eax
mov dword [ebp - 4], 0x1f
or eax, 0x10
mov dword [ebp - 0x8d8], eax
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x840]
call fcn.004075e0
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x8d0]
call fcn.004075e0
lea ecx, [ebp - 0x888]
call fcn.004075e0
movups xmm0, xmmword [ebp - 0x8a0]
mov edi, dword [ebp - 0x8d8]
xor eax, eax
and edi, 0xffffffef
mov word [ebp - 0x8a0], ax
movups xmmword [ebp - 0x888], xmm0
movq xmm0, qword [ebp - 0x890]
movq qword [ebp - 0x878], xmm0
mov dword [ebp - 0x890], 0
mov dword [ebp - 0x88c], 7
mov dword [ebp - 0x8d8], edi
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x8a0]
call fcn.004075e0
push 1
sub esp, 0x18
lea eax, [ebp - 0x828]
mov dword [ebp - 0x8e0], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x8e4], esp
push eax
call fcn.00406350
mov byte [ebp - 4], 0x27
mov byte [ebp - 4], 0x15
mov ecx, esi
call fcn.004f1920
add esp, 0x18
mov byte [ebp - 4], 0x28
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x840]
call fcn.004f1d70
mov byte [ebp - 4], 0x2b
xor eax, eax
mov dword [ebp - 0x8b8], 0
lea ecx, [ebp - 0x840]
mov word [ebp - 0x8b8], ax
or edi, 0x40
lea eax, [ebp - 0x8b8]
mov dword [ebp - 0x8a8], 0
mov dword [ebp - 0x8a4], 0
push eax
mov dword [ebp - 0x8a8], 0
mov dword [ebp - 0x8a4], 7
mov dword [ebp - 0x8d8], edi
call fcn.004f1470
lea eax, [ebp - 0x8b8]
push eax
lea ecx, [ebp - 0x888]
call fcn.004b0d10
and edi, 0xffffffbf
mov dword [ebp - 0x8d8], edi
mov byte [ebp - 4], 0x2a
lea ecx, [ebp - 0x8b8]
call fcn.004075e0
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x840]
call fcn.004075e0
push 3
xor eax, eax
mov dword [ebp - 0x870], 0
mov dword [ebp - 0x860], 0
lea ecx, [ebp - 0x870]
mov dword [ebp - 0x85c], 0
push 0x6344a4
mov dword [ebp - 0x860], 0
mov dword [ebp - 0x85c], 7
mov word [ebp - 0x870], ax
call fcn.00406e80
mov byte [ebp - 4], 0x2e
lea eax, [ebp - 0x870]
push eax
lea ecx, [ebp - 0x888]
call fcn.004f0b60
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x870]
call fcn.004075e0
jmp 0x56f3d9
mov edi, dword [ebp - 0x8d8]
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
lea ecx, [ebp - 0x8dc]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.00416940
mov byte [ebp - 4], 0x2f
xor dl, dl
push 0
lea ecx, [ebp - 0x8dc]
call fcn.004fff60
add esp, 4
mov byte [ebp - 4], 0x15
or eax, 0xffffffff
mov edx, dword [ebp - 0x8dc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x56f431
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x840]
lea esi, [ebp - 0x828]
cmovae esi, dword [ebp - 0x828]
lea ecx, [ebp - 0x858]
push eax
call fcn.004f1640
mov byte [ebp - 4], 0x31
cmp dword [eax + 0x14], 8
jb 0x56f463
mov eax, dword [eax]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x840]
call fcn.004075e0
cmp dword [ebp - 0x878], 0
je 0x56f4be
lea eax, [ebp - 0x840]
push eax
lea ecx, [ebp - 0x888]
call fcn.004f1640
mov byte [ebp - 4], 0x32
or edi, 8
mov dword [ebp - 0x8d8], edi
cmp dword [eax + 0x14], 8
jb 0x56f4ac
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 0x8d1], 1
test eax, eax
jne 0x56f4c5
mov byte [ebp - 0x8d1], 0
mov dword [ebp - 4], 0x15
mov eax, dword [ebp - 0x8d8]
test al, 8
je 0x56f4ea
and eax, 0xfffffff7
lea ecx, [ebp - 0x840]
mov dword [ebp - 0x8d8], eax
call fcn.004075e0
cmp byte [ebp - 0x8d1], 0
je 0x56f62b
push 1
sub esp, 0x18
lea eax, [ebp - 0x828]
mov dword [ebp - 0x8e4], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x8e0], esp
push eax
call fcn.00406350
mov byte [ebp - 4], 0x33
mov byte [ebp - 4], 0x15
mov ecx, esi
call fcn.004f1920
add esp, 0x18
mov byte [ebp - 4], 0x34
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x8b8]
call fcn.004f1d70
mov byte [ebp - 4], 0x36
xor eax, eax
push 3
mov dword [ebp - 0x870], 0
lea ecx, [ebp - 0x870]
mov dword [ebp - 0x860], 0
mov dword [ebp - 0x85c], 0
push 0x6344a4
mov dword [ebp - 0x860], 0
mov dword [ebp - 0x85c], 7
mov word [ebp - 0x870], ax
call fcn.00406e80
mov byte [ebp - 4], 0x37
lea eax, [ebp - 0x870]
push eax
lea ecx, [ebp - 0x8b8]
call fcn.004f0b60
mov byte [ebp - 4], 0x36
lea ecx, [ebp - 0x870]
call fcn.004075e0
lea eax, [ebp - 0x870]
push eax
lea ecx, [ebp - 0x8b8]
call fcn.004f1640
mov esi, eax
mov byte [ebp - 4], 0x38
cmp dword [esi + 0x14], 8
jb 0x56f5d6
mov esi, dword [esi]
lea eax, [ebp - 0x840]
push eax
lea ecx, [ebp - 0x888]
call fcn.004f1640
mov byte [ebp - 4], 0x39
cmp dword [eax + 0x14], 8
jb 0x56f5f4
mov eax, dword [eax]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov byte [ebp - 4], 0x38
lea ecx, [ebp - 0x840]
call fcn.004075e0
mov byte [ebp - 4], 0x36
lea ecx, [ebp - 0x870]
call fcn.004075e0
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x8b8]
call fcn.004075e0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x888]
call fcn.004075e0
mov byte [ebp - 4], 0x40
lea ecx, [ebp - 0x908]
call fcn.004fad00
mov byte [ebp - 4], 0x3f
lea ecx, [ebp - 0x8f0]
call fcn.004e5300
mov byte [ebp - 4], 0x3e
lea ecx, [ebp - 0x8fc]
call fcn.004e5300
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x908]
call fcn.004e5300
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x858]
call fcn.004075e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.004075e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059046a
mov esp, ebp
pop ebp
ret