Function at 0x4663d2
Capabilities:
Copy file
Delete file

Disassembly:
mov eax, 0x4c57e0
call fcn.004bf97c
sub esp, 0x53c
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov esi, dword [ebp + 8]
movzx edi, cx
sub edi, 0x7f59
mov dword [ebp - 4], ebx
js 0x466438
cmp edi, dword [esi + 0x238]
jge 0x466438
lea ecx, [esi + 0x234]
mov eax, edi
call fcn.004036f6
mov ebx, eax
lea eax, [ebp - 0x24]
call fcn.0046697a
mov eax, edi
lea ecx, [esi + 0x234]
call fcn.004036f6
and dword [eax + 4], 0
xor ebx, ebx
jmp 0x46654f
mov eax, dword [0x4e4150]
mov dword [ebp - 0x10], eax
push 0x8152
push dword [0x4e5994]
lea eax, [ebp - 0x10]
push eax
call fcn.00403664
push 7
xor eax, eax
pop ecx
mov byte [ebp - 0x1d4], al
push 0x40
lea edi, [ebp - 0xcc]
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x1d3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 4]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0x1d4]
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0xd0]
push eax
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xc0], 1
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
cmp eax, ebx
mov dword [ebp - 0x20], eax
jne 0x4664cb
lea eax, [edi - 0xc]
cmp eax, dword [0x4e4154]
je 0x4666f9
push eax
call fcn.00401377
jmp 0x4666f9
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
cmp eax, ebx
jl 0x46652d
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 3
push 0x4c8aec
push dword [ebp - 0x20]
mov dword [ebp - 0x14], ebx
call dword [0x4e5984]
cmp eax, ebx
jl 0x46651c
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push ebx
push 0x4c8bcc
lea edx, [ebp - 0x14]
push edx
push 1
push dword [esi + 4]
push eax
call dword [ecx + 0x28]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x46652d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x46653e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [edi - 0xc]
cmp eax, dword [0x4e4154]
je 0x46654f
push eax
call fcn.00401377
cmp dword [ebp - 0x24], ebx
je 0x4666f9
mov dword [ebp - 0x14], ebx
push 1
lea eax, [ebp - 0x14]
push eax
push esi
mov byte [ebp - 4], 4
call fcn.00461152
cmp eax, ebx
jge 0x466578
mov byte [ebp - 4], 0
jmp 0x466959
mov eax, dword [ebp - 0x24]
lea ebx, [ebp - 0x34]
push ebx
mov ebx, dword [ebp - 0x14]
xor ecx, ecx
push ecx
xor edi, edi
push edi
push 1
push ebx
mov dword [ebp - 0x34], 5
mov edx, dword [eax]
push eax
call dword [edx + 0xc]
test eax, eax
jl 0x4666eb
cmp dword [ebp - 0x34], edi
je 0x4666eb
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
lea ecx, [ebp - 0x34]
push ecx
xor ecx, ecx
push ecx
push edi
push 1
push ebx
push eax
call dword [edx + 0x18]
mov edi, eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test edi, edi
jl 0x4666eb
cmp dword [ebp - 0x34], 2
jne 0x4665eb
push 0
push 0x7f13
push 0x111
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 0x20], 0
je 0x4666eb
test byte [ebp - 0x19], 0x20
je 0x4666eb
lea esi, [ebp - 0x90]
call fcn.00466996
mov eax, 0x105
lea ecx, [ebp - 0x50]
call fcn.004030e2
push eax
push dword [ebp - 0x20]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x4666e0
or eax, 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.0040310e
mov eax, dword [ebp - 0x50]
cmp dword [eax - 8], 0
je 0x4666e0
mov ecx, dword [0x4e4150]
mov dword [ebp - 0x18], ecx
push eax
lea eax, [ebp - 0x18]
push 0x819c
push eax
mov byte [ebp - 4], 6
call fcn.00405867
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
add esp, 0xc
push 0x24
push dword [0x4e5c1c]
push esi
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
je 0x466682
lea eax, [esi - 0xc]
jmp 0x4666d2
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax - 8]
mov al, byte [ecx + eax - 1]
cmp al, 0x5c
je 0x4666a3
lea eax, [ebp - 0x28]
xor edi, edi
push eax
inc edi
lea eax, [ebp - 0x50]
mov byte [ebp - 0x28], 0x5c
call fcn.00403448
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x90]
add esi, 0xf4
push eax
call fcn.00458108
or eax, 0xffffffff
xor edi, edi
mov ecx, esi
call fcn.00458050
cmp dword [ebp - 0x8c], edi
jne 0x466719
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4666e0
push eax
call fcn.00401377
lea edi, [ebp - 0x90]
call fcn.004669d5
test ebx, ebx
mov byte [ebp - 4], 0
je 0x4666f9
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x24]
push eax
call fcn.0043841e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret 4
mov ecx, dword [0x4e60cc]
and dword [ebp - 0x10], 0
test ecx, ecx
jbe 0x4667cd
mov ebx, dword [sym.imp.MSVCRT.dll__mbscmp]
mov eax, dword [ebp - 0x10]
cmp eax, ecx
jae 0x46696f
mov ecx, dword [0x4e60c8]
lea edi, [ecx + eax*8]
mov ecx, edi
lea esi, [ebp - 0x30]
call fcn.00402f86
mov edi, dword [edi + 4]
mov dword [ebp - 0x2c], edi
mov byte [ebp - 4], 7
push dword [0x4e5d64]
mov esi, dword [ebp - 0x30]
push esi
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x466770
mov dword [ebp - 0x54], edi
jmp 0x46679a
push dword [0x4e5d68]
push esi
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x46679a
mov eax, dword [0x4e60c0]
cmp dword [eax - 8], 0
je 0x4667a6
mov edi, 0x4e60c0
lea eax, [ebp - 0x30]
call fcn.0040301a
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x30]
push eax
lea edi, [ebp - 0x64]
call fcn.0040371b
lea eax, [esi - 0xc]
mov byte [ebp - 4], 6
cmp eax, dword [0x4e4154]
je 0x4667bb
push eax
call fcn.00401377
mov ecx, dword [0x4e60cc]
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], ecx
jb 0x466731
mov eax, dword [0x4e4150]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x10], eax
push 0x7c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x819d
call fcn.004993f5
add esp, 0x10
push dword [ebp - 0x10]
lea edi, [ebp - 0x548]
push 1
push dword [ebp - 0x2c]
call fcn.0040cd19
mov eax, dword [ebp + 8]
push dword [eax + 4]
lea eax, [ebp - 0x90]
push eax
mov eax, 0x465f17
mov ebx, edi
call fcn.0040ce2e
test eax, eax
mov esi, edi
jne 0x46687b
call fcn.0040cdf5
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x46683a
push eax
call fcn.00401377
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x46684e
push eax
call fcn.00401377
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x466862
push eax
call fcn.00401377
lea edi, [ebp - 0x90]
call fcn.004669d5
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
test eax, eax
jmp 0x46695e
call fcn.0040cdf5
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x466894
push eax
call fcn.00401377
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4668ac
push eax
call fcn.00401377
xor ebx, ebx
push ebx
push 0x7c
lea eax, [ebp - 0x4c]
call fcn.00413c44
push ebx
push 0x7c
lea eax, [ebp - 0x48]
call fcn.00413c44
xor eax, eax
push 6
pop ecx
lea edi, [ebp - 0xac]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xb0]
push eax
mov dword [ebp - 0xac], 2
mov word [ebp - 0xa0], 0x41
mov dword [ebp - 0x9e], ebx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
xor esi, esi
cmp dword [ebp - 0x40], ebx
jbe 0x466937
cmp esi, dword [ebp - 0x40]
jae 0x46696f
mov eax, dword [ebp - 0x44]
lea eax, [eax + esi*4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc esi
cmp esi, dword [ebp - 0x40]
jb 0x466923
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x46694b
push eax
call fcn.00401377
lea edi, [ebp - 0x90]
call fcn.004669d5
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4666f9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4666f9
push 0x80070057
call fcn.004010a4
int3