Function at 0x4094c0
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fad8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x467074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x40950f
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 0x10], 0
mov word [eax], cx
cmp dword [esi + 0x10], ecx
jne 0x409537
push 0x23
push str.Empty_service_executable_image_path
mov ecx, edi
call fcn.00401470
mov byte [ebp - 0x7d], 0
jmp 0x409779
lea ecx, [ebp - 0x28]
call fcn.00408050
test al, al
jne 0x4095d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x40]
push str.GetModuleFileName_failed_with__i
push eax
call fcn.0040e6a0
mov esi, eax
add esp, 0xc
cmp edi, esi
je 0x40958f
mov ecx, edi
call fcn.00401220
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4095c9
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4095bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4097cd
push edx
push ecx
call fcn.0042b435
add esp, 8
mov byte [ebp - 0x7d], 0
jmp 0x409779
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x64]
mov ecx, esi
call fcn.0040e1a0
add esp, 4
test al, al
je 0x40963c
push ecx
lea ecx, [ebp - 0x58]
call fcn.00409d60
test eax, eax
jne 0x40963c
cmp dword [ebp - 0x64], 1
ja 0x409705
jne 0x40963c
cmp dword [ebp - 0x60], 1
ja 0x409705
jne 0x40963c
cmp dword [ebp - 0x5c], 2
ja 0x409705
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x409646
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x40965c
mov ecx, dword [esi]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x409705
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x14], 8
jb 0x40968c
mov esi, dword [esi]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x409705
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x7c]
push str.CopyFile_failed_with__i
push eax
call fcn.0040e6a0
add esp, 0xc
mov ecx, edi
push eax
call fcn.00401280
mov edx, dword [ebp - 0x68]
cmp edx, 8
jb 0x4096ff
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4096f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4097d2
push edx
push ecx
call fcn.0042b435
add esp, 8
mov byte [ebp - 0x7d], 0
jmp 0x409709
mov byte [ebp - 0x7d], 1
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x409743
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409739
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4097d7
push edx
push ecx
call fcn.0042b435
add esp, 8
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x409779
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40976f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4097dc
push edx
push ecx
call fcn.0042b435
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4097af
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4097a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4097e1
push edx
push ecx
call fcn.0042b435
add esp, 8
mov al, byte [ebp - 0x7d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b3f4
mov esp, ebp
pop ebp
ret
call fcn.0043012a
call fcn.0043012a
call fcn.0043012a
call fcn.0043012a
call fcn.0043012a
int3