Function at 0x491077
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9459
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x4e106c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x238], 0x80004005
lea ecx, [ebp - 0x234]
call fcn.004022ad
and dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x208
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.00458260
add esp, 0xc
call fcn.00417fc6
add eax, 4
mov dword [ebp - 0x244], eax
push 0x4c6a0c
lea eax, [ebp - 0x234]
push eax
push str.NewUIurl
push dword [ebp - 0x244]
mov eax, dword [ebp - 0x244]
mov eax, dword [eax]
call dword [eax + 0xc]
lea ecx, [ebp - 0x234]
call fcn.00401e75
movzx eax, al
test eax, eax
je 0x491142
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x24c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.004020b1
mov eax, dword [ebp - 0x24c]
jmp 0x4912f7
mov ecx, dword [ebp + 8]
sub ecx, 4
call fcn.00490a81
test eax, eax
jne 0x491177
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x250], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.004020b1
mov eax, dword [ebp - 0x250]
jmp 0x4912f7
mov eax, dword [ebp + 8]
cmp dword [eax + 0xa0], 0
jne 0x4911d1
push 0xc8
call fcn.00455954
pop ecx
mov dword [ebp - 0x254], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x254]
call fcn.0041ce44
mov dword [ebp - 0x248], eax
jmp 0x4911b2
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x258], eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x258]
mov dword [eax + 0xa0], ecx
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.UIConfig.Zip
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xa0]
add ecx, 0x18
call fcn.00406eb9
lea eax, [ebp - 0x234]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xa0]
call fcn.0040204d
mov eax, dword [ebp + 8]
add eax, 0xa4
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0xa0]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ecx + 0x14]
call dword [eax + 4]
test eax, eax
jne 0x4912cf
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x18
call fcn.0041dc5e
lea eax, [ebp - 0x260]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x18
call fcn.0041dc09
push eax
lea ecx, [ebp - 0x240]
call fcn.00401d6d
movzx eax, al
test eax, eax
je 0x4912c9
lea ecx, [ebp - 0x240]
call fcn.00401db3
mov eax, dword [eax]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x4912bc
push 0x12
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax]
push dword [ebp - 0x23c]
call dword [eax + 0x10]
lea ecx, [ebp - 0x240]
call fcn.0041d9bc
jmp 0x491268
xor eax, eax
jne 0x491256
jmp 0x4912d6
and dword [ebp - 0x238], 0
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x25c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.004020b1
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455912
mov esp, ebp
pop ebp
ret 4