Function at 0x4168f0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498596
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x4bd0c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x230], 0
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov dword [ebp - 4], 1
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x41695a
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 0x10], 0
mov word [eax], cx
cmp dword [esi + 0x10], ecx
jne 0x416980
push 0x23
push str.Empty_service_executable_image_path
mov ecx, edi
call fcn.00403bf0
xor bl, bl
jmp 0x416bd8
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 0x4169b8
add eax, eax
lea ecx, [ebp - 0x230]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00403bf0
jmp 0x4169db
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x220], 0
cmovae eax, dword [ebp - 0x230]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x220], 0
jne 0x416a19
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x248]
push str.GetModuleFileName_failed_with__i
push eax
call fcn.0041d400
add esp, 0xc
mov ecx, edi
push eax
call fcn.004093d0
lea ecx, [ebp - 0x248]
call fcn.004036b0
xor bl, bl
jmp 0x416bd8
mov dword [ebp - 0x260], 0
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 5
push eax
lea edx, [ebp - 0x26c]
mov ecx, esi
call fcn.0041d0b0
add esp, 4
test al, al
je 0x416ae6
cmp dword [ebp - 0x24c], 8
lea ecx, [ebp - 0x260]
mov ebx, dword [ebp - 0x250]
mov edx, 0x1d
cmovae ecx, dword [ebp - 0x260]
mov eax, ebx
cmp ebx, edx
cmova eax, edx
mov edx, 0x4b3a1c
push eax
call fcn.0040a9b0
add esp, 4
test eax, eax
jne 0x416ae6
cmp ebx, 0x1d
jb 0x416ae6
ja 0x416ae6
cmp dword [ebp - 0x26c], 1
ja 0x416b8f
jne 0x416ae6
cmp dword [ebp - 0x268], 3
ja 0x416b8f
jne 0x416ae6
cmp dword [ebp - 0x264], 2
ja 0x416b8f
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x416af0
mov eax, dword [esi]
push pe_nt_image_headers32
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x416b06
mov edx, dword [esi]
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
push ecx
call fcn.00416790
add esp, 4
test al, al
jne 0x416b8f
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x14], 8
jb 0x416b3a
mov esi, dword [esi]
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
mov edx, esi
cmovae ecx, dword [ebp - 0x230]
push ecx
call fcn.00416790
add esp, 4
test al, al
jne 0x416b8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x284]
push str.CopyFileData_failed_with__i
push eax
call fcn.0041d400
add esp, 0xc
mov ecx, edi
push eax
call fcn.004093d0
lea ecx, [ebp - 0x284]
call fcn.004036b0
xor bl, bl
jmp 0x416b91
mov bl, 1
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x416bcd
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416bc3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416c32
push edx
push ecx
call fcn.0046e37b
add esp, 8
lea ecx, [ebp - 0x26c]
call fcn.00416c40
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x416c14
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416c0a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416c32
push edx
push ecx
call fcn.0046e37b
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046e338
mov esp, ebp
pop ebp
ret
call fcn.00473144
int3