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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d559
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x4ac084]
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 dword [ebp - 0x440], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0
sub esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x42c]
call fcn.004085e0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jns 0x409147
xor ebx, ebx
jmp 0x409398
push 0x490710
lea ecx, [ebp - 0x434]
call fcn.00403ac0
push 0x20a
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.0045b910
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
or esi, 0xffffffff
test eax, eax
js 0x409371
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x430]
call fcn.00403ac0
lea eax, [ebp - 0x430]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x434]
call fcn.00402e10
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x430]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4091dd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x4907c0
lea ecx, [ebp - 0x434]
call fcn.00408350
push str.Installer_
lea ecx, [ebp - 0x434]
call fcn.00408350
push ecx
mov ecx, dword [ebp - 0x42c]
call fcn.00445240
mov edi, eax
add esp, 4
test edi, edi
je 0x40936b
push str..llog
lea edx, [ebp - 0x434]
lea ecx, [ebp - 0x430]
call fcn.00409520
add esp, 4
mov byte [ebp - 4], 3
mov ecx, edi
mov edx, dword [eax]
call fcn.00408d80
mov byte [ebp - 4], 1
mov ebx, eax
mov edx, dword [ebp - 0x430]
mov ecx, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40925f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str..log
lea edx, [ebp - 0x434]
lea ecx, [ebp - 0x438]
call fcn.00409520
add esp, 4
mov byte [ebp - 4], 4
mov ecx, edi
mov edx, dword [eax]
mov dword [ebp - 0x430], 1
call fcn.00408d80
test eax, eax
jne 0x409297
test ebx, ebx
je 0x40929c
mov ebx, 1
mov dword [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x438]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4092c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, edi
call fcn.004453c0
test ebx, ebx
je 0x40936b
push dword [ebp - 0x42c]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x4092e4
call fcn.00409a70
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x4092ff
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x42c], 0
lea ecx, [ebp - 0x430]
call fcn.00403180
sub esp, 0xc
mov byte [ebp - 4], 5
lea edx, [ebp - 0x430]
push dword [ebp - 0x43c]
push ecx
push dword [ebp - 0x440]
lea ecx, [ebp - 0x424]
call fcn.00408f60
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0x18
xor ebx, ebx
test eax, eax
lea eax, [ebp - 0x424]
setns bl
push eax
call edi
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x430]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409373
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x409373
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x434]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x409392
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x4093c5
push eax
call esi
lea eax, [ebp - 0x424]
mov dword [ebp - 0x42c], 0
push eax
call edi
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x4093c5
push eax
call esi
mov eax, ebx
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.00458d41
mov esp, ebp
pop ebp
ret