Function at 0x561020
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ae050
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x614040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x1c], ebx
mov esi, ecx
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x5614b0
mov eax, dword [ebp + 8]
cmp eax, 1
jne 0x5611d1
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x5611d9
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x5611d9
mov edi, dword [ebx]
cmp edi, dword [ebx + 4]
je 0x5612cb
lea esp, [esp]
call fcn.00414eab
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x5611c7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.004032d0
mov esi, dword [ebp - 0x10]
mov ecx, 1
mov ebx, dword [edi]
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x5610ea
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00402c20
mov esi, dword [ebp - 0x10]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [esi - 8]
push esi
call fcn.00528e42
add esp, 8
test eax, eax
js 0x5611bd
cmp eax, dword [esi - 8]
jg 0x5611bd
xor ecx, ecx
mov dword [esi - 0xc], eax
push ecx
mov word [esi + eax*2], cx
mov ebx, esp
add esi, 0xfffffff0
push esi
call fcn.00403660
add esp, 4
lea ecx, [ebp - 0x18]
add eax, 0x10
mov dword [ebx], eax
call fcn.00589950
add esp, 4
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004032d0
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x56116c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x10]
push 0
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.004032d0
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5611a6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x1c]
add edi, 0x1c
mov esi, dword [ebp - 0x14]
cmp edi, dword [ebx + 4]
jne 0x561090
jmp 0x5612cb
push 0x80070057
call fcn.00402740
push 0x80004005
call fcn.00402740
test eax, eax
jne 0x5612cb
mov ecx, dword [ebx + 4]
mov eax, 0x92492493
sub ecx, dword [ebx]
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x561204
push 0
mov ecx, ebx
call fcn.00404000
push eax
mov ecx, esi
call fcn.004032d0
mov eax, dword [esi]
mov edi, 1
mov ecx, edi
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x561228
push 0x104
mov ecx, esi
call fcn.00402c20
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [esi]
test eax, eax
jne 0x56123a
xor ecx, ecx
jmp 0x561250
push dword [eax - 8]
push eax
call fcn.00528e42
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x5611bd
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x5611bd
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, dword [esi]
cmp dword [eax - 0xc], edx
jne 0x5612cb
sub edi, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, edi
jge 0x561288
push 0x104
mov ecx, esi
call fcn.00402c20
push dword [esi]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [esi]
test eax, eax
jne 0x56129f
xor ecx, ecx
jmp 0x5612b5
push dword [eax - 8]
push eax
call fcn.00528e42
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x5611bd
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x5611bd
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov ecx, dword [ebx + 4]
mov eax, 0x92492493
sub ecx, dword [ebx]
push dword [esi]
imul ecx
add edx, ecx
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
mov dword [ebp - 0x10], edi
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push edi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.00407f50
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 2
push eax
push edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
call fcn.00407f50
mov byte [ebp - 4], 3
mov esi, dword [ebx]
cmp esi, dword [ebx + 4]
je 0x5613bb
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
sar eax, 2
mov dword [ebp - 0x1c], eax
mov ecx, esi
mov eax, 0x92492493
sub ecx, dword [ebx]
imul ecx
add edx, ecx
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp dword [ebp - 0x1c], edi
jbe 0x56141b
push dword [esi]
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
mov edx, eax
lea ecx, [edi*4]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], ecx
mov dword [ecx + eax], edx
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebp - 0x38]
sar ecx, 2
cmp ecx, edi
jbe 0x56141b
mov edi, dword [ebp - 0x38]
add esi, 0x1c
mov eax, dword [ebp - 0x18]
mov dword [eax + edi], edx
cmp esi, dword [ebx + 4]
jne 0x561361
jmp 0x5613be
mov edi, dword [ebp - 0x38]
push 0
push dword [ebp - 0x14]
push 0x3000
push 0x1000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
xor esi, esi
cmp dword [ebp - 0x10], esi
jle 0x561407
mov eax, dword [ebp - 0x34]
sub eax, edi
sar eax, 2
mov dword [ebp - 0x1c], eax
cmp eax, esi
jbe 0x56141b
push 0
push dword [edi + esi*4]
push 0x3000
push 0x2000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, dword [ebp - 0x1c]
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x5613e5
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x34]
sub eax, edi
sar eax, 2
test eax, eax
jne 0x561425
push str.invalid_vector_T__subscript
call fcn.00546d3a
mov esi, dword [ebp - 0x14]
push 0
push edi
push dword [ebp - 0x10]
push esi
call dword [sym.imp.SHELL32.dll_SHOpenFolderAndSelectItems]
push esi
call dword [sym.imp.SHELL32.dll_ILFree]
mov esi, dword [ebx]
cmp esi, dword [ebx + 4]
je 0x561493
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
sar eax, 2
mov dword [ebp - 0x1c], eax
nop
mov ecx, esi
mov eax, 0x92492493
sub ecx, dword [ebx]
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x1c], eax
jbe 0x56141b
mov ecx, dword [ebp - 0x2c]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
test eax, eax
je 0x561482
push eax
call dword [sym.imp.SHELL32.dll_ILFree]
mov eax, dword [ebp - 0x18]
add esi, 0x1c
mov dword [eax], 0
cmp esi, dword [ebx + 4]
jne 0x561450
test edi, edi
je 0x5614a0
push edi
call fcn.0040d50c
add esp, 4
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x5614b0
push eax
call fcn.0040d50c
add esp, 4
mov eax, 0x20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret