Function at 0x407c80
Capabilities:
Check if file exists
Copy file
Create shortcut via ishelllink
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536ee9
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x58aae0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
push 0x5c
push eax
call fcn.00512aa5
add esp, 8
or edi, 0xffffffff
cmp eax, ebx
jne 0x407ccc
mov eax, edi
jmp 0x407cd1
sub eax, dword [ebp + 8]
sar eax, 1
push eax
lea ecx, [ebp - 0x238]
push ecx
lea ecx, [ebp + 8]
call fcn.00405dd0
push 1
push 0x565468
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 1
call fcn.00404600
lea esi, [ebp - 0x22c]
call fcn.0040f920
push 1
push 0x565468
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00404600
mov esi, dword [ebp - 0x22c]
xor eax, eax
cmp esi, ebx
setne al
cmp eax, ebx
jne 0x407d2f
push 0x80004005
call fcn.00401090
mov eax, dword [ebp - 0x238]
mov ecx, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407d5d
cmp dx, bx
je 0x407d59
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407d5d
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x407d37
xor eax, eax
jmp 0x407d61
sbb eax, eax
sbb eax, edi
cmp eax, ebx
jne 0x407d95
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407d84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x238]
add eax, 0xfffffff0
jmp 0x4084e7
push 0x5652b8
lea ecx, [ebp - 0x228]
call fcn.00403fb0
mov ebx, 3
mov byte [ebp - 4], bl
mov eax, dword [0x593b74]
cmp eax, 2
je 0x407e3e
cmp eax, ebx
je 0x407e3e
push ecx
mov dword [ebp - 0x23c], esp
cmp eax, 6
jne 0x407e06
mov ecx, esp
push 0x5652b8
call fcn.00403fb0
push ecx
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x230], esp
push 0x5652b8
call fcn.00403fb0
lea ecx, [ebp - 0x224]
push ecx
mov byte [ebp - 4], bl
call fcn.0040fa30
add esp, 0xc
mov byte [ebp - 4], 7
jmp 0x407e7b
mov esi, esp
push 0x21
call fcn.0040d140
push ecx
mov byte [ebp - 4], 8
mov ecx, esp
mov dword [ebp - 0x230], esp
push 0x565328
call fcn.00403fb0
lea ecx, [ebp - 0x224]
push ecx
mov byte [ebp - 4], bl
call fcn.0040fa30
add esp, 0xc
mov byte [ebp - 4], 9
jmp 0x407e7b
push ecx
mov esi, esp
mov dword [ebp - 0x23c], esp
push 0x21
call fcn.0040d140
push ecx
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x230], esp
push 0x5652b8
call fcn.00403fb0
lea ecx, [ebp - 0x224]
push ecx
mov byte [ebp - 4], bl
call fcn.0040fa30
add esp, 0xc
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x228]
call fcn.00404520
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407eab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [ebp - 0x224]
call fcn.004079d0
mov byte [ebp - 4], 0xa
mov ecx, dword [eax]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x407ed1
push 0x80004005
call fcn.00401090
mov esi, dword [ebp - 0x238]
mov eax, esi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407f06
test dx, dx
je 0x407f02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407f06
add eax, 4
add ecx, 4
test dx, dx
jne 0x407ee0
xor eax, eax
jmp 0x407f0a
sbb eax, eax
sbb eax, edi
test eax, eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x224]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407f34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x408164
lea ebx, [ebp - 0x230]
call fcn.004079d0
lea ecx, [ebp - 0x228]
push ecx
push eax
lea edx, [ebp - 0x224]
push edx
mov byte [ebp - 4], 0xb
call fcn.00404f70
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407f8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407fb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x22c]
lea eax, [ebp - 0x234]
push edx
push eax
call fcn.00404f70
add esp, 0xc
test esi, esi
mov esi, eax
je 0x408035
lea ebx, [ebp - 0x230]
mov byte [ebp - 4], 0xc
call fcn.004079d0
lea ecx, [ebp - 0x228]
push ecx
push eax
lea edx, [ebp - 0x224]
push edx
mov byte [ebp - 4], 0xd
call fcn.00404f70
mov esi, dword [esi]
mov eax, dword [eax]
add esp, 0xc
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40802f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xc
jmp 0x408090
lea ebx, [ebp - 0x230]
mov byte [ebp - 4], 0xe
call fcn.004079d0
push 0x56546c
push eax
lea ecx, [ebp - 0x224]
push ecx
mov byte [ebp - 4], 0xf
call fcn.004087e0
mov esi, dword [esi]
mov eax, dword [eax]
add esp, 0xc
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40808c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
mov edx, edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4080b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
mov edx, edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4080d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x23c], esp
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x22c]
push eax
push ecx
call fcn.00404f70
add esp, 0xc
call fcn.004107c0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40812d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408152
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x238]
add eax, 0xfffffff0
jmp 0x4084e7
mov ecx, dword [ebp - 0x228]
mov eax, dword [ecx - 0xc]
add eax, 0xfffffffd
push eax
lea edx, [ebp - 0x23c]
push edx
lea ecx, [ebp - 0x228]
call fcn.00405dd0
push 0x565484
push eax
lea eax, [ebp - 0x240]
push eax
mov byte [ebp - 4], 0x10
call fcn.004087e0
add esp, 0xc
mov bl, 0x12
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x23c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4081c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x240]
push ecx
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x224]
push eax
call fcn.00404f70
add esp, 0xc
push eax
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 0x13
call fcn.00404520
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408213
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408231
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x408471
xor ecx, ecx
push 0x208
push ecx
lea edx, [ebp - 0x21e]
push edx
mov word [ebp - 0x220], cx
call fcn.00512e90
add esp, 0xc
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x40846b
lea ecx, [ebp - 0x248]
push ecx
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [ebp - 0x248]
lea edx, [ebp - 0x220]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
mov eax, dword [ebp - 0x244]
mov ecx, dword [eax]
jne 0x4082f1
mov edx, dword [ebp - 0x248]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x240]
call fcn.00404070
lea ecx, [ebp - 0x228]
call fcn.00404070
lea ecx, [ebp - 0x22c]
call fcn.00404070
lea ecx, [ebp - 0x238]
call fcn.00404070
lea ecx, [ebp + 8]
call fcn.00404070
jmp 0x40851e
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [ebp - 0x234]
push eax
push 0x53ae20
push 1
push 0
push 0x53ae90
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40845d
mov eax, dword [ebp - 0x234]
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push esi
push eax
call edx
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push 0x56548c
push eax
call edx
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax]
lea edx, [ebp - 0x230]
push edx
push 0x53aee0
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x40844f
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x224], eax
test eax, eax
jne 0x408390
push 0x8007000e
call fcn.00401090
lea edx, [ebp - 0x240]
push edx
lea eax, [ebp - 0x23c]
push 0x565468
push eax
mov byte [ebp - 4], 0x14
call fcn.004088c0
mov esi, dword [eax]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push eax
push esi
lea ecx, [ebp - 0x224]
push ecx
call fcn.00406f50
lea ecx, [ebp - 0x23c]
call fcn.00404070
mov eax, dword [ebp - 0x230]
mov esi, dword [ebp - 0x224]
mov edx, dword [eax]
push 1
push esi
push eax
mov eax, dword [edx + 0x18]
call eax
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x240]
call fcn.00404070
lea ecx, [ebp - 0x228]
call fcn.00404070
lea ecx, [ebp - 0x22c]
call fcn.00404070
lea ecx, [ebp - 0x238]
call fcn.00404070
lea ecx, [ebp + 8]
call fcn.00404070
mov eax, 1
jmp 0x408520
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
mov edx, edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408496
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
mov edx, edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4084bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
mov edx, edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4084e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
mov edx, edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4084ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40851e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051209f
mov esp, ebp
pop ebp
ret 4