Function at 0x4184a0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49df96
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x4bf100]
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 0x41850b
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
cmp dword [edi + 0x10], ecx
jne 0x418536
push 0x23
push str.Empty_service_executable_image_path
mov ecx, esi
call fcn.004093c0
mov byte [ebp - 0x285], 0
jmp 0x4187f4
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 0x41856e
add eax, eax
lea ecx, [ebp - 0x230]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004093c0
jmp 0x418591
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 0x4185fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x26c]
push str.GetModuleFileName_failed_with__i
push eax
call fcn.0041f5e0
mov edi, eax
add esp, 0xc
cmp esi, edi
je 0x4185e5
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 0x4187f4
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.0041f170
add esp, 4
test al, al
je 0x4186f8
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, 0x4b59b4
test esi, esi
je 0x4186c0
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 0x4186f2
mov eax, dword [ebp - 0x290]
add edx, 2
sub esi, 1
jne 0x4186a0
mov ecx, dword [ebp - 0x238]
cmp ecx, 0x1d
jb 0x4186f2
ja 0x4186f2
cmp dword [ebp - 0x254], 1
ja 0x4187a6
jne 0x4186f2
cmp dword [ebp - 0x250], 3
ja 0x4187a6
jne 0x4186f2
cmp dword [ebp - 0x24c], 2
ja 0x4187a6
mov esi, dword [ebp - 0x28c]
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x418702
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 0x418718
mov edx, dword [edi]
cmp dword [ebp - 0x21c], 7
lea ecx, [ebp - 0x230]
cmova ecx, dword [ebp - 0x230]
push ecx
call fcn.00418340
add esp, 4
test al, al
jne 0x4187a6
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x14], 7
jbe 0x41874c
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.00418340
add esp, 4
test al, al
jne 0x4187a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x284]
push str.CopyFileData_failed_with__i
push eax
call fcn.0041f5e0
add esp, 0xc
mov ecx, esi
push eax
call fcn.004094d0
lea ecx, [ebp - 0x284]
call fcn.004037b0
mov byte [ebp - 0x285], 0
jmp 0x4187ad
mov byte [ebp - 0x285], 1
mov ecx, dword [ebp - 0x258]
cmp ecx, 7
jbe 0x4187e9
mov edx, dword [ebp - 0x26c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4187df
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418851
push ecx
push edx
call fcn.00471b8b
add esp, 8
lea ecx, [ebp - 0x254]
call fcn.00418860
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x418830
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x418826
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418851
push ecx
push edx
call fcn.00471b8b
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.00471b48
mov esp, ebp
pop ebp
ret
call fcn.00477334
int3