Function at 0x417270
Capabilities:
Copy file
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc78
mov eax, dword [0x44c044]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x462]
push ecx
mov word [ebp - 0x464], ax
call fcn.00428490
add esp, 0xc
mov esi, 0x44e428
lea esp, [esp]
mov edx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push edx
lea eax, [ebp - 0x464]
push str.C:UsersPublicSMR7_s
push eax
call edi
add esp, 0xc
lea ecx, [ebp - 0x464]
push 0
push ecx
call fcn.00422560
add esp, 8
test eax, eax
jne 0x4172ec
lea edx, [ebp - 0x464]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esi, 4
cmp esi, 0x44e438
jl 0x4172b0
mov eax, 0x489660
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417300
sub eax, edx
sar eax, 1
je 0x417531
mov eax, 0x48cf00
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417320
sub eax, edx
sar eax, 1
je 0x417531
lea eax, [ebp - 0xc74]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0xc62]
push edx
mov word [ebp - 0xc64], cx
call fcn.00428490
add esp, 0xc
xor eax, eax
push 0x3e
push eax
lea ecx, [ebp - 0x52]
push ecx
mov word [ebp - 0x54], ax
call fcn.00428490
movzx edx, word [ebp - 0xc6e]
movzx eax, word [ebp - 0xc72]
movzx ecx, word [ebp - 0xc74]
add esp, 0xc
push edx
push eax
push ecx
lea edx, [ebp - 0x54]
push str._04u__02u__02u
push edx
call edi
add esp, 0x14
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x25a]
push ecx
mov word [ebp - 0x25c], ax
call fcn.00428490
add esp, 0xc
lea edx, [ebp - 0x54]
push edx
push 0x489660
lea eax, [ebp - 0x25c]
push str._sPCScript_s
push eax
call edi
add esp, 0x10
push 0
lea ecx, [ebp - 0x25c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
call fcn.00411480
lea edi, [ebp - 0x25c]
mov ebx, eax
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4173f4
mov edx, dword [0x441270]
mov eax, 0x48cf00
mov dword [edi], edx
mov edx, eax
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417410
lea edi, [ebp - 0x25c]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x417426
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x25c]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
jmp 0x417450
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x417450
mov ecx, dword [str..log]
mov edx, dword [0x4456e4]
mov dword [eax], ecx
mov cx, word [0x4456e8]
mov dword [eax + 4], edx
push 0
lea edx, [ebp - 0x25c]
push edx
push 0x48e988
mov word [eax + 8], cx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4174c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0xc64]
push 0x4456ec
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [ebp - 0xc64]
push edx
call fcn.00406870
add esp, 0x14
jmp 0x4174ec
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0xc64]
push 0x445724
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [ebp - 0xc64]
add esp, 0xc
push edx
call fcn.00406870
add esp, 4
test ebx, ebx
je 0x417531
push 1
push 0
push 0x489660
call dword [sym.imp.MPR.dll_WNetCancelConnection2W]
test eax, eax
je 0x417524
push eax
push 0x4412ec
push 0x48f198
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x48f198
call fcn.00406870
add esp, 4
push 0x444fc0
call fcn.00406870
add esp, 4
mov ecx, 0x11
mov esi, str.C:UsersPublicSmrDeployState.tmp
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x54]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004217e4
mov esp, ebp
pop ebp
ret