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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc78
mov eax, dword [0x44a044]
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.00427f40
add esp, 0xc
mov esi, 0x44c428
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.00422010
add esp, 8
test eax, eax
jne 0x416dcc
lea edx, [ebp - 0x464]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esi, 4
cmp esi, 0x44c438
jl 0x416d90
mov eax, 0x487660
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416de0
sub eax, edx
sar eax, 1
je 0x417011
mov eax, 0x48af00
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416e00
sub eax, edx
sar eax, 1
je 0x417011
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.00427f40
add esp, 0xc
xor eax, eax
push 0x3e
push eax
lea ecx, [ebp - 0x52]
push ecx
mov word [ebp - 0x54], ax
call fcn.00427f40
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.00427f40
add esp, 0xc
lea edx, [ebp - 0x54]
push edx
push 0x487660
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.00410fc0
lea edi, [ebp - 0x25c]
mov ebx, eax
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x416ed4
mov edx, dword [0x43fdb8]
mov eax, 0x48af00
mov dword [edi], edx
mov edx, eax
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416ef0
lea edi, [ebp - 0x25c]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x416f06
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 0x416f30
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x416f30
mov ecx, dword [str..log]
mov edx, dword [0x4441f4]
mov dword [eax], ecx
mov cx, word [0x4441f8]
mov dword [eax + 4], edx
push 0
lea edx, [ebp - 0x25c]
push edx
push 0x48c988
mov word [eax + 8], cx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x416fa1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0xc64]
push 0x4441fc
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [ebp - 0xc64]
push edx
call fcn.00406870
add esp, 0x14
jmp 0x416fcc
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0xc64]
push 0x444234
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 0x417011
push 1
push 0
push 0x487660
call dword [sym.imp.MPR.dll_WNetCancelConnection2W]
test eax, eax
je 0x417004
push eax
push 0x43fe34
push 0x48d198
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x48d198
call fcn.00406870
add esp, 4
push 0x443ad0
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.00421294
mov esp, ebp
pop ebp
ret