Function at 0x406140
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a40c
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x5f31c0]
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.0042b4c7
mov ecx, eax
mov byte [ebp - 4], 0
test ecx, ecx
je 0x406426
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 0x4063f3
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x250]
call fcn.0042b5f3
push 0
push 0x40
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x250]
call fcn.0042bcf1
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 + 0x60]
test edi, edi
je 0x4063dd
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 0x4063cf
mov eax, dword [edi + 0x10]
sub eax, 0x10
push eax
call fcn.00403fb0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 4
push eax
mov ecx, 0x5f7c40
call fcn.004154d0
cmp dword [edi + 0xc], 0
push 0
push dword [ebp - 0x21c]
je 0x40626e
call fcn.0055f9d8
jmp 0x4063ae
call fcn.0055f9d8
xor ebx, ebx
test eax, eax
setne bl
test eax, eax
je 0x4062c8
push str.D:_apreltechSibSiblSibInstallerInstall.cpp
lea ecx, [ebp - 0x224]
call fcn.004020a0
push 0x164
push dword [eax]
mov byte [ebp - 4], 5
push ebx
call fcn.004279c0
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 0x4062cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4062cb
or ebx, 0xffffffff
push dword [edi + 4]
lea eax, [ebp - 0x220]
push dword [ebp - 0x21c]
push str._s_s
push eax
call fcn.00404820
mov ecx, dword [edi + 0x38]
add esp, 0x10
mov edx, dword [edi + 0x3c]
mov eax, ecx
or eax, edx
jne 0x4062fa
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.0042b5b7
push 0
push dword [edi + 0x34]
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 6
push dword [edi + 0x30]
call fcn.0042bf3c
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 0x406361
call fcn.004241c0
jmp 0x406366
call fcn.004240d0
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.0042b947
push dword [edi + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x264]
call fcn.0042b677
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 0x4063cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x22c]
test edi, edi
jne 0x406210
lea ecx, [ebp - 0x250]
call fcn.0042b947
lea ecx, [ebp - 0x250]
call fcn.0042b677
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x406408
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.0055e0c1
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00403c70
int3