Function at 0x464320
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d9168
push eax
mov eax, 0x2044
mov dword fs:[0], esp
call fcn.004a7790
push ebx
push esi
push edi
mov edi, 1
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x1c], edi
call fcn.004917a0
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
call fcn.004917a0
push 0
push 0x2001f
push 0
push str.SoftwareSynapticsSynTPEnhShortcutConfig
push SysReAllocString
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.004948e0
test eax, eax
je 0x46446a
cmp dword [ebp + 8], 0
je 0x46444c
mov esi, edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, esi
jmp 0x4643b0
push esi
lea eax, [ebp - 0x850]
push str.Shortcut_d
push eax
call fcn.004a6894
add esp, 0xc
mov dword [ebp - 0x14], 0x800
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x34]
push 0
push 0
push eax
lea eax, [ebp - 0x1850]
push eax
lea eax, [ebp - 0x850]
push eax
call fcn.004a1110
test eax, eax
je 0x464442
lea eax, [ebp - 0x1850]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4643f7
sub eax, edx
sar eax, 1
cmp eax, 4
jbe 0x464438
lea eax, [ebp + eax*2 - 0x1858]
push str..lnk
push eax
call fcn.004a8ccd
add esp, 8
test eax, eax
jne 0x464438
lea eax, [ebp - 0x1850]
push eax
call edi
mov ecx, dword [ebp - 0x10]
test eax, eax
cmove ecx, ebx
mov dword [ebp - 0x10], ecx
inc esi
cmp esi, 0x20
jle 0x4643b0
push 0
push dword [ebp - 0x10]
jmp 0x464763
push 0
lea eax, [ebp - 0x10]
push eax
push eax
push str.LocalizeShortcutNames
lea ecx, [ebp - 0x34]
call fcn.004a1050
cmp dword [ebp - 0x10], 0
jne 0x464770
push 0
push 0
push 0
push str.SoftwareSynapticsSynTPEnhShortcutConfig
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x50]
call fcn.004948e0
test eax, eax
je 0x464770
mov esi, dword [0x516880]
lea eax, [ebp - 0x14]
push 0
push 0
push eax
lea eax, [ebp - 0x1850]
mov dword [ebp - 0x18], esi
push eax
push str.Resource
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x14], 0x800
call fcn.004a1110
test eax, eax
je 0x4644d8
push 2
push 0
lea eax, [ebp - 0x1850]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x464770
push str.SoftwareSynapticsSynTPEnhShortcutConfig
push SysReAllocString
lea ecx, [ebp - 0x34]
call fcn.004a0d50
test eax, eax
je 0x464500
push 0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x34]
push str.LocalizeShortcutNames
call fcn.004a1390
mov ebx, 1
jmp 0x464510
push ebx
lea eax, [ebp - 0x850]
push str.Name_d
push eax
call fcn.004a6894
add esp, 0xc
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x4c]
push 0
push 0
push eax
lea eax, [ebp - 0x850]
push eax
call fcn.004a1050
test eax, eax
je 0x464745
push 0
push esi
push 0
push dword [ebp - 0x20]
lea eax, [ebp + 8]
push eax
call fcn.0047f650
add esp, 0x14
mov byte [ebp - 4], 2
xor ecx, ecx
mov edi, edi
movzx eax, word [ecx + 0x4db8b8]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x1052], ax
test ax, ax
jne 0x464560
push ebx
lea eax, [ebp - 0x850]
push str.OutputDir_d
push eax
call fcn.004a6894
add esp, 0xc
mov dword [ebp - 0x14], 0x800
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x4c]
push 0
push 0
push eax
lea eax, [ebp - 0x1050]
push eax
lea eax, [ebp - 0x850]
push eax
call fcn.004a1110
test eax, eax
je 0x464724
push ebx
lea eax, [ebp - 0x850]
push str.Shortcut_d
push eax
call fcn.004a6894
add esp, 0xc
mov dword [ebp - 0x14], 0x800
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x4c]
push 0
push 0
push eax
lea eax, [ebp - 0x2050]
push eax
lea eax, [ebp - 0x850]
push eax
call fcn.004a1110
test eax, eax
je 0x464724
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0x4646f0
mov edx, eax
mov esi, eax
lea esp, [esp]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x464610
lea edi, [ebp - 0x1050]
sub edx, esi
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x464626
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x1050]
and ecx, 3
add edx, 0xfffffffe
rep movsb byte es:[edi], byte [esi]
lea esp, [esp]
mov cx, word [edx + 2]
lea edx, [edx + 2]
test cx, cx
jne 0x464650
mov ecx, dword [str..lnk]
mov dword [edx], ecx
mov ecx, dword [0x4e5348]
mov dword [edx + 4], ecx
mov cx, word [0x4e534c]
mov word [edx + 8], cx
lea edx, [ebp - 0x1050]
lea ecx, [ebp - 0x2050]
mov si, word [ecx]
cmp si, word [edx]
jne 0x4646aa
test si, si
je 0x4646a6
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x4646aa
add ecx, 4
add edx, 4
test si, si
jne 0x464684
xor ecx, ecx
jmp 0x4646af
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x4646ea
push 0
lea eax, [ebp - 0x1050]
push eax
lea eax, [ebp - 0x2050]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x46471a
push 0
push 0
lea eax, [ebp - 0x1050]
push eax
lea eax, [ebp - 0x850]
push eax
lea ecx, [ebp - 0x34]
call fcn.004a1430
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46470e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc ebx
cmp ebx, 0x20
jle 0x464510
jmp 0x464745
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x1c], edi
jmp 0x4646ed
mov edx, dword [ebp + 8]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x464745
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, dword [0x516880]
je 0x464754
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x464770
push 0
mov dword [ebp - 0x10], 1
push 1
push str.LocalizeShortcutNames
lea ecx, [ebp - 0x34]
call fcn.004a1390
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.00491a30
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.00491a30
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4