Function at 0x473c21
Capabilities:
Copy file
Delete file

Disassembly:
mov eax, 0x4f3b1d
call fcn.004eadec
sub esp, 0x94c
mov eax, dword [0x516ad4]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x8a4], ebx
mov dword [ebp - 0x8a0], ebx
mov dword [ebp - 0x89c], ebx
mov esi, dword [ebp + 8]
movzx edi, cx
sub edi, 0x7f59
mov dword [ebp - 4], ebx
js 0x473c9b
cmp edi, dword [esi + 0x244]
jge 0x473c9b
lea ecx, [esi + 0x240]
mov eax, edi
call fcn.004793a7
mov ebx, eax
lea eax, [ebp - 0x8a4]
call fcn.004742d2
mov eax, edi
lea ecx, [esi + 0x240]
call fcn.004793a7
and dword [eax + 4], 0
xor ebx, ebx
jmp 0x473de4
mov eax, dword [0x51a438]
mov dword [ebp - 0x890], eax
push 0x8152
push dword [0x521618]
lea eax, [ebp - 0x890]
push eax
call fcn.00403988
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x954]
rep stosd dword es:[edi], eax
mov word [ebp - 0x218], bx
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 4]
mov edi, dword [ebp - 0x890]
mov dword [ebp - 0x958], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x950], eax
lea eax, [ebp - 0x958]
push eax
mov dword [ebp - 0x94c], edi
mov dword [ebp - 0x948], 1
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
cmp eax, ebx
mov dword [ebp - 0x8a0], eax
jne 0x473d3c
lea eax, [edi - 0xc]
cmp eax, dword [0x51a43c]
je 0x473fe0
push eax
call fcn.004013aa
jmp 0x473fe0
mov dword [ebp - 0x894], ebx
lea eax, [ebp - 0x894]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
cmp eax, ebx
jl 0x473dbf
mov dword [ebp - 0x8a8], ebx
lea eax, [ebp - 0x898]
push eax
lea eax, [ebp - 0x8a8]
push eax
mov byte [ebp - 4], 3
push 0x4f6b9c
push dword [ebp - 0x8a0]
mov dword [ebp - 0x898], ebx
call dword [0x5215e0]
cmp eax, ebx
jl 0x473dab
mov eax, dword [ebp - 0x8a8]
mov ecx, dword [eax]
lea edx, [ebp - 0x8a4]
push edx
push ebx
push 0x4f6c8c
lea edx, [ebp - 0x898]
push edx
push 1
push dword [esi + 4]
push eax
call dword [ecx + 0x28]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x8a8]
cmp eax, ebx
je 0x473dbf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x894]
cmp eax, ebx
je 0x473dd3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [edi - 0xc]
cmp eax, dword [0x51a43c]
je 0x473de4
push eax
call fcn.004013aa
cmp dword [ebp - 0x8a4], ebx
je 0x473fe0
mov dword [ebp - 0x898], ebx
push 1
lea eax, [ebp - 0x898]
push eax
push esi
mov byte [ebp - 4], 4
call fcn.0046e63e
cmp eax, ebx
jge 0x473e16
mov byte [ebp - 4], 0
jmp 0x4742ae
mov eax, dword [ebp - 0x8a4]
lea ebx, [ebp - 0x8b0]
push ebx
mov ebx, dword [ebp - 0x898]
xor ecx, ecx
push ecx
xor edi, edi
push edi
push 1
push ebx
mov dword [ebp - 0x8b0], 5
mov edx, dword [eax]
push eax
call dword [edx + 0xc]
test eax, eax
jl 0x473fd2
cmp dword [ebp - 0x8b0], edi
je 0x473fd2
mov eax, dword [ebp - 0x8a4]
mov edx, dword [eax]
lea ecx, [ebp - 0x8b0]
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 - 0x8a4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test edi, edi
jl 0x473fd2
cmp dword [ebp - 0x8b0], 2
jne 0x473ea4
push 0
push 0x7f13
push 0x111
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x8a0], 0
je 0x473fd2
test byte [ebp - 0x899], 0x20
je 0x473fd2
lea esi, [ebp - 0x938]
call fcn.004742ee
mov eax, 0x105
lea ecx, [ebp - 0x8ec]
call fcn.00403308
push eax
push dword [ebp - 0x8a0]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x473fc7
or eax, 0xffffffff
lea ecx, [ebp - 0x8ec]
call fcn.00403334
mov eax, dword [ebp - 0x8ec]
cmp dword [eax - 8], 0
je 0x473fc7
mov ecx, dword [0x51a438]
mov dword [ebp - 0x894], ecx
push eax
lea eax, [ebp - 0x894]
push 0x819c
push eax
mov byte [ebp - 4], 6
call fcn.00406068
mov esi, dword [ebp - 0x894]
mov eax, dword [ebp + 8]
add esp, 0xc
push 0x24
push dword [0x52224c]
push esi
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x473f56
lea eax, [esi - 0xc]
jmp 0x473fb9
mov eax, dword [ebp - 0x8ec]
mov ecx, dword [eax - 8]
mov ax, word [eax + ecx*2 - 2]
push 0x5c
pop ecx
cmp ax, cx
je 0x473f87
lea eax, [ebp - 0x8a8]
xor edi, edi
push eax
inc edi
lea eax, [ebp - 0x8ec]
mov dword [ebp - 0x8a8], ecx
call fcn.0040363d
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x938]
add esi, 0xf4
push eax
call fcn.00464e2f
or eax, 0xffffffff
xor edi, edi
mov ecx, esi
call fcn.00464d77
cmp dword [ebp - 0x934], edi
jne 0x47400b
mov eax, dword [ebp - 0x894]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x473fc7
push eax
call fcn.004013aa
lea edi, [ebp - 0x938]
call fcn.0047432d
test ebx, ebx
mov byte [ebp - 4], 0
je 0x473fe0
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x8a4]
push eax
call fcn.00441356
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor eax, eax
pop ebx
call fcn.004eae3c
leave
ret 4
mov ecx, dword [0x521a28]
and dword [ebp - 0x890], 0
test ecx, ecx
jbe 0x4740e3
mov ebx, dword [sym.imp.MSVCRT.dll_wcscmp]
mov eax, dword [ebp - 0x890]
cmp eax, ecx
jae 0x4742c7
mov ecx, dword [0x521a24]
lea edi, [ecx + eax*8]
mov ecx, edi
lea esi, [ebp - 0x8ac]
call fcn.0040318a
mov edi, dword [edi + 4]
mov dword [ebp - 0x8a8], edi
mov byte [ebp - 4], 7
push dword [0x52163c]
mov esi, dword [ebp - 0x8ac]
push esi
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x474074
mov dword [ebp - 0x8f0], edi
jmp 0x4740a4
push dword [0x521640]
push esi
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x4740a4
mov eax, dword [0x521a1c]
cmp dword [eax - 8], 0
je 0x4740b6
mov edi, 0x521a1c
lea eax, [ebp - 0x8ac]
call fcn.00403223
mov esi, dword [ebp - 0x8ac]
lea eax, [ebp - 0x8ac]
push eax
lea edi, [ebp - 0x900]
call fcn.0042563e
lea eax, [esi - 0xc]
mov byte [ebp - 4], 6
cmp eax, dword [0x51a43c]
je 0x4740cb
push eax
call fcn.004013aa
mov ecx, dword [0x521a28]
inc dword [ebp - 0x890]
cmp dword [ebp - 0x890], ecx
jb 0x474026
mov eax, dword [0x51a438]
mov dword [ebp - 0x8a8], eax
mov dword [ebp - 0x890], eax
push 0x7c
lea eax, [ebp - 0x890]
push eax
lea eax, [ebp - 0x8a8]
push eax
push 0x819d
call fcn.004ae82f
add esp, 0x10
push dword [ebp - 0x890]
lea edi, [ebp - 0x88c]
push 1
push dword [ebp - 0x8a8]
call fcn.004135e6
mov eax, dword [ebp + 8]
push dword [eax + 4]
lea eax, [ebp - 0x938]
push eax
mov eax, 0x4736a7
mov ebx, edi
call fcn.004136fd
test eax, eax
mov esi, edi
jne 0x4741af
call fcn.004136c4
mov eax, dword [ebp - 0x890]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x474165
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x8a8]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x47417c
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x894]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x474193
push eax
call fcn.004013aa
lea edi, [ebp - 0x938]
call fcn.0047432d
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x898]
test eax, eax
jmp 0x4742b6
call fcn.004136c4
mov eax, dword [ebp - 0x890]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4741cb
push eax
call fcn.004013aa
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x8a8]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4741e6
push eax
call fcn.004013aa
push 0x7c
xor si, si
pop edi
lea eax, [ebp - 0x8e8]
call fcn.0041a6a4
lea eax, [ebp - 0x8e4]
call fcn.0041a6a4
xor eax, eax
push 6
pop ecx
lea edi, [ebp - 0x8cc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x8d0], eax
mov eax, dword [ebp - 0x8e8]
mov dword [ebp - 0x8c8], eax
mov eax, dword [ebp - 0x8e4]
mov dword [ebp - 0x8c4], eax
lea eax, [ebp - 0x8d0]
xor ebx, ebx
push eax
mov dword [ebp - 0x8cc], 2
mov word [ebp - 0x8c0], 0x41
mov dword [ebp - 0x8be], ebx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
xor esi, esi
cmp dword [ebp - 0x8dc], ebx
jbe 0x474289
cmp esi, dword [ebp - 0x8dc]
jae 0x4742c7
mov eax, dword [ebp - 0x8e0]
lea eax, [eax + esi*4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, dword [ebp - 0x8dc]
jb 0x47426f
mov eax, dword [ebp - 0x894]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4742a0
push eax
call fcn.004013aa
lea edi, [ebp - 0x938]
call fcn.0047432d
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x898]
cmp eax, ebx
je 0x473fe0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x473fe0
push 0x80070057
call fcn.004010ca
int3