Function at 0x406170
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58ed4c
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x5fb1a0]
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, ecx
mov dword [ebp - 0x228], edi
mov dword [ebp - 4], 1
call fcn.0042b730
mov ecx, eax
mov byte [ebp - 4], 0
test ecx, ecx
je 0x406456
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x220], esi
mov eax, dword [edi]
or ebx, 0xffffffff
mov dword [ebp - 4], 2
cmp dword [eax + 0x18], 0
je 0x406423
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x250]
call fcn.0042b85c
push 0
push 0x40
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x250]
call fcn.0042bf5a
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x250]
push 0
push 0
push 0
call dword [eax + 0x2c]
mov eax, dword [edi]
mov edi, dword [eax + 0x5c]
test edi, edi
je 0x40640d
nop
lea eax, [edi]
mov edi, dword [edi]
mov dword [ebp - 0x22c], edi
mov edi, dword [eax + 8]
mov eax, dword [ebp + 8]
cmp dword [edi + 8], eax
jne 0x4063ff
mov eax, dword [edi + 0x10]
sub eax, 0x10
push eax
call fcn.00404000
add eax, 0x10
add esp, 4
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 4
push eax
mov ecx, 0x5ffc64
call fcn.004153b0
cmp dword [edi + 0xc], 0
push 0
push dword [ebp - 0x21c]
je 0x40629e
call fcn.0055fefe
jmp 0x4063de
call fcn.0055fefe
xor ebx, ebx
test eax, eax
setne bl
test eax, eax
je 0x4062f8
push str.D:_source_aprelSibSiblSibInstallerInstall.cpp
lea ecx, [ebp - 0x224]
call fcn.004020d0
push 0x12d
push dword [eax]
mov byte [ebp - 4], 5
push ebx
call fcn.004277f0
mov edx, dword [ebp - 0x224]
or ebx, 0xffffffff
add esp, 0xc
mov byte [ebp - 4], 4
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4062fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4062fb
or ebx, 0xffffffff
push dword [edi + 4]
lea eax, [ebp - 0x220]
push dword [ebp - 0x21c]
push str._s_s
push eax
call fcn.00404830
mov ecx, dword [edi + 0x38]
add esp, 0x10
mov edx, dword [edi + 0x3c]
mov eax, ecx
or eax, edx
jne 0x40632a
mov ecx, dword [edi + 0x40]
mov edx, dword [edi + 0x44]
mov esi, dword [ebp - 0x220]
push 0x1001
mov dword [ebp - 0x234], ecx
lea ecx, [ebp - 0x264]
push esi
mov dword [ebp - 0x230], edx
call fcn.0042b820
push 0
push dword [edi + 0x34]
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 6
push dword [edi + 0x30]
call fcn.0042c1a5
mov ecx, dword [ebp - 0x228]
mov eax, dword [edi + 0x38]
add ecx, 0x28
or eax, dword [edi + 0x3c]
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x250]
push eax
je 0x406391
call fcn.00424010
jmp 0x406396
call fcn.00423f10
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x23c], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x23c]
push eax
push 0
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea ecx, [ebp - 0x264]
call fcn.0042bbb0
push dword [edi + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x264]
call fcn.0042b8e0
mov edx, dword [ebp - 0x21c]
mov eax, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4063ff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x22c]
test edi, edi
jne 0x406240
lea ecx, [ebp - 0x250]
call fcn.0042bbb0
lea ecx, [ebp - 0x250]
call fcn.0042b8e0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x406438
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.0055e52e
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00403cc0
int3