Function at 0x487058
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x528925
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
mov eax, dword [0x5770a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x284], ecx
and dword [ebp - 0x2d0], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x284]
movzx eax, byte [eax + 0x18]
test eax, eax
jne 0x4870ee
push str.UpdateProcessor::Update__UpdateProcessor_not_init
call fcn.0046c5d3
pop ecx
mov byte [ebp - 4], 0
mov dword [ebp - 4], 2
lea ecx, [ebp + 0x3c]
call fcn.00405a40
mov dword [ebp - 4], 3
or dword [ebp - 4], 0xffffffff
lea eax, [ebp + 0x3c]
mov dword [ebp - 0x2d4], eax
mov dword [ebp - 4], 4
mov dword [ebp - 4], 5
or dword [ebp - 4], 0xffffffff
jmp 0x487709
push dword [ebp + 8]
mov ecx, dword [ebp - 0x284]
add ecx, 0x38
call fcn.0040b598
mov eax, dword [ebp - 0x284]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x30], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x34], ecx
mov eax, dword [ebp - 0x284]
and dword [eax + 0x5274], 0
mov eax, dword [ebp - 0x284]
and dword [eax + 0x5278], 0
and dword [eax + 0x527c], 0
and dword [ebp - 0x28c], 0
mov byte [ebp - 0x285], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2cc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c8], eax
cmp dword [ebp - 0x2cc], 0x1d
jne 0x487223
cmp dword [ebp - 0x2c8], 0
jne 0x487223
push str.data.vfs
mov eax, dword [ebp - 0x284]
add eax, 0x38
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004640ab
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.0040a5f1
mov dword [ebp - 0x2a0], eax
push 0
push dword [ebp - 0x2a0]
call fcn.004cc50e
pop ecx
pop ecx
test eax, eax
jne 0x4871fa
lea ecx, [ebp - 0x28]
call fcn.0040a5f1
mov dword [ebp - 0x2a4], eax
push dword [ebp - 0x2a4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x2a8], eax
mov eax, dword [ebp - 0x2a8]
and eax, 1
je 0x4871eb
push 0x80
lea ecx, [ebp - 0x28]
call fcn.0040a5f1
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x28]
call fcn.0040a5f1
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x28]
call fcn.0040a62b
mov byte [ebp - 4], 8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2d8], eax
mov byte [ebp - 4], 9
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x284]
cmp dword [eax + 0x20], 0
je 0x487263
mov eax, dword [ebp - 0x284]
movzx eax, byte [eax + 0x25]
test eax, eax
je 0x487254
mov ecx, dword [ebp - 0x284]
call fcn.0048bbf5
mov eax, dword [ebp - 0x284]
and dword [eax + 0x20], 0
jmp 0x487263
mov dword [ebp - 0x28c], 0x2faf0800
jmp 0x487664
mov ecx, dword [ebp - 0x284]
call fcn.0048945f
movzx eax, byte [ebp + 0x1c]
test eax, eax
jne 0x4872a1
mov eax, dword [ebp - 0x284]
add eax, 0x38
push eax
mov ecx, dword [ebp - 0x284]
call fcn.00488f81
movzx eax, al
test eax, eax
jne 0x4872a1
mov dword [ebp - 0x28c], 0x2faf0801
jmp 0x487664
mov eax, dword [ebp - 0x284]
mov byte [eax + 0x25], 0
mov eax, dword [ebp - 0x284]
mov cl, byte [ebp + 0x1c]
mov byte [eax + 0x24], cl
mov ecx, dword [ebp - 0x284]
add ecx, 0x5280
call fcn.0048d48c
push 0x5218
push 0
mov eax, dword [ebp - 0x284]
add eax, 0x50
push eax
call fcn.004b0090
add esp, 0xc
lea ecx, [ebp - 0x298]
call fcn.0048ca1f
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x294]
mov dword [ebp - 0x2ac], eax
and dword [ebp - 0x294], 0
mov eax, dword [ebp - 0x284]
mov ecx, dword [ebp - 0x2ac]
mov dword [eax + 0x20], ecx
mov eax, dword [ebp - 0x284]
cmp dword [eax + 0x20], 0
jne 0x48733c
mov dword [ebp - 0x28c], 0x2faf0802
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x298]
call fcn.0048cae0
jmp 0x487664
mov ecx, dword [ebp - 0x284]
add ecx, 0x38
call fcn.0040a5f1
mov dword [ebp - 0x2b0], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x2b0]
push dword [ebp + 0x38]
mov eax, dword [ebp - 0x284]
mov eax, dword [eax + 0x20]
mov ecx, dword [ebp - 0x284]
mov eax, dword [eax]
mov ecx, dword [ecx + 0x20]
call dword [eax + 0x94]
test eax, eax
jne 0x48739b
mov dword [ebp - 0x28c], 0x2faf0803
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x298]
call fcn.0048cae0
jmp 0x487664
push dword [ebp - 0x284]
mov eax, dword [ebp - 0x284]
mov eax, dword [eax + 0x20]
mov ecx, dword [ebp - 0x284]
mov eax, dword [eax]
mov ecx, dword [ecx + 0x20]
call dword [eax + 0x40]
push 1
mov eax, dword [ebp - 0x284]
mov eax, dword [eax + 0x20]
mov ecx, dword [ebp - 0x284]
mov eax, dword [eax]
mov ecx, dword [ecx + 0x20]
call dword [eax + 0x78]
mov eax, dword [ebp - 0x284]
movzx eax, byte [eax + 0x5270]
push eax
mov eax, dword [ebp - 0x284]
mov eax, dword [eax + 0x20]
mov ecx, dword [ebp - 0x284]
mov eax, dword [eax]
mov ecx, dword [ecx + 0x20]
call dword [eax + 0xa8]
and dword [ebp - 0x2bc], 0
and dword [ebp - 0x2b8], 0
mov ecx, dword [ebp - 0x284]
call fcn.0048c29b
mov dword [ebp - 0x290], eax
cmp dword [ebp - 0x290], 0
jne 0x48743f
mov dword [ebp - 0x28c], 0x2faf080c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x298]
call fcn.0048cae0
jmp 0x487664
mov eax, dword [ebp - 0x290]
mov dword [ebp - 0x2c4], eax
mov eax, dword [ebp - 0x290]
mov dword [ebp - 0x2c0], eax
mov eax, dword [ebp - 0x284]
add eax, 0x38
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004815a2
pop ecx
pop ecx
mov byte [ebp - 4], 0xc
push 0x5402ac
lea ecx, [ebp - 0x70]
call fcn.00409053
mov byte [ebp - 4], 0xd
push 0x5c
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00481988
add esp, 0x10
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x70]
call fcn.0040a62b
mov byte [ebp - 4], 0x11
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x70]
mov dword [ebp - 0x2dc], eax
mov byte [ebp - 4], 0x12
mov byte [ebp - 4], 0x13
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x284]
call fcn.0048bf15
push 0x210
push 0
lea eax, [ebp - 0x280]
push eax
call fcn.004b0090
add esp, 0xc
lea ecx, [ebp + 0x3c]
call fcn.004059a0
mov dword [ebp - 0x2b4], eax
push dword [ebp + 0x54]
push dword [ebp - 0x2b4]
push dword [ebp + 0x34]
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
lea eax, [ebp - 0x280]
push eax
push dword [ebp - 0x2b8]
push dword [ebp - 0x2bc]
push dword [ebp - 0x2c0]
push dword [ebp - 0x2c4]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
mov eax, dword [ebp - 0x284]
mov eax, dword [eax + 0x20]
mov ecx, dword [ebp - 0x284]
mov eax, dword [eax]
mov ecx, dword [ecx + 0x20]
call dword [eax + 0x44]
test eax, eax
jne 0x4875f4
push dword [ebp - 0x27c]
push str.UpdateProcessor::Update___execute_m_update__BeginUpdate___failed__error_code:__d
call fcn.0046c5d3
pop ecx
pop ecx
cmp dword [ebp - 0x27c], 0
jne 0x487579
mov dword [ebp - 0x29c], 0x2faf0804
jmp 0x487585
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x29c], eax
mov eax, dword [ebp - 0x29c]
mov dword [ebp - 0x28c], eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x40]
call fcn.0040a62b
mov byte [ebp - 4], 0x15
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x40]
mov dword [ebp - 0x2e0], eax
mov byte [ebp - 4], 0x16
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x58]
call fcn.0040a62b
mov byte [ebp - 4], 0x19
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x58]
mov dword [ebp - 0x2e4], eax
mov byte [ebp - 4], 0x1a
mov byte [ebp - 4], 0x1b
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x298]
call fcn.0048cae0
jmp 0x487664
mov byte [ebp - 0x285], 1
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x40]
call fcn.0040a62b
mov byte [ebp - 4], 0x1d
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x40]
mov dword [ebp - 0x2e8], eax
mov byte [ebp - 4], 0x1e
mov byte [ebp - 4], 0x1f
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x58]
call fcn.0040a62b
mov byte [ebp - 4], 0x21
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x58]
mov dword [ebp - 0x2ec], eax
mov byte [ebp - 4], 0x22
mov byte [ebp - 4], 0x23
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x298]
call fcn.0048cae0
xor eax, eax
jne 0x487223
movzx eax, byte [ebp - 0x285]
test eax, eax
jne 0x4876d0
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x487694
push 0
push 0
push dword [ebp - 0x28c]
push 0
push 0
push 2
mov ecx, dword [ebp - 0x284]
call fcn.0048c006
jmp 0x4876af
push 0
push 0
push dword [ebp - 0x28c]
push 0
push 0
push 3
mov ecx, dword [ebp - 0x284]
call fcn.0048c006
mov eax, dword [ebp - 0x284]
cmp dword [eax + 0x20], 0
je 0x4876d0
mov ecx, dword [ebp - 0x284]
call fcn.0048bbf5
mov eax, dword [ebp - 0x284]
and dword [eax + 0x20], 0
mov byte [ebp - 4], 0
mov dword [ebp - 4], 0x24
lea ecx, [ebp + 0x3c]
call fcn.00405a40
mov dword [ebp - 4], 0x25
or dword [ebp - 4], 0xffffffff
lea eax, [ebp + 0x3c]
mov dword [ebp - 0x2f0], eax
mov dword [ebp - 4], 0x26
mov dword [ebp - 4], 0x27
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ad99f
leave
ret 0x50