Function at 0x4188f0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49edb6
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x4c0100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x28c], esi
mov edi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
movups xmmword [ebp - 0x230], xmm0
mov word [ebp - 0x230], ax
mov dword [ebp - 4], eax
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x41895b
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
cmp dword [edi + 0x10], ecx
jne 0x418986
push 0x23
push str.Empty_service_executable_image_path
mov ecx, esi
call fcn.00409510
mov byte [ebp - 0x285], 0
jmp 0x418c44
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x4189be
add eax, eax
lea ecx, [ebp - 0x230]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00409510
jmp 0x4189e1
cmp dword [ebp - 0x21c], 7
lea eax, [ebp - 0x230]
mov dword [ebp - 0x220], 0
cmova eax, dword [ebp - 0x230]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x220], 0
jne 0x418a4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x26c]
push str.GetModuleFileName_failed_with__i
push eax
call fcn.00420510
mov edi, eax
add esp, 0xc
cmp esi, edi
je 0x418a35
mov ecx, esi
call fcn.004037b0
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x26c]
call fcn.004037b0
mov byte [ebp - 0x285], 0
jmp 0x418c44
xorps xmm0, xmm0
mov dword [ebp - 0x238], 0
xor eax, eax
mov dword [ebp - 0x234], 7
movups xmmword [ebp - 0x248], xmm0
mov word [ebp - 0x248], ax
movups xmmword [ebp - 0x26c], xmm0
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], 7
mov word [ebp - 0x26c], ax
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x254]
mov ecx, edi
call fcn.004200a0
add esp, 4
test al, al
je 0x418b48
cmp dword [ebp - 0x234], 7
lea eax, [ebp - 0x248]
mov ecx, dword [ebp - 0x238]
mov edx, 0x1d
cmova eax, dword [ebp - 0x248]
mov esi, ecx
cmp ecx, edx
cmova esi, edx
mov edx, 0x4b690c
test esi, esi
je 0x418b10
sub eax, edx
mov dword [ebp - 0x290], eax
nop dword [eax + eax]
movzx ecx, word [edx + eax]
movzx eax, word [edx]
cmp cx, ax
jne 0x418b42
mov eax, dword [ebp - 0x290]
add edx, 2
sub esi, 1
jne 0x418af0
mov ecx, dword [ebp - 0x238]
cmp ecx, 0x1d
jb 0x418b42
ja 0x418b42
cmp dword [ebp - 0x254], 1
ja 0x418bf6
jne 0x418b42
cmp dword [ebp - 0x250], 3
ja 0x418bf6
jne 0x418b42
cmp dword [ebp - 0x24c], 7
ja 0x418bf6
mov esi, dword [ebp - 0x28c]
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x418b52
mov eax, dword [edi]
push pe_nt_image_headers32
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x14], 7
mov edx, edi
jbe 0x418b68
mov edx, dword [edi]
cmp dword [ebp - 0x21c], 7
lea ecx, [ebp - 0x230]
cmova ecx, dword [ebp - 0x230]
push ecx
call fcn.00418790
add esp, 4
test al, al
jne 0x418bf6
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x14], 7
jbe 0x418b9c
mov edi, dword [edi]
cmp dword [ebp - 0x21c], 7
lea ecx, [ebp - 0x230]
mov edx, edi
cmova ecx, dword [ebp - 0x230]
push ecx
call fcn.00418790
add esp, 4
test al, al
jne 0x418bf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x284]
push str.CopyFileData_failed_with__i
push eax
call fcn.00420510
add esp, 0xc
mov ecx, esi
push eax
call fcn.00409620
lea ecx, [ebp - 0x284]
call fcn.004037b0
mov byte [ebp - 0x285], 0
jmp 0x418bfd
mov byte [ebp - 0x285], 1
mov ecx, dword [ebp - 0x258]
cmp ecx, 7
jbe 0x418c39
mov edx, dword [ebp - 0x26c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x418c2f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418ca1
push ecx
push edx
call fcn.0047292b
add esp, 8
lea ecx, [ebp - 0x254]
call fcn.00418cb0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x418c80
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x418c76
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418ca1
push ecx
push edx
call fcn.0047292b
add esp, 8
mov al, byte [ebp - 0x285]
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.004728e8
mov esp, ebp
pop ebp
ret
call fcn.004780c4
int3