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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0210
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x616040]
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 0x561920
mov eax, dword [ebp + 8]
cmp eax, 1
jne 0x561641
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x561649
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x561649
mov edi, dword [ebx]
cmp edi, dword [ebx + 4]
je 0x56173b
lea esp, [esp]
call fcn.00414e1f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x561637
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 0x56155a
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 0x56162d
cmp eax, dword [esi - 8]
jg 0x56162d
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.0058b990
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 0x5615dc
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 0x561616
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 0x561500
jmp 0x56173b
push 0x80070057
call fcn.00402740
push 0x80004005
call fcn.00402740
test eax, eax
jne 0x56173b
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 0x561674
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 0x561698
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 0x5616aa
xor ecx, ecx
jmp 0x5616c0
push dword [eax - 8]
push eax
call fcn.00528e42
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x56162d
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x56162d
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 0x56173b
sub edi, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, edi
jge 0x5616f8
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 0x56170f
xor ecx, ecx
jmp 0x561725
push dword [eax - 8]
push eax
call fcn.00528e42
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x56162d
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x56162d
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 0x56182b
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 0x56188b
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 0x56188b
mov edi, dword [ebp - 0x38]
add esi, 0x1c
mov eax, dword [ebp - 0x18]
mov dword [eax + edi], edx
cmp esi, dword [ebx + 4]
jne 0x5617d1
jmp 0x56182e
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 0x561877
mov eax, dword [ebp - 0x34]
sub eax, edi
sar eax, 2
mov dword [ebp - 0x1c], eax
cmp eax, esi
jbe 0x56188b
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 0x561855
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x34]
sub eax, edi
sar eax, 2
test eax, eax
jne 0x561895
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 0x561903
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 0x56188b
mov ecx, dword [ebp - 0x2c]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
test eax, eax
je 0x5618f2
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 0x5618c0
test edi, edi
je 0x561910
push edi
call fcn.0040d50c
add esp, 4
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x561920
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