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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa70
mov eax, dword [0x447044]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov eax, 0x10849c0
push edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4150b0
sub eax, edx
sar eax, 1
je 0x4152c4
mov eax, 0x1088278
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4150d0
sub eax, edx
sar eax, 1
je 0x4152c4
lea eax, [ebp - 0xa6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0xa5a]
push edx
mov word [ebp - 0xa5c], cx
call fcn.004272d0
add esp, 0xc
xor eax, eax
push 0x3e
push eax
lea ecx, [ebp - 0x52]
push ecx
mov word [ebp - 0x54], ax
call fcn.004272d0
movzx edx, word [ebp - 0xa66]
movzx eax, word [ebp - 0xa6a]
movzx ecx, word [ebp - 0xa6c]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push edx
push eax
push ecx
lea edx, [ebp - 0x54]
push str._04u__02u__02u
push edx
call ebx
add esp, 0x14
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x25a]
push ecx
mov word [ebp - 0x25c], ax
call fcn.004272d0
add esp, 0xc
lea edx, [ebp - 0x54]
push edx
push 0x10849c0
lea eax, [ebp - 0x25c]
push str._sPCScript_s
push eax
call ebx
add esp, 0x10
push 0
lea ecx, [ebp - 0x25c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
call fcn.0040ef40
lea edi, [ebp - 0x25c]
mov dword [ebp - 0xa70], eax
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4151b0
mov edx, dword [0x440870]
mov eax, 0x1088278
mov dword [edi], edx
mov edx, eax
jmp 0x4151d0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4151d0
lea edi, [ebp - 0x25c]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4151e6
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 0x415210
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x415210
mov ecx, dword [0x440874]
mov edx, dword [0x440878]
mov dword [eax], ecx
mov cx, word [0x44087c]
mov dword [eax + 4], edx
push 0
lea edx, [ebp - 0x25c]
push edx
push 0x1089d00
mov word [eax + 8], cx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x41527d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0xa5c]
push 0x440880
push ecx
call ebx
lea edx, [ebp - 0xa5c]
push edx
call fcn.004042f0
add esp, 0x14
jmp 0x4152a4
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0xa5c]
push 0x4408b8
push ecx
call ebx
lea edx, [ebp - 0xa5c]
add esp, 0xc
push edx
call fcn.004042f0
add esp, 4
cmp dword [ebp - 0xa70], 0
je 0x4152c4
mov eax, 0x10849c0
call fcn.0040cf00
push 0x4401a0
call fcn.004042f0
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.0041f53e
mov esp, ebp
pop ebp
ret