Function at 0x4155c0
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa70
mov eax, dword [0x448044]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov eax, 0x4856c0
push edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4155e0
sub eax, edx
sar eax, 1
je 0x4158a7
mov eax, 0x488f78
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415600
sub eax, edx
sar eax, 1
je 0x4158a7
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.004279d0
add esp, 0xc
xor eax, eax
push 0x3e
push eax
lea ecx, [ebp - 0x52]
push ecx
mov word [ebp - 0x54], ax
call fcn.004279d0
movzx edx, word [ebp - 0xa66]
movzx eax, word [ebp - 0xa6a]
movzx ecx, word [ebp - 0xa6c]
add esp, 0xc
push edx
push eax
push ecx
lea edx, [ebp - 0x54]
push str._04u__02u__02u
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x25a]
push ecx
mov word [ebp - 0x25c], ax
call fcn.004279d0
add esp, 0xc
xor eax, eax
nop
movzx ecx, word [eax + 0x4856c0]
mov word [ebp + eax - 0x25c], cx
add eax, 2
test cx, cx
jne 0x4156a0
lea eax, [ebp - 0x25c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4156c0
mov edx, dword [str.PCScript]
mov ecx, dword [0x4417e0]
mov dword [eax], edx
mov edx, dword [0x4417e4]
mov dword [eax + 4], ecx
mov ecx, dword [0x4417e8]
mov dword [eax + 8], edx
mov edx, dword [0x4417ec]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
call fcn.0040f150
mov ebx, eax
lea eax, [ebp - 0x25c]
push eax
call fcn.004220b9
add esp, 4
cmp eax, 0xffffffff
jne 0x415722
lea ecx, [ebp - 0x25c]
push ecx
call fcn.00421466
add esp, 4
lea eax, [ebp - 0x54]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415727
lea edi, [ebp - 0x25c]
sub eax, edx
add edi, 0xfffffffe
lea ecx, [ecx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x415740
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [ebp - 0x25c]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.004220b9
add esp, 4
cmp eax, 0xffffffff
jne 0x41577f
lea eax, [ebp - 0x25c]
push eax
call fcn.00421466
add esp, 4
lea edi, [ebp - 0x25c]
add edi, 0xfffffffe
jmp 0x415790
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x415790
mov ecx, dword [0x4417f0]
mov eax, 0x488f78
mov dword [edi], ecx
mov edx, eax
jmp 0x4157b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4157b0
lea edi, [ebp - 0x25c]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4157c6
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 0x4157f0
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4157f0
mov edx, dword [0x4417f4]
mov ecx, dword [0x4417f8]
mov dword [eax], edx
mov dx, word [0x4417fc]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
push 0
lea eax, [ebp - 0x25c]
push eax
push 0x48aa00
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x415861
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x25c]
push ecx
lea edx, [ebp - 0xa5c]
push 0x441800
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0xa5c]
push eax
call fcn.004042f0
add esp, 0x14
jmp 0x41588c
lea ecx, [ebp - 0x25c]
push ecx
lea edx, [ebp - 0xa5c]
push 0x441838
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0xa5c]
add esp, 0xc
push eax
call fcn.004042f0
add esp, 4
test ebx, ebx
je 0x4158a7
mov eax, 0x4856c0
call fcn.0040ce60
push 0x441128
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 ecx, [ebp - 0x54]
push ecx
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.0041fb1e
mov esp, ebp
pop ebp
ret