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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d3680
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x638fe4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x14], ebx
mov esi, ecx
mov dword [ebp - 0x18], esi
test ebx, ebx
je 0x5868f8
mov eax, dword [ebp + 8]
cmp eax, 1
jne 0x586589
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x586591
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x586591
mov edi, dword [ebx]
cmp edi, dword [ebx + 4]
je 0x586683
lea esp, [esp]
call fcn.00418413
test eax, eax
je 0x58657f
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x586373
lock inc dword [eax + 0x14]
lea esi, [eax + 8]
jmp 0x586379
mov ecx, eax
call edx
mov esi, eax
add esi, 0x10
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x18]
lea ebx, [esi - 0x10]
mov dword [ebp - 4], 0
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x5863ca
cmp dword [ebx + 0xc], 0
jl 0x5863bb
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x5863bb
push ecx
call fcn.004035b0
add esp, 4
mov ecx, ebx
mov esi, eax
call fcn.00402670
add esi, 0x10
mov dword [ebp - 0x10], esi
jmp 0x5863ca
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.00403620
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov ebx, dword [edi]
jge 0x5863f0
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00402cf0
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.0054c667
add esp, 8
test eax, eax
js 0x586575
cmp eax, dword [esi - 8]
jg 0x586575
xor ecx, ecx
mov dword [esi - 0xc], eax
push ecx
mov word [esi + eax*2], cx
mov ebx, esp
lea eax, [esi - 0x10]
mov dword [ebp - 0x20], ebx
push eax
call fcn.004035b0
add esp, 4
lea ecx, [ebp - 0x1c]
add eax, 0x10
mov dword [ebx], eax
call fcn.005b0260
add esp, 4
mov byte [ebp - 4], 1
lea ebx, [esi - 0x10]
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x58648c
cmp dword [ebx + 0xc], 0
jl 0x58647d
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x58647d
push ecx
call fcn.004035b0
add esp, 4
mov ecx, ebx
mov esi, eax
call fcn.00402670
add esi, 0x10
mov dword [ebp - 0x10], esi
jmp 0x58648c
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.00403620
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x5864d2
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5864ce
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5864ce
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x5864d2
mov ecx, edx
call ebx
push 0
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [edi]
lea ebx, [esi - 0x10]
sub ecx, 0x10
mov dword [ebp - 0x20], ecx
cmp ebx, ecx
je 0x58651d
cmp dword [ecx + 0xc], 0
jl 0x586512
mov eax, dword [ebx]
cmp eax, dword [ecx]
jne 0x586512
push ebx
call fcn.004035b0
mov ecx, dword [ebp - 0x20]
add esp, 4
mov esi, eax
call fcn.00402670
lea eax, [esi + 0x10]
mov dword [edi], eax
jmp 0x58651d
push dword [esi - 0xc]
mov ecx, edi
push esi
call fcn.00403620
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x58655e
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x58655c
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x58655c
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x58655e
call edx
mov ebx, dword [ebp - 0x14]
add edi, 0x1c
cmp edi, dword [ebx + 4]
jne 0x586350
mov esi, dword [ebp - 0x18]
jmp 0x586683
push 0x80070057
call fcn.00402650
push 0x80004005
call fcn.00402650
test eax, eax
jne 0x586683
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 0x5865bc
push 0
mov ecx, ebx
call fcn.00404170
push eax
mov ecx, esi
call fcn.00403220
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 0x5865e0
push 0x104
mov ecx, esi
call fcn.00402cf0
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [esi]
test eax, eax
jne 0x5865f2
xor ecx, ecx
jmp 0x586608
push dword [eax - 8]
push eax
call fcn.0054c667
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x586575
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x586575
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 0x586683
sub edi, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, edi
jge 0x586640
push 0x104
mov ecx, esi
call fcn.00402cf0
push dword [esi]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [esi]
test eax, eax
jne 0x586657
xor ecx, ecx
jmp 0x58666d
push dword [eax - 8]
push eax
call fcn.0054c667
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x586575
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x586575
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 - 0x18], eax
lea ecx, [ebp - 0x38]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push edi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
call fcn.00408c30
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 2
push eax
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.00408c30
mov byte [ebp - 4], 3
mov esi, dword [ebx]
cmp esi, dword [ebx + 4]
mov edi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x2c]
je 0x58676c
mov eax, dword [ebp - 0x34]
sub eax, edi
sar eax, 2
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov ecx, esi
sub ecx, dword [eax]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], eax
jbe 0x5867c9
push dword [esi]
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
sub ecx, ebx
sar ecx, 2
mov dword [edi + edx*4], eax
cmp ecx, edx
jbe 0x5867c9
mov dword [ebx + edx*4], eax
add esi, 0x1c
mov eax, dword [ebp - 0x14]
cmp esi, dword [eax + 4]
jne 0x586721
push 0
push dword [ebp - 0x18]
push 0x3000
push 0x1000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
xor esi, esi
cmp dword [ebp - 0x10], esi
jle 0x5867b5
mov eax, dword [ebp - 0x28]
sub eax, ebx
sar eax, 2
mov dword [ebp - 0x20], eax
cmp eax, esi
jbe 0x5867c9
push 0
push dword [ebx + esi*4]
push 0x3000
push 0x2000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, dword [ebp - 0x20]
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x586793
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x28]
sub eax, ebx
sar eax, 2
test eax, eax
jne 0x5867d3
push str.invalid_vector_T__subscript
call fcn.00545b0e
mov esi, dword [ebp - 0x18]
push 0
push ebx
push dword [ebp - 0x10]
push esi
call dword [sym.imp.SHELL32.dll_SHOpenFolderAndSelectItems]
push esi
call dword [sym.imp.SHELL32.dll_ILFree]
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
cmp esi, dword [eax + 4]
je 0x586843
mov ecx, dword [ebp - 0x34]
sub ecx, edi
sar ecx, 2
mov dword [ebp - 0x20], ecx
nop
mov ecx, esi
sub ecx, dword [eax]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x20], eax
jbe 0x5867c9
lea eax, [edi + eax*4]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax]
test eax, eax
je 0x58682f
push eax
call dword [sym.imp.SHELL32.dll_ILFree]
mov eax, dword [ebp - 0x1c]
add esi, 0x1c
mov dword [eax], 0
mov eax, dword [ebp - 0x14]
cmp esi, dword [eax + 4]
jne 0x586800
test ebx, ebx
je 0x58689c
mov eax, dword [ebp - 0x24]
sub eax, ebx
sar eax, 2
cmp eax, 0x3fffffff
jbe 0x58685b
call fcn.0054a598
shl eax, 2
cmp eax, 0x1000
jb 0x586893
test bl, 0x1f
je 0x58686f
call fcn.0054a598
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x58687b
call fcn.0054a598
sub ebx, eax
cmp ebx, 4
jae 0x586887
call fcn.0054a598
cmp ebx, 0x23
jbe 0x586891
call fcn.0054a598
mov ebx, eax
push ebx
call fcn.0040e5b0
add esp, 4
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x5868f8
mov eax, dword [ebp - 0x30]
sub eax, ecx
sar eax, 2
cmp eax, 0x3fffffff
jbe 0x5868b7
call fcn.0054a598
shl eax, 2
cmp eax, 0x1000
jb 0x5868ef
test cl, 0x1f
je 0x5868cb
call fcn.0054a598
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x5868d7
call fcn.0054a598
sub ecx, eax
cmp ecx, 4
jae 0x5868e3
call fcn.0054a598
cmp ecx, 0x23
jbe 0x5868ed
call fcn.0054a598
mov ecx, eax
push ecx
call fcn.0040e5b0
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