Function at 0x484c30
Capabilities:
Copy file
Create directory
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x50aca3
push eax
mov eax, 0x28b4
mov dword fs:[0], esp
call fcn.004d12b0
push ebx
push esi
push edi
mov dword [ebp - 0x40], ecx
mov edi, 1
push 0
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x10], 0
call fcn.004b90e0
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0
call fcn.00402b50
mov dword [ebp - 0xa0], vtable.CMultiLevelRegistryKey.0
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x2a8]
push edi
push 0
push eax
push 0
mov byte [ebp - 4], 1
call esi
push edi
push 0x1c
lea eax, [ebp - 0x4b0]
push eax
push 0
call esi
push 0
call fcn.004c7a40
add esp, 4
cmp eax, 0xd
jne 0x484d9f
push 0xb
call fcn.004c7de0
mov edx, eax
mov dword [ebp - 0x18], 0xf
add esp, 4
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp byte [edx], 0
jne 0x484ced
xor ecx, ecx
jmp 0x484cfb
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x484cf2
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00410dc0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004304c0
mov edx, eax
add esp, 8
cmp dword [edx + 0x14], 8
jb 0x484d23
mov edx, dword [edx]
xor ecx, ecx
movzx eax, word [ecx + str.SoftwareSynapticsSynTPEnhShortcutConfig]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x8c2], ax
test ax, ax
jne 0x484d25
push edx
lea ecx, [ebp - 0x8c0]
call fcn.0040a510
cmp dword [ebp - 0x44], 8
jb 0x484d59
push dword [ebp - 0x58]
call fcn.004cf489
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 1
jb 0x484d82
push dword [ebp - 0x2c]
call fcn.004cf489
add esp, 4
push 0
push 1
push 0
lea eax, [ebp - 0x8c0]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0xa0]
call fcn.004bd990
push 0
push 1
push 0
push str.SoftwareSynapticsSynTPEnhShortcutConfig
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0xa0]
call fcn.004bd990
push 0
call fcn.004c7de0
mov edx, eax
mov dword [ebp - 0x18], 0xf
add esp, 4
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp byte [edx], 0
jne 0x484de1
xor ecx, ecx
jmp 0x484def
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x484de6
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00410dc0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004304c0
mov edx, eax
add esp, 8
cmp dword [edx + 0x14], 8
jb 0x484e17
mov edx, dword [edx]
xor ecx, ecx
lea esp, [esp]
movzx eax, word [ecx + str.SoftwareSynapticsSynTPEnhShortcutConfig]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x6ba], ax
test ax, ax
jne 0x484e20
push edx
lea ecx, [ebp - 0x6b8]
call fcn.0040a510
cmp dword [ebp - 0x44], 8
jb 0x484e54
push dword [ebp - 0x58]
call fcn.004cf489
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 1
jb 0x484e7d
push dword [ebp - 0x2c]
call fcn.004cf489
add esp, 4
push 0
push 1
push 0
lea eax, [ebp - 0x6b8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0xa0]
call fcn.004bd990
push 0
push 0x2001f
push 0
push str.SoftwareSynapticsSynTPEnhShortcutConfig
push SysReAllocString
lea ecx, [ebp - 0x74]
call fcn.004bcca0
mov ebx, dword [ebp + 8]
test eax, eax
je 0x48514d
test bl, 0xd
je 0x48512f
lea ecx, [ebp - 0x4b0]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x484ed2
mov eax, dword [str.SYNTP]
mov dword [ecx], eax
mov eax, dword [0x528ad4]
mov dword [ecx + 4], eax
mov eax, dword [0x528ad8]
mov dword [ecx + 8], eax
mov ax, word [0x528adc]
mov word [ecx + 0xc], ax
lea eax, [ebp - 0x4b0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 1
lea esp, [esp]
push esi
lea eax, [ebp - 0x18c0]
push str.Shortcut_d
push eax
call fcn.004d1675
add esp, 0xc
mov dword [ebp - 0x14], 0x800
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x70]
push 0
push 0
push eax
lea eax, [ebp - 0x10c0]
push eax
lea eax, [ebp - 0x18c0]
push eax
call fcn.004cbe60
test eax, eax
je 0x48511c
lea ecx, [ebp - 0x10c0]
lea edx, [ecx + 2]
jmp 0x484f70
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x484f70
sub ecx, edx
sar ecx, 1
cmp ecx, 4
jbe 0x485112
lea eax, [ebp + ecx*2 - 0x10c8]
push str..lnk
push eax
call fcn.004d47f9
add esp, 8
test eax, eax
jne 0x485112
lea eax, [ebp - 0x10c0]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004158d0
cmp word [ebp - 0x2a8], 0
mov byte [ebp - 4], 4
jne 0x484fc6
xor ecx, ecx
jmp 0x484fdf
lea ecx, [ebp - 0x2a8]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x484fd0
sub ecx, edx
sar ecx, 1
push ecx
push 0
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a630
cmp eax, 0xffffffff
je 0x485021
lea ecx, [ebp - 0x2a8]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x485000
sub ecx, edx
lea eax, [ebp - 0x4b0]
sar ecx, 1
push eax
push ecx
push 0
lea ecx, [ebp - 0x2c]
call fcn.00477550
test bl, 1
je 0x485084
lea eax, [ebp - 0x10c0]
push eax
call edi
test eax, eax
jne 0x4850fd
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10c0]
push eax
call fcn.004d47f9
add esp, 8
test eax, eax
jne 0x485062
mov dword [ebp - 0x10], 1
jmp 0x4850fd
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call edi
test eax, eax
jne 0x4850fd
mov dword [ebp - 0x10], 1
jmp 0x4850fd
test bl, 8
je 0x4850be
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10c0]
push eax
call fcn.004d47f9
add esp, 8
test eax, eax
je 0x4850fd
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x10c0]
push ecx
jmp 0x4850f6
test bl, 4
je 0x4850fd
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10c0]
push eax
call fcn.004d47f9
add esp, 8
test eax, eax
je 0x4850fd
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 1
cmovae eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10c0]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], 1
jb 0x485112
push dword [ebp - 0x2c]
call fcn.004cf489
add esp, 4
inc esi
cmp esi, 0x20
jle 0x484f20
test bl, 1
je 0x4854bf
push 0
push dword [ebp - 0x10]
jmp 0x4854b2
push 0
lea eax, [ebp - 0x10]
push eax
push eax
push str.LocalizeShortcutNames
lea ecx, [ebp - 0x70]
call fcn.004cbcf0
cmp dword [ebp - 0x10], 0
jne 0x4854bf
lea ecx, [ebp - 0xa0]
call fcn.004bc380
test eax, eax
je 0x4854bf
test bl, 2
je 0x4854bf
mov esi, dword [0x657be0]
lea eax, [ebp - 0x14]
push 0
push 0
push eax
lea eax, [ebp - 0x10c0]
mov dword [ebp - 0x30], esi
push eax
push str.Resource
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x14], 0x800
call fcn.004bb340
test eax, eax
je 0x4851ba
push 2
push 0
lea eax, [ebp - 0x10c0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x30], esi
test esi, esi
je 0x4854bf
push str.SoftwareSynapticsSynTPEnhShortcutConfig
push SysReAllocString
lea ecx, [ebp - 0x70]
call fcn.004cb920
test eax, eax
je 0x4851e2
push 0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x70]
push str.LocalizeShortcutNames
call fcn.004cc170
mov dword [ebp - 0x38], 0
mov ebx, 1
mov edi, edi
push ebx
lea eax, [ebp - 0x18c0]
push str.Name_d
push eax
call fcn.004d1675
add esp, 0xc
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0xa0]
push 0
push 0
push eax
lea eax, [ebp - 0x18c0]
push eax
call fcn.004baa70
test eax, eax
je 0x485494
push 0
push esi
push 0
push dword [ebp - 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004a51b0
add esp, 0x14
mov byte [ebp - 4], 5
xor ecx, ecx
movzx eax, word [ecx + 0x50daec]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x20c2], ax
test ax, ax
jne 0x485241
push ebx
lea eax, [ebp - 0x18c0]
push str.OutputDir_d
push eax
call fcn.004d1675
add esp, 0xc
mov dword [ebp - 0x14], 0x800
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0xa0]
push 0
push 0
push eax
lea eax, [ebp - 0x20c0]
push eax
lea eax, [ebp - 0x18c0]
push eax
call fcn.004bb340
test eax, eax
je 0x485473
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x1560], 0
jne 0x4852ed
lea ecx, [ebp - 0x2a8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4852b2
sub ecx, edx
lea eax, [ebp - 0x2a8]
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x20c0]
push eax
call fcn.004d5b53
add esp, 0xc
test eax, eax
jne 0x4852ed
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004036f0
jmp 0x48545d
push ebx
lea eax, [ebp - 0x18c0]
push str.Shortcut_d
push eax
call fcn.004d1675
add esp, 0xc
mov dword [ebp - 0x14], 0x800
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0xa0]
push 0
push 0
push eax
lea eax, [ebp - 0x28c0]
push eax
lea eax, [ebp - 0x18c0]
push eax
call fcn.004bb340
test eax, eax
je 0x485473
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0x48543f
mov edx, eax
mov esi, eax
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x485343
lea edi, [ebp - 0x20c0]
sub edx, esi
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x485360
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x20c0]
and ecx, 3
add edx, 0xfffffffe
rep movsb byte es:[edi], byte [esi]
mov cx, word [edx + 2]
lea edx, [edx + 2]
test cx, cx
jne 0x485383
mov ecx, dword [str..lnk]
mov dword [edx], ecx
mov ecx, dword [0x528afc]
mov dword [edx + 4], ecx
mov cx, word [0x528b00]
mov word [edx + 8], cx
lea edx, [ebp - 0x20c0]
lea ecx, [ebp - 0x28c0]
mov si, word [ecx]
cmp si, word [edx]
jne 0x4853dd
test si, si
je 0x4853d9
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x4853dd
add ecx, 4
add edx, 4
test si, si
jne 0x4853b7
xor ecx, ecx
jmp 0x4853e2
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x485439
push 0
lea eax, [ebp - 0x20c0]
push eax
lea eax, [ebp - 0x28c0]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x485469
mov esi, dword [ebp - 0x38]
lea eax, [ebp - 0x18c0]
inc esi
push esi
push str.Shortcut_d
push eax
mov dword [ebp - 0x38], esi
call fcn.004d1675
add esp, 0xc
lea eax, [ebp - 0x20c0]
lea ecx, [ebp - 0x70]
push 0
push 0
push eax
lea eax, [ebp - 0x18c0]
push eax
call fcn.004cc210
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
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 0x48545d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc ebx
cmp ebx, 0x20
jle 0x4851f0
jmp 0x485494
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x34], edi
jmp 0x48543c
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 0x485494
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, dword [0x657be0]
je 0x4854a3
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x4854bf
push 0
mov dword [ebp - 0x10], 1
push 1
push str.LocalizeShortcutNames
lea ecx, [ebp - 0x70]
call fcn.004cc170
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0
mov dword [ebp - 0xa0], vtable.CMultiLevelRegistryKey.0
call fcn.00402cb0
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0xffffffff
call fcn.004b93f0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4